CI/CD sanity and failed x86_64 builds
Philip Prindeville
philipp_subx at redfish-solutions.com
Thu Feb 25 01:21:49 EST 2021
I'm seeing repeated failures when rebuilding strongswan for x86_64. From what I can tell from the CI/CD logs, everything *is* being built with -fPIC, so I'm not sure why we're still seeing:
2021-02-24T20:02:59.8624672Z OpenWrt-libtool: compile: x86_64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/libstrongswan -I/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include -I/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/include -I/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/include -rdynamic -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/build/openwrt/build_dir/target-x86_64_musl/strongswan-5.9.1=strongswan-5.9.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/include -I/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/include -include /home/build/openwrt/build_dir/target-x86_64_musl/strongswan-5.9.1/config.h -MT ../gmp/gmp_diffie_hellman.lo -MD -MP -MF ../gmp/.deps/gmp_diffie_hellman.Tpo -c ../gmp/gmp_diffie_hellman.c -fPIC -DPIC -o ../gmp/.libs/gmp_diffie_hellman.o
2021-02-24T20:02:59.9724902Z /bin/bash ../../../../libtool --tag=CC --mode=link x86_64-openwrt-linux-musl-gcc -rdynamic -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/build/openwrt/build_dir/target-x86_64_musl/strongswan-5.9.1=strongswan-5.9.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/include -I/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/include -include /home/build/openwrt/build_dir/target-x86_64_musl/strongswan-5.9.1/config.h -module -avoid-version -Wl,-Bstatic -Wl,-lgmp -Wl,-Bdynamic -Wl,--as-needed -L/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro -L/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/lib -L/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/lib -Wl,-rpath-link=/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/lib -Wl,-rpath-link,/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib -o libstrongswan-gmpdh.la -rpath /usr/lib/ipsec/plugins gmpdh_plugin.lo ../gmp/gmp_diffie_hellman.lo
2021-02-24T20:03:00.0467739Z OpenWrt-libtool: link: x86_64-openwrt-linux-musl-gcc -shared -fPIC -DPIC .libs/gmpdh_plugin.o ../gmp/.libs/gmp_diffie_hellman.o -L/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -L/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/lib -L/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/lib -Os -fstack-protector -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-Bstatic -Wl,-lgmp -Wl,-Bdynamic -Wl,--as-needed -Wl,-rpath-link=/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-stub/lib -Wl,-rpath-link -Wl,/home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib -Wl,-soname -Wl,libstrongswan-gmpdh.so -o .libs/libstrongswan-gmpdh.so
2021-02-24T20:03:00.0787467Z /home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/bin/../lib/gcc/x86_64-openwrt-linux-musl/8.4.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/build/openwrt/staging_dir/target-x86_64_musl/usr/lib/libgmp.a(bdiv_q_1.o): relocation R_X86_64_PC32 against symbol `__gmp_binvert_limb_table' can not be used when making a shared object; recompile with -fPIC
2021-02-24T20:03:00.0790070Z /home/build/openwrt/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/bin/../lib/gcc/x86_64-openwrt-linux-musl/8.4.0/../../../../x86_64-openwrt-linux-musl/bin/ld: final link failed: bad value
2021-02-24T20:03:00.0791131Z collect2: error: ld returned 1 exit status
2021-02-24T20:03:00.0803715Z make[8]: *** [Makefile:564: libstrongswan-gmpdh.la] Error 1
Anyone else want to venture a guess as to what is impeding CI/CD?
Thanks,
-Philip
More information about the openwrt-devel
mailing list