Skip to content

ffmpeg build error: gcc is unable to create an executable file #5

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

Open
ssbarnea opened this issue May 20, 2025 · 1 comment
Open

ffmpeg build error: gcc is unable to create an executable file #5

ssbarnea opened this issue May 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ssbarnea
Copy link

Describe the bug

Apparently the plugin fails to install on apple silicon, with main error being incorrect platform detection based on gcc is unable to create an executable file message being seen.

Steps to reproduce

MISE_VERBOSE=1 mise install ffmpeg
DEBUG ARGS: /Users/ssbarnea/.local/bin/mise install ffmpeg
DEBUG config: ~/code/a/vscode-ansible/.config/mise.toml
DEBUG config: ~/code/a/vscode-ansible/.tool-versions
DEBUG config: ~/.config/mise/config.toml
DEBUG install_some_versions: ffmpeg@latest
INFO  [email protected]    install
DEBUG glob: "/Users/ssbarnea/.env"
DEBUG EnvResults { env: ["RIPGREP_CONFIG_PATH", "TASK_X_FORCE", "PYTEST_DEFAULT_REPR_MAX_SIZE", "TASK_TEMP_DIR", "GH_PAGER", "PYTEST_ADDOPTS", "MAKE", "DOCKER_CLI_HINTS", "ANSIBLE_DEBUG", "CPPFLAGS", "LDFLAGS", "COREPACK_ENABLE_DOWNLOAD_PROMPT", "NODE_OPTIONS", "VIRTUAL_ENV"], env_remove: {"ANSIBLE_DEBUG", "CPPFLAGS", "DOCKER_CLI_HINTS", "GH_PAGER", "LDFLAGS", "MAKE", "PYTEST_ADDOPTS", "PYTEST_DEFAULT_REPR_MAX_SIZE", "RIPGREP_CONFIG_PATH", "TASK_TEMP_DIR", "TASK_X_FORCE"}, env_files: ["/Users/ssbarnea/.env"] }
INFO  [email protected]    bin/download
INFO  [email protected]    ~/.config/mise/plugins/ffmpeg/bin/download
DEBUG $ ~/.config/mise/plugins/ffmpeg/bin/download
INFO  [email protected]    * Downloading ffmpeg release 7.1.1...
INFO  [email protected]    bin/install
INFO  [email protected]    ~/.config/mise/plugins/ffmpeg/bin/install
DEBUG $ ~/.config/mise/plugins/ffmpeg/bin/install
INFO  [email protected]    * Configuring ffmpeg with default options
INFO  [email protected]    gcc is unable to create an executable file.
INFO  [email protected]    If gcc is a cross-compiler, use the --enable-cross-compile option.
INFO  [email protected]    Only do this if you know what cross compiling means.
INFO  [email protected]    C compiler test failed.
INFO  [email protected]    If you think configure made a mistake, make sure you are using the latest
INFO  [email protected]    version from Git.  If the latest version fails, report the problem to the
INFO  [email protected]    [email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
INFO  [email protected]    Include the log file "ffbuild/config.log" produced by configure as this will help
INFO  [email protected]    solve the problem.
INFO  [email protected]    asdf-ffmpeg: An error occurred while installing ffmpeg 7.1.1.
ERROR ~/.config/mise/plugins/ffmpeg/bin/install failed
Error:
   0: failed to install asdf:[email protected]
   1: ~/.config/mise/plugins/ffmpeg/bin/install exited with non-zero status: exit code 1

Location:
   src/plugins/script_manager.rs:184

Version:
   2025.5.3 macos-arm64 (2025-05-09)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Expected behavior

Successful install.

Screenshots

Additional context

@ssbarnea ssbarnea added the bug Something isn't working label May 20, 2025
@acj
Copy link
Owner

acj commented May 20, 2025

I haven't tried building 7.1.1 with mise, but it builds and installs for me with asdf on macOS 15.3.2. Check that you have Xcode's command line tools installed (xcode-select --install). Are you able to compile other C programs?

@acj acj changed the title Fails to build on apple silicon ffmpeg build error: gcc is unable to create an executable file May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants