Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#59604 closed defect (fixed)

ffmpeg @4.2.1 +nonfree: Install fails on Catalina 10.15.1

Reported by: beremour Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: catalina Cc: jeremyhu (Jeremy Huddleston Sequoia), cjones051073 (Chris Jones)
Port: ffmpeg

Description

I have fresh Catalina 10.15.1 and empty MacPorts 2.6.2 installation. FFmpeg is the very 1st port to install. I'll attach log file.

Attachments (2)

main.log (561.6 KB) - added by beremour 5 years ago.
build main log
config.log (236.4 KB) - added by beremour 5 years ago.

Download all attachments as: .zip

Change History (15)

Changed 5 years ago by beremour

Attachment: main.log added

build main log

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Cc: jeremyhu added
Owner: set to dbevans
Status: newassigned

comment:2 Changed 5 years ago by jmroot (Joshua Root)

:info:configure Include the log file "ffbuild/config.log" produced by configure as this will help
:info:configure solve the problem.

Please attach that log as well.

Changed 5 years ago by beremour

Attachment: config.log added

comment:3 in reply to:  2 Changed 5 years ago by beremour

Replying to jmroot:

:info:configure Include the log file "ffbuild/config.log" produced by configure as this will help
:info:configure solve the problem.

Please attach that log as well.

Thank you for reply!

config.log attached

comment:4 Changed 5 years ago by mf2k (Frank Schima)

Keywords: catalina added; Catalina Install clang llvm removed

comment:5 Changed 5 years ago by cjones051073 (Chris Jones)

ld: unexpected token: !tapi-tbd-v3 file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd' for architecture x86_64

please try installing the cctools port and then try against with a clean install attempt.

comment:6 Changed 5 years ago by cjones051073 (Chris Jones)

Correction. Please make sure you have the ld64 port installed, and that it is using the Xcode variant, i.e.

 > port installed ld64
The following ports are currently installed:
  ld64 @3_1+ld64_xcode (active)

comment:7 Changed 5 years ago by cjones051073 (Chris Jones)

Note, with the above ffmpeg +nonfree builds fine for me on 10.15.

comment:8 Changed 5 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:9 Changed 5 years ago by beremour

Thank you very much for help! It was not obvious for me to install ld64 first. Is it common practice for every fresh MacPorts install ?

Success scenario:

sudo port -fp uninstall installed
…
sudo port -fp clean all
…
port installed
No ports are installed.

port variants ld64
ld64 has the variants:
   ld64_127: Use ld64-127 as the default linker (last version that supports ppc and works on Leopard)
     * conflicts with ld64_236 ld64_97 ld64_xcode
   ld64_236: Use ld64-236 as the default linker (last version that builds against OS X's libstdc++)
     * conflicts with ld64_127 ld64_97 ld64_xcode
   ld64_97: Use ld64-97 as the default linker (last version that works on Tiger)
     * conflicts with ld64_127 ld64_236 ld64_xcode
   ld64_xcode: Use ld64-xcode as the default linker (version provided by the selected Xcode.app toolchain)
     * conflicts with ld64_127 ld64_236 ld64_97
   universal: Build for multiple architectures

sudo port install ld64 +ld64_xcode
--->  Computing dependencies for ld64
The following dependencies will be installed:  ld64-xcode
Continue? [Y/n]: y
--->  Fetching archive for ld64-xcode
--->  Attempting to fetch ld64-xcode-2_1.darwin_19.x86_64.tbz2 from https://packages.macports.org/ld64-xcode
--->  Attempting to fetch ld64-xcode-2_1.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/ld64-xcode
--->  Installing ld64-xcode @2_1
--->  Activating ld64-xcode @2_1
--->  Cleaning ld64-xcode
--->  Fetching archive for ld64
--->  Attempting to fetch ld64-3_1+ld64_xcode.darwin_19.x86_64.tbz2 from https://packages.macports.org/ld64
--->  Attempting to fetch ld64-3_1+ld64_xcode.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/ld64
--->  Installing ld64 @3_1+ld64_xcode
--->  Activating ld64 @3_1+ld64_xcode
--->  Cleaning ld64
--->  Updating database of binaries

sudo port installed
The following ports are currently installed:
  ld64 @3_1+ld64_xcode (active)
  ld64-xcode @2_1 (active)

sudo port install ffmpeg +nonfree
….

port installed ffmpeg
The following ports are currently installed:
  ffmpeg @4.2.1_2+gpl2+nonfree (active)

ffmpeg
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with clang version 9.0.0 (tags/RELEASE_900/final)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/opt/local/bin/clang-mp-9.0 --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfdk-aac
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

comment:10 Changed 5 years ago by cjones051073 (Chris Jones)

Glad that helped. No, its not normal to need it, but it often helps. I think in this case adding it as a build dep makes sense.

comment:11 Changed 5 years ago by Chris Jones <jonesc@…>

Resolution: fixed
Status: assignedclosed

In 98d0e83811a621b23b65593d07a21614a1e22715/macports-ports (master):

ffmpeg: Add ld64 as build dep
Closes: #59604

comment:12 Changed 5 years ago by beremour

Is it just "ld64" build dep, or "ld64 +ld64_xcode" build dep ?

comment:13 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

It doesn't seem like this is an ffmpeg-specific problem, and surely the ld64 dependency is not needed on older systems. And it's not clear that it's still needed on Catalina either, because the logs provided here are old: they show clang > 1099 being blacklisted, which has already been removed from the port in favor of using the xcode_workaround portgroup, whatever that does.

Note: See TracTickets for help on using tickets.