Skip to content

[ffmpeg[x264]] build failure on arm64-linux-release #43077

Open
@xengine-qyt

Description

Operating system

ubuntu24.04

Compiler

gcc-aarch64-linux-gnu

Steps to reproduce the behavior

sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu cpp-aarch64-linux-gnu bison flex nasm -y
./vcpkg install ffmpeg[gpl,amf,aom,ass,drawtext,fontconfig,freetype,fribidi,snappy,soxr,srt,vorbis,vpx,webp,x264,x265]:arm64-linux-release

Failure logs

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: /usr/bin/bash -c "V=1 CC='/usr/bin/aarch64-linux-gnu-gcc' CXX='/usr/bin/aarch64-linux-gnu-g++' CC_FOR_BUILD='/usr/bin/aarch64-linux-gnu-gcc' CPP_FOR_BUILD='/usr/bin/aarch64-linux-gnu-gcc -E' CXX_FOR_BUILD='/usr/bin/aarch64-linux-gnu-g++' CCAS='/usr/bin/aarch64-linux-gnu-gcc -c' AS='/usr/bin/aarch64-linux-gnu-gcc -c' NM='/usr/bin/aarch64-linux-gnu-nm' RC='' WINDRES='' DLLTOOL='CMAKE_DLLTOOL-NOTFOUND' STRIP='/usr/bin/aarch64-linux-gnu-strip' OBJDUMP='/usr/bin/aarch64-linux-gnu-objdump' RANLIB='/usr/bin/aarch64-linux-gnu-ranlib' AR='/usr/bin/aarch64-linux-gnu-ar' LD='/usr/bin/aarch64-linux-gnu-ld' ./../src/8bc98c3a0d-84009aba94.clean/configure "--enable-pic" "--disable-lavf" "--disable-swscale" "--disable-avs" "--disable-ffms" "--disable-gpac" "--disable-lsmash" "--disable-bashcompletion" "lt_cv_deplibs_check_method=pass_all" "--prefix=/home/ubuntu/vcpkg/installed/arm64-linux-release" "--bindir=\${prefix}/tools/x264/bin" "--sbindir=\${prefix}/tools/x264/sbin" "--libdir=\${prefix}/lib" "--mandir=\${prefix}/share/x264" "--docdir=\${prefix}/share/x264" "--datarootdir=\${prefix}/share/x264" "--disable-shared" "--enable-static" "--disable-cli" "--enable-strip""
Working Directory: /home/ubuntu/vcpkg/buildtrees/x264/arm64-linux-release-rel
Error code: 1
See logs for more information:
/home/ubuntu/vcpkg/buildtrees/x264/config-arm64-linux-release-rel-config.log
/home/ubuntu/vcpkg/buildtrees/x264/config-arm64-linux-release-rel-out.log

Call Stack (most recent call first):
installed/x64-linux/share/vcpkg-make/vcpkg_make.cmake:41 (vcpkg_execute_required_process)
installed/x64-linux/share/vcpkg-make/vcpkg_make.cmake:260 (vcpkg_run_shell)
installed/x64-linux/share/vcpkg-make/vcpkg_make_configure.cmake:106 (vcpkg_make_run_configure)
ports/x264/portfile.cmake:71 (vcpkg_make_configure)
scripts/ports.cmake:196 (include)

error: building x264:arm64-linux-release failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle x264:arm64-linux-release: 1 s
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+x264
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[x264]+Build+error+on+arm64-linux-release&body=Copy+issue+body+from+%2Fhome%2Fubuntu%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

config-arm64-linux-release-rel-config.log:

checking for -Werror=unknown-warning-option... no
Failed commandline was:
--------------------------------------------------
/usr/bin/aarch64-linux-gnu-gcc conftest.c  -fPIC -O3 -DNDEBUG -Wall -I. -I$(SRCPATH)   -Werror=unknown-warning-option  -L/home/ubuntu/vcpkg/installed/arm64-linux-release/lib -o conftest
cc1: error: ‘-Werror=unknown-warning-option’: no option ‘-Wunknown-warning-option’
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
checking for -Werror=unknown-attributes... no
Failed commandline was:
--------------------------------------------------
/usr/bin/aarch64-linux-gnu-gcc conftest.c  -fPIC -O3 -DNDEBUG -Wall -I. -I$(SRCPATH)   -Werror=unknown-attributes  -L/home/ubuntu/vcpkg/installed/arm64-linux-release/lib -o conftest
cc1: error: ‘-Werror=unknown-attributes’: no option ‘-Wunknown-attributes’; did you mean ‘-Wno-attributes’?
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
checking for -Werror=attributes... yes
checking for -Werror=ignored-attributes... yes
x264 configure script
Command line options: "--enable-pic" "--disable-lavf" "--disable-swscale" "--disable-avs" "--disable-ffms" "--disable-gpac" "--disable-lsmash" "--disable-bashcompletion" "lt_cv_deplibs_check_method=pass_all" "--prefix=/home/ubuntu/vcpkg/installed/arm64-linux-release" "--bindir=${prefix}/tools/x264/bin" "--sbindir=${prefix}/tools/x264/sbin" "--libdir=${prefix}/lib" "--mandir=${prefix}/share/x264" "--docdir=${prefix}/share/x264" "--datarootdir=${prefix}/share/x264" "--disable-shared" "--enable-static" "--disable-cli" "--enable-strip"

checking whether /usr/bin/aarch64-linux-gnu-gcc works... no
Failed commandline was:
--------------------------------------------------
/usr/bin/aarch64-linux-gnu-gcc conftest.c -m64  -fPIC -O3 -DNDEBUG -Wall -I. -I$(SRCPATH)   -Werror=attributes -Werror=ignored-attributes   -m64 -L/home/ubuntu/vcpkg/installed/arm64-linux-release/lib -lm -o conftest
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-m64’
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-m64’
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
DIED: No working C compiler found.

config-arm64-linux-release-rel-out.log:

Unknown option lt_cv_deplibs_check_method=pass_all, ignored
Unknown option --sbindir=${prefix}/tools/x264/sbin, ignored
Unknown option --mandir=${prefix}/share/x264, ignored
Unknown option --docdir=${prefix}/share/x264, ignored
Unknown option --datarootdir=${prefix}/share/x264, ignored
Unknown option --disable-shared, ignored
No working C compiler found.

Metadata

Assignees

No one assigned

    Labels

    category:community-tripletA PR or issue related to community triplets not officially validated by the vcpkg team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions