#68955 closed defect (worksforme)

mpv 0.37.0 does not build on Sonoma 14.2.1

Reported by: MaurizioLoreti Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: ionic@…, Ionic (Mihai Moldovan), i0ntempest@…, i0ntempest, openmaintainer, MaurizioLoreti
Port: mpv

Description

Failed to configure; main.log attached.

Attachments (2)

main.log (332.2 KB) - added by MaurizioLoreti 10 months ago.
meson-log.txt (151.3 KB) - added by MaurizioLoreti 10 months ago.

Download all attachments as: .zip

Change History (12)

Changed 10 months ago by MaurizioLoreti

Attachment: main.log added

comment:1 Changed 10 months ago by MaurizioLoreti

Cc: MaurizioLoreti added

comment:2 Changed 10 months ago by MaurizioLoreti

In the output:

:info:configure ERROR: Unhandled python OSError. This is probably not a Meson bu
g, but an issue with your build environment.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/
work/mpv-0.37.0" && /opt/local/bin/meson setup --prefix=/opt/local --buildtype=r
elease -Dmanpage-build=enabled -Dcoreaudio=enabled -Dcocoa=enabled -Dcplugins=en
abled -Dzlib=enabled -Dswift-build=enabled -Dhtml-build=disabled -Dvideotoolbox-
gl=enabled -Dcuda-hwaccel=disabled -Dopensles=disabled -Degl-drm=disabled -Degl-
angle-lib=disabled -Degl-angle-win32=disabled -Daudiounit=disabled -Dios-gl=disa
bled -Ddirect3d=disabled -Dandroid-media-ndk=disabled -Drpi=disabled -Ddvbin=dis
abled -Dlibmpv=false -Dcaca=disabled -Dcdda=enabled -Dpthread-debug=disabled -Ddvdnav=enabled -Degl-x11=disabled -Dgl=enabled -Dgl-cocoa=enabled -Dvulkan=disabled -Dgl-x11=disabled -Djack=disabled -Djavascript=disabled -Djpeg=disabled -Dlibarchive=enabled -Dlibbluray=enabled -Dlua=lua5.2 -Dopenal=disabled -Dpdf-build=disabled -Dpulse=disabled -Drubberband=disabled -Duchardet=disabled -Dvapoursynth=disabled -Dx11=disabled -Dxv=disabled /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.37.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/build --wrap-mode=default 
:info:configure Exit code: 13
:error:configure Failed to configure mpv: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/build/meson-logs/meson-log.txt

Also meson-log.txt attached.

Last edited 10 months ago by MaurizioLoreti (previous) (diff)

Changed 10 months ago by MaurizioLoreti

Attachment: meson-log.txt added

comment:3 Changed 10 months ago by i0ntempest

Your python is throwing an OSError. Build passes on my systems running 14.2 and also the build bots so most likely your system is at fault. I need the specific error your python threw to maybe understand what's going on but first you can try reinstalling python.

comment:4 Changed 10 months ago by kencu (Ken)

You have something installed in /usr/local that is killing python:

1031	:info:configure   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/pathlib.py", line 1013, in stat
1032	:info:configure     return os.stat(self, follow_symlinks=follow_symlinks)
1033	:info:configure            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1034	:info:configure PermissionError: [Errno 13] Permission denied: '/usr/local/lib/libm.a'

so at least move it out of the way, if not remove everything in user local, which is what MacPorts recommends.

comment:5 in reply to:  4 Changed 10 months ago by MaurizioLoreti

Replying to kencu:

You have something installed in /usr/local that is killing python:

1031	:info:configure   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/pathlib.py", line 1013, in stat
1032	:info:configure     return os.stat(self, follow_symlinks=follow_symlinks)
1033	:info:configure            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1034	:info:configure PermissionError: [Errno 13] Permission denied: '/usr/local/lib/libm.a'

Impossible. Look:

MLO@Strider 1 $ ls /usr/local/lib/
audacity		libdvdcss.a		libdvdcss.la
libdvdcss.2.dylib	libdvdcss.dylib
MLO@Strider 2 $ 

so at least move it out of the way, if not remove everything in user local, which is what MacPorts recommends.

comment:6 Changed 10 months ago by kencu (Ken)

what is installed in /usr/local exactly?

comment:7 Changed 10 months ago by MaurizioLoreti

In /usr/local/lib: libdvdcss, audacity/ffmpeg. In /usr/loca/bin: exiftool, gpg, pdftk.

comment:8 Changed 10 months ago by kencu (Ken)

ok. you seem to want to keep those there, and you are repeatedly getting this python error

1034	:info:configure PermissionError: [Errno 13] Permission denied: '/usr/local/lib/libm.a'

and nobody else can reproduce the issue.

It seems likely this error is being caused by something you have installed in /usr/local.

At least move it out of the way and retry the build.

Otherwise, let us know how you solved it one day if you like.

comment:9 in reply to:  8 Changed 10 months ago by MaurizioLoreti

Replying to kencu:

and nobody else can reproduce the issue.

It seems likely this error is being caused by something you have installed in /usr/local.

At least move it out of the way and retry the build.

OK, I sudo mv'ed lib and bin to a different name; now mpv has been conffigured and built. Sorry for all, and thank you for your immediate help.

comment:10 Changed 10 months ago by kencu (Ken)

Resolution: worksforme
Status: newclosed

very happy you got it done.

it is insidious how things in there can affect builds -- often not obvious at all...

Note: See TracTickets for help on using tickets.