Opened 23 months ago

Closed 20 months ago

Last modified 20 months ago

#66527 closed defect (fixed)

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) 23 months ago.
Main.log from x86_64 macOS Monterey, Version 12.6

Change History (5)

Changed 23 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from x86_64 macOS Monterey, Version 12.6

comment:1 Changed 23 months 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 22 months ago by ballapete (Peter "Pete" Dyballa)

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

Version 0, edited 22 months ago by ballapete (Peter "Pete" Dyballa) (next)

comment:3 Changed 20 months ago by kencu (Ken)

Resolution: fixed
Status: newclosed

installed without any intervention with current versions

% port -v installed ffmpeg                          
The following ports are currently installed:
  ffmpeg @4.4.2_5+gpl2+gpl3+nonfree+x11 (active) requested_variants='+gpl3+nonfree+x11' platform='darwin 21' archs='x86_64' date='2023-03-05T13:24:43-0800'

comment:4 Changed 20 months ago by ballapete (Peter "Pete" Dyballa)

I cannot reproduce your success here. As first port wants to install Python 3.11 which I do not want… (Besides, it happened with version @4.4.2_5.)

Note: See TracTickets for help on using tickets.