Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High Sierra clean install of ffmpeg with options #20548

Closed
5 tasks done
nsipplswezey opened this issue Nov 12, 2017 · 10 comments
Closed
5 tasks done

High Sierra clean install of ffmpeg with options #20548

nsipplswezey opened this issue Nov 12, 2017 · 10 comments

Comments

@nsipplswezey
Copy link

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

Please always follow these steps:

  • Confirmed this is a problem with brew installing one, specific Homebrew/homebrew-core formula (not cask or tap) and not every time you run brew? If it's a general brew problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed all issues and retried your prior step?
  • Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why)

Older iMac running newly installed HighSierra
image
and newly installed Xcode 9
image

Trying to do a clean install of brew with the following options brew install ffmpeg --with-libass --with-fontconfig which is a dependency for video-to-gif conversion tool https://github.com/vvo/gifify.

  • What happened (include command output)
    Fails on make install with ./libavutil/aarch64/bswap.h:31:13: error: invalid instruction mnemonic 'rev16'
Macintosh-7:~ nsipplswezey$ brew install ffmpeg --with-libass --with-fontconfig
==> Downloading https://ffmpeg.org/releases/ffmpeg-3.4.tar.bz2
Already downloaded: /Users/nsipplswezey/Library/Caches/Homebrew/ffmpeg-3.4.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/3.4 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libass --enable-libfontconfig --enable-libmp3lame --enable-libx264 --enable-libxvid --ena
==> make install
Last 15 lines from /Users/nsipplswezey/Library/Logs/Homebrew/ffmpeg/02.make:
<inline asm>:1:2: note: instantiated into assembly here
        rev16 %si, %si
        ^~~~~
In file included from libavfilter/vf_curves.c:25:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:38:
./libavutil/aarch64/bswap.h:31:13: error: invalid instruction mnemonic 'rev16'
    __asm__("rev16 %w0, %w0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 %dx, %dx
        ^~~~~
4 errors generated.
make: *** [libavfilter/vf_curves.o] Error 1
make: *** Waiting for unfinished jobs....

READ THIS: https://docs.brew.sh/Troubleshooting.html

These open issues may also help:
Mpv and ffmpeg  https://github.com/Homebrew/homebrew-core/issues/20104
ffmpeg@2.8 & ffmbc: drop faac https://github.com/Homebrew/homebrew-core/pull/20546
Building ffmpeg, ffmbc, or libav makes error with faac 1.29.9 https://github.com/Homebrew/homebrew-core/issues/20317

Looked into #20546 #20104 and #20317 and though they seemed similar –maybe even related– none of those involved this specific error.

Here's my brew gist-logs ffmpeg output
https://gist.github.com/anonymous/013cc0ecb2cfe9a8e32cd4790a05d32a

  • What you expected to happen

Expected ffmpeg to install without problem.
brew install ffmpeg with no options installs without problem.
brew install ffmpeg --with-libass --with-fontconfig installs without issue on my laptop running macOS Sierra 10.12.6 Xcode 9.1.

  • Step-by-step reproduction instructions (by running brew install commands)

Uninstall ffmpeg if it's already intalled. Run brew install ffmpeg --with-libass --with-fontconfig

Formula additions or changes

To get formulae added or changed in Homebrew please file a Pull Request
We will close issues requesting formulae changes.

@ilovezfs
Copy link
Contributor

Can you please try adding --build-bottle and see whether it makes any difference?

@nsipplswezey
Copy link
Author

Same outcome. Output and gist here.

Macintosh-7:~ nsipplswezey$ brew install ffmpeg --with-libass --with-fontconfig --build-bottle
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (caskroom/cask, homebrew/core).
==> New Formulae
heartbeat
==> Updated Formulae
cppad                    exploitdb                getdns                   gsmartcontrol            libgsf                   libpqxx                  mdds                     mikutter                 scalaenv                 sjk                      terragrunt               tintin

==> Downloading https://ffmpeg.org/releases/ffmpeg-3.4.tar.bz2
Already downloaded: /Users/nsipplswezey/Library/Caches/Homebrew/ffmpeg-3.4.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/3.4 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libass --enable-libfontconfig --enable-libmp3lame --enable-libx264 --enable-libxvid --ena
==> make install
Last 15 lines from /Users/nsipplswezey/Library/Logs/Homebrew/ffmpeg/02.make:
<inline asm>:1:2: note: instantiated into assembly here
        rev16 %si, %si
        ^~~~~
In file included from libavfilter/vf_curves.c:25:
In file included from ./libavutil/intreadwrite.h:25:
In file included from ./libavutil/bswap.h:38:
./libavutil/aarch64/bswap.h:31:13: error: invalid instruction mnemonic 'rev16'
    __asm__("rev16 %w0, %w0" : "+r"(x));
            ^
<inline asm>:1:2: note: instantiated into assembly here
        rev16 %dx, %dx
        ^~~~~
4 errors generated.
make: *** [libavfilter/vf_curves.o] Error 1
make: *** Waiting for unfinished jobs....

READ THIS: https://docs.brew.sh/Troubleshooting.html

These open issues may also help:
Mpv and ffmpeg  https://github.com/Homebrew/homebrew-core/issues/20104
ffmpeg@2.8 & ffmbc: drop faac https://github.com/Homebrew/homebrew-core/pull/20546
High Sierra clean install of ffmpeg with options https://github.com/Homebrew/homebrew-core/issues/20548
Building ffmpeg, ffmbc, or libav makes error with faac 1.29.9 https://github.com/Homebrew/homebrew-core/issues/20317
Macintosh-7:~ nsipplswezey$ 

https://gist.github.com/cd93b489594ba4f547c52d9697eb55ea

@ilovezfs
Copy link
Contributor

ilovezfs commented Nov 13, 2017

@nsipplswezey I think you may have something strange set in your environment. aarch64 is ARM not Intel but that's what configure shows being used.

@nsipplswezey
Copy link
Author

Nice catch. Thanks for the response. You might be on to something.
On my laptop running Sierra ARCH is x86. Install works as expected.
https://gist.github.com/8c774b8ab719afcb6815dab5864f87f1
Seems like it's worth getting to the bottom of this.

Could you point me to where brew generates the output in the gists-logs 01.configure file?
Or any hunches on where you might imagine the strange set to aarch64 might be in my environment?

@ilovezfs
Copy link
Contributor

Please try this:

export HOMEBREW_ENV_FILTERING=1
brew install ffmpeg --with-libass --with-fontconfig

@nsipplswezey
Copy link
Author

That did it. I'll keep that in my back pocket if I run into future issues. Took a look at Homebrew/brew#932 for reference.

Assuming that arch environment variable is the root of this, I'm still wondering what the potential candidate list is for where this variable is coming from.

A cursory check

Macintosh-7:~ nsipplswezey$ arch
i386
Macintosh-7:~ nsipplswezey$ uname -p
i386
Macintosh-7:~ nsipplswezey$ uname -m
x86_64

All references to architecture in the system_profiler dump seem to reference x86_64, and no occurances of aarch64

Also for reference, here's the gist-logs output after the successful install after turning on env filtering with export HOMEBREW_ENV_FILTERING=1
https://gist.github.com/nsipplswezey/4fc4da65210ab9852b00ebe379ed5499

Thanks again for your help, and for homebrew. Any other hunches on where this might be originating appreciated.

@ilovezfs
Copy link
Contributor

You need to check the output of the env command.

It's probably something in your ~/.bash_profile file.

@nsipplswezey
Copy link
Author

nsipplswezey commented Nov 15, 2017 via email

@ilovezfs
Copy link
Contributor

You're welcome!

You can try running

bash -ilx

@nsipplswezey
Copy link
Author

Super handy. Thanks!

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants