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

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

Open
xengine-qyt opened this issue Jan 3, 2025 · 7 comments
Open

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

xengine-qyt opened this issue Jan 3, 2025 · 7 comments
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@xengine-qyt
Copy link

Operating system

ubuntu24.04

Compiler

No response

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.
@xengine-qyt xengine-qyt added the category:port-bug The issue is with a library, which is something the port should already support label Jan 3, 2025
@xengine-qyt
Copy link
Author

use ffmpeg[gpl,postproc] when link report error:
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: /home/runner/vcpkg/installed/arm64-linux-release/lib/libavutil.a(tx_float_neon.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol ff_tx_tab_32_float' which may bind externally can not be used when making a shared object; recompile with -fPIC /home/runner/vcpkg/installed/arm64-linux-release/lib/libavutil.a(tx_float_neon.o): in function ff_tx_fft32_float_neon':
/home/runner/vcpkg/buildtrees/ffmpeg/arm64-linux-release-rel/src/libavutil/aarch64/tx_float_neon.S:923:(.text+0x61c): dangerous relocation: unsupported relocation
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: /home/runner/vcpkg/installed/arm64-linux-release/lib/libavutil.a(tx_float_neon.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol ff_tx_tab_32_float' which may bind externally can not be used when making a shared object; recompile with -fPIC /home/runner/vcpkg/installed/arm64-linux-release/lib/libavutil.a(tx_float_neon.o): in function ff_tx_fft32_ns_float_neon':
/home/runner/vcpkg/buildtrees/ffmpeg/arm64-linux-release-rel/src/libavutil/aarch64/tx_float_neon.S:924:(.text+0xb38): dangerous relocation: unsupported relocation
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: /home/runner/vcpkg/installed/arm64-linux-release/lib/libavutil.a(tx_float_neon.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `ff_tx_tab_32_float' which may bind externally can not be used when making a shared object; recompile with -fPIC

@dg0yt
Copy link
Contributor

dg0yt commented Jan 4, 2025

This issue is mixing different failures (even different ports).

@xengine-qyt
Copy link
Author

It may be the same as the issue #42919

@MonicaLiu0311 MonicaLiu0311 added category:question This issue is a question category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. and removed category:port-bug The issue is with a library, which is something the port should already support category:question This issue is a question labels Jan 6, 2025
@MonicaLiu0311 MonicaLiu0311 removed their assignment Jan 6, 2025
@MonicaLiu0311
Copy link
Contributor

MonicaLiu0311 commented Jan 6, 2025

I couldn't reproduce it on x64-linux, so I marked it as category:community-triplet.

@dg0yt
Copy link
Contributor

dg0yt commented Jan 6, 2025

It may be the same as the issue #42919

This cannot be determined. Both issues moved from an original problem to another problem. If the original problem was resolved, close the issue. There is no point in adding hints which do not refer to it. People looking for the original issue would be confused.

@xengine-qyt
Copy link
Author

It may be the same as the issue #42919

This cannot be determined. Both issues moved from an original problem to another problem. If the original problem was resolved, close the issue. There is no point in adding hints which do not refer to it. People looking for the original issue would be confused.

It's just a guess. It hasn't been solved yet, and I don't know why this is happening. There seems to be problems with community-triplet compilation of ffmpeg.

@dg0yt
Copy link
Contributor

dg0yt commented Jan 6, 2025

All those guess just add confusion.
I do have an idea for this issue, but it doesn't match the issue's original post.
#42919 is a different issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

No branches or pull requests

3 participants