openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.05k stars 3.51k forks source link

boringssl: Failing to build for arm_fa526 #17152

Open jefferyto opened 3 years ago

jefferyto commented 3 years ago

Maintainer: @martinschneider Environment: arm_fa526, OpenWrt master

Description:

From the buildbot faillog:

[23/434] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv4.S.o
FAILED: crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv4.S.o 
/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_fa526_gcc-11.2.0_musl_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc -DBORINGSSL_IMPLEMENTATION -DBORINGSSL_SHARED_LIBRARY -I/builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/boringssl-20210608/third_party/googletest/include -I/builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/boringssl-20210608/crypto/../include -I/builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/boringssl-20210608/crypto/fipsmodule/../../include -Wa,--noexecstack -Wa,-g -O3 -DNDEBUG -fPIC -MD -MT crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv4.S.o -MF crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv4.S.o.d -o crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv4.S.o -c /builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/boringssl-20210608/crypto/fipsmodule/sha256-armv4.S
/builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/boringssl-20210608/crypto/fipsmodule/sha256-armv4.S: Assembler messages:
/builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/boringssl-20210608/crypto/fipsmodule/sha256-armv4.S:1909: Error: invalid constant (ffffffffffffef60) after fixup
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:55: /builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/boringssl-20210608/.built] Error 1
time: package/feeds/packages/boringssl/compile#43.65#3.56#48.05
martinschneider commented 2 years ago

This is https://bugs.chromium.org/p/boringssl/issues/detail?id=485 in the BoringSSL bug tracker, but it is not a priority and might require some efforts from the OpenWrt community to fix.

Alternatively, I am considering marking this target as not supported by the BoringSSL package.