GithubHelp home page GithubHelp logo

Comments (24)

slhck avatar slhck commented on June 26, 2024 2

I can reproduce this on 13.5.2 on a M1 machine.

➜ brew reinstall homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint --with-fdk-aac --with-game-music-emu --with-jack --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-speex --with-tesseract --with-two-lame --with-webp --with-xvid --with-zeromq --with-zimg

==> Fetching homebrew-ffmpeg/ffmpeg/ffmpeg
==> Downloading https://github.com/FFmpeg/FFmpeg/commit/effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch?full_index=1
Already downloaded: /Users/werner/Library/Caches/Homebrew/downloads/a69d9379ef65ead2df9b7bcdd51b88390155ebe749aad80abb09ec661c242f0b--effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch
==> Downloading https://gitlab.archlinux.org/archlinux/packaging/packages/ffmpeg/-/raw/5670ccd86d3b816f49ebc18cab878125eca2f81f/add-av_stream_get_first_dts-for-chromium.patch
Already downloaded: /Users/werner/Library/Caches/Homebrew/downloads/89c5a789bbb2e059f601e58af1ca10f4db2a1939f591f896a0240cb1cfb2b8bb--add-av_stream_get_first_dts-for-chromium.patch
==> Downloading https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz
Already downloaded: /Users/werner/Library/Caches/Homebrew/downloads/cde06afa988dec3565a51f2a2b503db685b5a78ba8ecc7f3c95562c750a9d838--ffmpeg-6.0.tar.xz
==> Reinstalling homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint --with-fdk-aac --with-game-music-emu --with-jack --with-libmodplug --with-libsoxr --with-libssh --with-tesserac
==> Patching
==> Applying effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch
patching file 'libavcodec/x86/mathops.h'
==> Applying add-av_stream_get_first_dts-for-chromium.patch
patching file 'libavformat/avformat.h'
patching file 'libavformat/mux_utils.c'
==> ./configure --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-l
==> make install
Last 15 lines from /Users/werner/Library/Logs/Homebrew/ffmpeg/02.make:
INSTALL	libavformat/libavformat.dylib
STRIP	install-libavformat-shared
CC	libavfilter/metal/vf_yadif_videotoolbox.metallib.o
GEN	libavfilter/libavfilter.ver
AR	libavfilter/libavfilter.a
LD	libavfilter/libavfilter.9.dylib
INSTALL	libavfilter/libavfilter.a
LD	libavdevice/libavdevice.60.dylib
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
make: *** Waiting for unfinished jobs....
rm libavfilter/metal/vf_yadif_videotoolbox.metal.air libavfilter/metal/vf_yadif_videotoolbox.metallib libavfilter/metal/vf_yadif_videotoolbox.metallib.c

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024 2

@loshlee Thank you for the information. I assume you are installing the standard Homebrew ffmpeg formula, but I would like to fix this one.

from homebrew-ffmpeg.

freultwah avatar freultwah commented on June 26, 2024 2

This is apparently an Xcode issue introduced in Xcode 15 beta 3: https://developer.apple.com/forums/thread/733317. I had the same issue with ld: building exports trie: duplicate symbol '_av_ac3_parse_header' and reverting to Xcode Command Line Tools 15b2 made stuff work.

from homebrew-ffmpeg.

fxcoudert avatar fxcoudert commented on June 26, 2024 2

This is a workaround, but Apple will need to fix their linker. Has the issue been reported to Apple? If so, what is the FB number?

from homebrew-ffmpeg.

slhck avatar slhck commented on June 26, 2024 2

Please test again, I could confirm it working now with the fix from @retokromer

from homebrew-ffmpeg.

Moulick avatar Moulick commented on June 26, 2024 2

works now

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024 1

@loshlee Thank you for reporting! I cannot test now on macOS 13.6, but will do it in approximately one week time.

from homebrew-ffmpeg.

slhck avatar slhck commented on June 26, 2024 1

It also fails without any options, so these aren't causing the problem.

Someone mentions on a forum that this Formula gives the same error: https://github.com/apple/homebrew-apple/blob/main/Formula/game-porting-toolkit.rb — this does not have a lot in common with our formula.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024 1

@loshlee Could you possibly test is the fix by @slhck solves your issue?

from homebrew-ffmpeg.

slhck avatar slhck commented on June 26, 2024 1

@retokromer The PR does not fix this, it just fixed a related issue attempting to run the command from @loshlee. So I'm reopening now...

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024 1

Oh, sorry @slhck, for the noise.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024 1

It also fails without any options, so these aren't causing the problem.

It seems to be related to clang 15.

from homebrew-ffmpeg.

sourcecodemage avatar sourcecodemage commented on June 26, 2024 1

Same here while trying install ffmpeg with "--enable-libfdk-aac" .
M1 Macbook running macOS v13.5.2

`> brew update
Already up-to-date.

brew doctor
Your system is ready to brew.

brew config
HOMEBREW_VERSION: 4.1.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: aa2a77b1f1ac1539e69e186bad1d569100448987
Last commit: 8 days ago
Core tap JSON: 24 Sep 18:00 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.42.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.5.2-arm64
CLT: 15.0.0.0.1.1694021235
Xcode: 15.0
Rosetta 2: false

brew uninstall --ignore-dependencies ffmpeg
Error: No such keg: /opt/homebrew/Cellar/ffmpeg

brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
/Users/redacted/Library/Logs/Homebrew/ffmpeg/02.make file attached since it's a lot of output.
extension changed to .txt to enable upload.
`

02.make.txt

Let me know if you want me to run any commands or collect diagnostics to assist with troubleshooting this issue.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024 1

It also fails without any options, so these aren't causing the problem.

The relevant lines are always the same:

LD	libavdevice/libavdevice.60.dylib
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

from homebrew-ffmpeg.

slhck avatar slhck commented on June 26, 2024 1

Hmm. I have Xcode Version 15.0 (15A240d) and have this issue.

from homebrew-ffmpeg.

freultwah avatar freultwah commented on June 26, 2024 1

It's apparently broken from 15b3 onwards, still not fixed even in the release.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024 1

I don’t have Xcode on this machine and CLT (15.0.0.0.1.1694021235) also is broken.

from homebrew-ffmpeg.

petersteneteg avatar petersteneteg commented on June 26, 2024 1

related PR from spack with a potential fix spack/spack#40187

from homebrew-ffmpeg.

loshlee avatar loshlee commented on June 26, 2024

My workaround has been to use "brew uninstall --ignore-dependencies ffmpeg", then use "brew install ffmpeg".

from homebrew-ffmpeg.

loshlee avatar loshlee commented on June 26, 2024

Thanks, everyone.

from homebrew-ffmpeg.

sourcecodemage avatar sourcecodemage commented on June 26, 2024

What is the work around, as in , what commands do I need to run ? Should I run brew update && brew upgrade && brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac ?

Update: That worked for me. Background - I had a different ffmpeg installed at the beginning. I uninstalled it and trying installed homebrew-ffmpeg with with-fdk-aac support so that I could get another application - "m4b-tools" - to install. That failed with the libavdevice error. Running the brew commands I listed above was successful for me.

from homebrew-ffmpeg.

loshlee avatar loshlee commented on June 26, 2024

Hard to be sure without more information. If your last successful initial installation included "--with-fdk-aac", and you haven't used other offhand attempts at workarounds and/or installation, I think this might suffice:

brew reinstall homebrew-ffmpeg/ffmpeg/ffmpeg

If you don't see "--with-fdk-aac" in the output of that command, then installation with that option may require other steps. Anyway, that's what worked for me (I had previously also used "--HEAD").

from homebrew-ffmpeg.

retokromer avatar retokromer commented on June 26, 2024

There is no workaround: just use the regular installation. And if you get an error, please open a new issue, providing all the requested information.

from homebrew-ffmpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.