Opened 7 weeks ago

Last modified 2 weeks ago

#66527 new defect

ffmpeg @4.4.2_3 +gpl3 +nonfree +x11 does not build on macOS Monterey, Version 12.6, because of an "unknown load command 5"?

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: monterey intel Cc: mascguy@…, devans@…, jeremyhu@…
Port: ffmpeg

Description

ffmpeg @4.4.2_3+gpl2+nonfree+x11 (active) requested_variants='+gpl2+nonfree+x11' platform='darwin 21' archs='x86_64'built in summer: date='2022-08-27T22:23:28+0200', but since a few minutes it is winter…

Quite early first failures happen: /usr/bin/clang (or /Library/Developer/CommandLineTools/usr/bin/clang) and ar (or /opt/local/libexec/*/ar) crash and generate reports for Apple.

Build ends here:

--->  Staging ffmpeg into destroot
...
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-4.4.2" && /opt/local/bin/gmake -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-4.4.2" && /opt/local/bin/gmake -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot 
gmake: Entering directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-4.4.2'
mkdir -p "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot/opt/local/lib"
install -m 644 libavdevice/libavdevice.a "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot/opt/local/lib"
ranlib "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot/opt/local/lib/libavdevice.a"
mkdir -p "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot/opt/local/lib"
install -m 755 libavdevice/libavdevice.dylib "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot/opt/local/lib/libavdevice.58.13.100.dylib"
strip -x "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot/opt/local/lib/libavdevice.58.13.100.dylib"
strip: object: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot/opt/local/lib/libavdevice.58.13.100.dylib malformed object (unknown load command 5)
gmake: *** [ffbuild/library.mak:104: install-libavdevice-shared] Error 1
gmake: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-4.4.2'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-4.4.2" && /opt/local/bin/gmake -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/destroot 
Exit code: 2

Attachments (1)

main.log (4.6 MB) - added by ballapete (Peter "Pete" Dyballa) 7 weeks ago.
Main.log from x86_64 macOS Monterey, Version 12.6

Change History (3)

Changed 7 weeks ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from x86_64 macOS Monterey, Version 12.6

comment:1 Changed 7 weeks ago by ballapete (Peter "Pete" Dyballa)

It builds when I leave variant +gpl3 away.

When I leave variant +nonfree away, then ar crashes again during the configure phase. The build does not finish, it fails as reported before. So +gpl3 could be the culprit…

comment:2 Changed 2 weeks ago by ballapete (Peter "Pete" Dyballa)

Just building ffmpeg from source works… And it also builds with variant +x11.

Last edited 2 weeks ago by ballapete (Peter "Pete" Dyballa) (previous) (diff)
Note: See TracTickets for help on using tickets.