Hi, everyone. I’m getting a build failure on NixOS, could anyone help me? The error resembles https://lists.fd.io/g/vpp-dev/message/12671 <https://lists.fd.io/g/vpp-dev/message/12671> though just normal x64 here.
``` Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /tmp/nix-build-vpp.drv-12/source/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp Run Build Command(s):/nix/store/dq1dgv8xbkp5cdk60hhi3gh8wrfln8la-ninja/ninja cmTC_7b541 && [1/2] Building C object CMakeFiles/cmTC_7b541.dir/src.c.o [2/2] Linking C executable cmTC_7b541 FAILED: cmTC_7b541 : && /nix/store/k930l9lckxjf4zmafv4aapvdbd2sibmj-gcc-wrapper-9.3.0/bin/gcc -Wno-address-of-packed-member -g -fPIC -Werror -Wall -march=corei7 -mtune=corei7-avx -DCMA /nix/store/3b3ighb83nhifa1v4n7855hlbdl1mhf9-binutils-2.31.1/bin/ld: CMakeFiles/cmTC_7b541.dir/src.c.o: in function `main': /tmp/nix-build-vpp.drv-12/source/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp/src.c:11: undefined reference to `pthread_create' /nix/store/3b3ighb83nhifa1v4n7855hlbdl1mhf9-binutils-2.31.1/bin/ld: /tmp/nix-build-vpp.drv-12/source/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp/src.c:12: und /nix/store/3b3ighb83nhifa1v4n7855hlbdl1mhf9-binutils-2.31.1/bin/ld: /tmp/nix-build-vpp.drv-12/source/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp/src.c:13: und /nix/store/3b3ighb83nhifa1v4n7855hlbdl1mhf9-binutils-2.31.1/bin/ld: /tmp/nix-build-vpp.drv-12/source/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp/src.c:14: und collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include <pthread.h> void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; } Determining if the function SSL_set_async_callback exists failed with the following output: Change Dir: /tmp/nix-build-vpp.drv-12/source/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp Run Build Command(s):/nix/store/dq1dgv8xbkp5cdk60hhi3gh8wrfln8la-ninja/ninja cmTC_06095 && [1/2] Building C object CMakeFiles/cmTC_06095.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_06095 FAILED: cmTC_06095 : && /nix/store/k930l9lckxjf4zmafv4aapvdbd2sibmj-gcc-wrapper-9.3.0/bin/gcc -Wno-address-of-packed-member -g -fPIC -Werror -Wall -march=corei7 -mtune=corei7-avx -DCHE /nix/store/3b3ighb83nhifa1v4n7855hlbdl1mhf9-binutils-2.31.1/bin/ld: CMakeFiles/cmTC_06095.dir/CheckFunctionExists.c.o: in function `main': /nix/store/f4vmcp2c20mq7vj4jjm70ps3nnm09mfa-cmake-3.17.0/share/cmake-3.17/Modules/CheckFunctionExists.c:17: undefined reference to `SSL_set_async_callback' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ``` Regards, Nikita
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16473): https://lists.fd.io/g/vpp-dev/message/16473 Mute This Topic: https://lists.fd.io/mt/74405015/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-