iina / homebrew-mpv-iina

mpv homebrew tap for IINA.
GNU General Public License v3.0
17 stars 15 forks source link

make install: linker command failed with exit code 1 #19

Closed facundobianco closed 2 months ago

facundobianco commented 9 months ago
==> make install
Last 15 lines from /Users/facundo/Library/Logs/Homebrew/ffmpeg-iina/02.make:
INSTALL libavformat/libavformat.dylib
STRIP   install-libavformat-shared
BIN2C   libavfilter/metal/vf_yadif_videotoolbox.metallib.c
CC  libavfilter/metal/vf_yadif_videotoolbox.metallib.o
GEN libavfilter/libavfilter.ver
AR  libavfilter/libavfilter.a
LD  libavfilter/libavfilter.9.dylib
LD  libavdevice/libavdevice.60.dylib
INSTALL libavfilter/libavfilter.a
INSTALL libavfilter/libavfilter.dylib
STRIP   install-libavfilter-shared
ld: building exports trie: duplicate symbol '_av_ac3_parse_header'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libavdevice/libavdevice.60.dylib] Error 1
rm libavfilter/metal/vf_yadif_videotoolbox.metal.air libavfilter/metal/vf_yadif_videotoolbox.metallib libavfilter/metal/vf_yadif_videotoolbox.metallib.c

Thanks in advance! 👋

MarioMastr commented 8 months ago

ffmpeg-iina.rb needs to be updated so that the ld flags Wl and ld_classic are passed if the device runs apple silicon, either that or gcc needs to be passed as the compiler seeing as this issue only occurs using apple clang (https://github.com/spack/spack/issues/40159)