aparcar / openwrt

Staging tree of Paul Spooren
Other
8 stars 1 forks source link

FS#1558 - Buildbot: something in buildslave env affects cortex-a9 build (master and 18.06) #1356

Closed aparcar closed 6 years ago

aparcar commented 6 years ago

hnyman:

I have noticed that the cortex-a9 phase1 builds in buildbot seem to be affected by the specific buildslave. This seems to affect one buildslave in master buldbot (tictex-02) and the sole slave in 18.06 phase1 buildbot. The two slaves continuously fail to build cortex-a9.

All other buildslaves in the main buildbot build cortex-a9 subtarget ok, but tictex-02 in master and the sole 18.06 buildslave fail in building target-specific packages.

http://phase1.builds.lede-project.org/builders/mvebu%2Fcortexa9

http://release-builds.lede-project.org/18.06/images/builders/mvebu%2Fcortexa9

Curiously, tictex-02 does build at least one of the other two mvebu subtargets (as does the 18.06 buildslave, too.)

To me this seems to indicate that something from the buildslave host libraries/packages seeps into the build.

The error message is similar in master and 18.06:

master:

/var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/staging_dir/host/lib/libcrypto.a(libcrypto_la-err.o): In function ERR_load_ERR_strings': err.c:(.text+0xb5b): undefined reference topthread_once' /var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/staging_dir/host/lib/libcrypto.a(libcrypto_la-crypto_init.o): In function OPENSSL_init_crypto': crypto_init.c:(.text+0x59): undefined reference topthread_once' /var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/staging_dir/host/lib/libcrypto.a(libcrypto_la-conf_sap.o): In function OpenSSL_config': conf_sap.c:(.text+0xbc): undefined reference topthread_once' /var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/staging_dir/host/lib/libcrypto.a(libcrypto_la-conf_sap.o): In function OpenSSL_no_config': conf_sap.c:(.text+0xf3): undefined reference topthread_once' /var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/staging_dir/host/lib/libcrypto.a(libcrypto_la-eng_all.o): In function ENGINE_load_builtin_engines': eng_all.c:(.text+0x30): undefined reference topthread_once' /var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/staging_dir/host/lib/libcrypto.a(libcrypto_la-err_all.o):err_all.c:(.text+0x9f): more undefined references to `pthread_once' follow collect2: error: ld returned 1 exit status scripts/Makefile.host:108: recipe for target 'tools/dumpimage' failed make[4]: [tools/dumpimage] Error 1 Makefile:1330: recipe for target 'tools' failed make[3]: [tools] Error 2 make[3]: Leaving directory '/var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/u-boot-clearfog/u-boot-2018.03' Makefile:47: recipe for target '/var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/u-boot-clearfog/u-boot-2018.03/.built' failed make[2]: [/var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/u-boot-clearfog/u-boot-2018.03/.built] Error 2 make[2]: Leaving directory '/var/lib/buildbot/slaves/tictex-02/mvebu_cortexa9/build/package/boot/uboot-mvebu' Command exited with non-zero status 2 time: package/boot/uboot-mvebu/clearfog/compile#16.00#1.96#40.40 package/Makefile:107: recipe for target 'package/boot/uboot-mvebu/compile' failed make[1]: [package/boot/uboot-mvebu/compile] Error 2 make[1]: *** Waiting for unfinished jobs....

aparcar commented 6 years ago

hnyman:

This could be closed, as jow has fixed the bug.

aparcar commented 4 years ago

acoul:

it would be nice to know what was the fix or a reference to the commit that fixed the issue.

on my Gentoo i686-(daily-synced) system I get the exact same error on ath79 using gcc (Gentoo 10.2.0-r1 p2) 10.2.0

HOSTCC scripts/asn1_compiler HOSTCC scripts/extract-cert /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/../../../../i686-pc-linux-gnu/bin/ld: /data/ozonet-2020/ath79/staging_dir/host/lib/libcrypto.a(libcrypto_la-eng_all.o): in function ENGINE_load_builtin_engines': eng_all.c:(.text+0x4a): undefined reference topthread_once' /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/../../../../i686-pc-linux-gnu/bin/ld: /data/ozonet-2020/ath79/staging_dir/host/lib/libcrypto.a(libcrypto_la-err.o): in function ERR_load_ERR_strings': err.c:(.text+0xc6a): undefined reference topthread_once' /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/../../../../i686-pc-linux-gnu/bin/ld: /data/ozonet-2020/ath79/staging_dir/host/lib/libcrypto.a(libcrypto_la-err_all.o): in function ERR_load_crypto_strings': err_all.c:(.text+0xbe): undefined reference topthread_once' /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/../../../../i686-pc-linux-gnu/bin/ld: /data/ozonet-2020/ath79/staging_dir/host/lib/libcrypto.a(libcrypto_la-c_all.o): in function OpenSSL_add_all_ciphers': c_all.c:(.text+0x9fe): undefined reference topthread_once' /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/../../../../i686-pc-linux-gnu/bin/ld: /data/ozonet-2020/ath79/staging_dir/host/lib/libcrypto.a(libcrypto_la-c_all.o): in function OpenSSL_add_all_digests': c_all.c:(.text+0xa2e): undefined reference topthread_once' /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/../../../../i686-pc-linux-gnu/bin/ld: /data/ozonet-2020/ath79/staging_dir/host/lib/libcrypto.a(libcrypto_la-crypto_init.o):crypto_init.c:(.text+0x73): more undefined references to `pthread_once' follow collect2: error: ld returned 1 exit status make[6]: [scripts/Makefile.host:107: scripts/extract-cert] Error 1 make[6]: Waiting for unfinished jobs.... make[5]: *** [Makefile:1123: scripts] Error 2 make[5]: Leaving directory '/data/ozonet-2020/ath79/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.64'

Edit: something is annoyingly forcing the kernel CONFIG_ASYMMETRIC_KEY_TYPE=y