PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.3k stars 5.63k forks source link

cmake 升级至3.18,编译后仍是undefined reference to pthread_create 等错误 #68794

Open mos1es opened 1 month ago

mos1es commented 1 month ago

请提出你的问题 Please ask your question

1.cmake 版本

10

2.源码下载

11

3.编译命令cmake .../Paddle-develop/ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_FLAGS="-Wno-error -w" -DPY_VERSION=3.9.20 -DPYTHON_EXECUTABLE=which python3 -DWITH_CUSTOM_DEVICE=OFF -DWITH_TESTING=OFF -DON_INFER=ON -DWITH_DISTRIBUTE=ON -DWITH_ARM=ON -DWITH_XPU=ON -DWITH_XPU_BKCL=ON -DWITH_AARCH64=ON -DWITH_AVX=OFF

4.CMakeError.log

12

5.完整错误日志

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_09720/fast && /usr/bin/gmake -f CMakeFiles/cmTC_09720.dir/build.make CMakeFiles/cmTC_09720.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_09720.dir/src.c.o /usr/local/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_09720.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_09720 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_09720.dir/link.txt --verbose=1 /usr/local/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_09720.dir/src.c.o -o cmTC_09720 /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: CMakeFiles/cmTC_09720.dir/src.c.o: in function main': src.c:(.text+0x34): undefined reference topthread_create' /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: src.c:(.text+0x3c): undefined reference to pthread_detach' /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: src.c:(.text+0x48): undefined reference topthread_join' collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_09720.dir/build.make:90: cmTC_09720] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_09720/fast] Error 2

Source file was:

include

void test_func(void data) { return data; }

int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL);

return 0; }

Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_2cc26/fast && /usr/bin/gmake -f CMakeFiles/cmTC_2cc26.dir/build.make CMakeFiles/cmTC_2cc26.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2cc26.dir/CheckFunctionExists.c.o /usr/local/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_2cc26.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_2cc26 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2cc26.dir/link.txt --verbose=1 /usr/local/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_2cc26.dir/CheckFunctionExists.c.o -o cmTC_2cc26 -lpthreads /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_2cc26.dir/build.make:90: cmTC_2cc26] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_2cc26/fast] Error 2

Performing C++ SOURCE FILE Test MMX_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_1b3a3/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1b3a3.dir/build.make CMakeFiles/cmTC_1b3a3.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_1b3a3.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DMMX_FOUND -mmmx -o CMakeFiles/cmTC_1b3a3.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mmmx’ gmake[1]: [CMakeFiles/cmTC_1b3a3.dir/build.make:69: CMakeFiles/cmTC_1b3a3.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_1b3a3/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { _mm_setzero_si64(); return 0; } Performing C++ SOURCE FILE Test SSE2_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_4ed06/fast && /usr/bin/gmake -f CMakeFiles/cmTC_4ed06.dir/build.make CMakeFiles/cmTC_4ed06.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_4ed06.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE2_FOUND -msse2 -o CMakeFiles/cmTC_4ed06.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-msse2’ gmake[1]: [CMakeFiles/cmTC_4ed06.dir/build.make:69: CMakeFiles/cmTC_4ed06.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_4ed06/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { _mm_setzero_si128(); return 0; } Performing C++ SOURCE FILE Test SSE3_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_c325f/fast && /usr/bin/gmake -f CMakeFiles/cmTC_c325f.dir/build.make CMakeFiles/cmTC_c325f.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c325f.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE3_FOUND -msse3 -o CMakeFiles/cmTC_c325f.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-msse3’ gmake[1]: [CMakeFiles/cmTC_c325f.dir/build.make:69: CMakeFiles/cmTC_c325f.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_c325f/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { m128d a = _mm_set1_pd(6.28); __m128d b = _mm_set1_pd(3.14); m128d result = _mm_addsub_pd(a, b); result = _mm_movedup_pd(result); return 0; } Performing C++ SOURCE FILE Test AVX_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_cf83c/fast && /usr/bin/gmake -f CMakeFiles/cmTC_cf83c.dir/build.make CMakeFiles/cmTC_cf83c.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_cf83c.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX_FOUND -mavx -o CMakeFiles/cmTC_cf83c.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mavx’ gmake[1]: [CMakeFiles/cmTC_cf83c.dir/build.make:69: CMakeFiles/cmTC_cf83c.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_cf83c/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { m256 a = _mm256_set_ps(-1.0f, 2.0f, -3.0f, 4.0f, -1.0f, 2.0f, -3.0f, 4.0f); __m256 b = _mm256_set_ps(1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f); m256 result = _mm256_add_ps(a, b); return 0; } Performing C++ SOURCE FILE Test AVX2_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_5cbcf/fast && /usr/bin/gmake -f CMakeFiles/cmTC_5cbcf.dir/build.make CMakeFiles/cmTC_5cbcf.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_5cbcf.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX2_FOUND -mavx2 -o CMakeFiles/cmTC_5cbcf.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mavx2’ gmake[1]: [CMakeFiles/cmTC_5cbcf.dir/build.make:69: CMakeFiles/cmTC_5cbcf.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_5cbcf/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { __m256i a = _mm256_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4); __m256i result = _mm256_abs_epi32 (a); return 0; } Performing C++ SOURCE FILE Test AVX512F_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_c80f2/fast && /usr/bin/gmake -f CMakeFiles/cmTC_c80f2.dir/build.make CMakeFiles/cmTC_c80f2.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c80f2.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX512F_FOUND -mavx512f -o CMakeFiles/cmTC_c80f2.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mavx512f’ gmake[1]: [CMakeFiles/cmTC_c80f2.dir/build.make:69: CMakeFiles/cmTC_c80f2.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_c80f2/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { __m512i a = _mm512_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4, 13, -5, 6, -7, 9, 2, -6, 3); m512i result = _mm512_abs_epi32 (a); return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAGWl failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_29823/fast && /usr/bin/gmake -f CMakeFiles/cmTC_29823.dir/build.make CMakeFiles/cmTC_29823.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_29823.dir/src.c.o /usr/local/bin/gcc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DC_COMPILER_SUPPORT_FLAG__Wl -Wl -o CMakeFiles/cmTC_29823.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c gcc: error: unrecognized command-line option '-Wl'; did you mean '-W'? gmake[1]: [CMakeFiles/cmTC_29823.dir/build.make:69: CMakeFiles/cmTC_29823.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_29823/fast] Error 2

Source file was: int main(void) { return 0; } Performing C++ SOURCE FILE Test CXX_COMPILER_SUPPORT_FLAG__Wl failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_770eb/fast && /usr/bin/gmake -f CMakeFiles/cmTC_770eb.dir/build.make CMakeFiles/cmTC_770eb.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_770eb.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=maybe-uninitialized -std=c++17 -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DCXX_COMPILER_SUPPORT_FLAG__Wl -Wl -o CMakeFiles/cmTC_770eb.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option '-Wl'; did you mean '-W'? gmake[1]: [CMakeFiles/cmTC_770eb.dir/build.make:69: CMakeFiles/cmTC_770eb.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_770eb/fast] Error 2

Source file was: int main() { return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAG__gc_sections failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_563cf/fast && /usr/bin/gmake -f CMakeFiles/cmTC_563cf.dir/build.make CMakeFiles/cmTC_563cf.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_563cf.dir/src.c.o /usr/local/bin/gcc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DC_COMPILER_SUPPORT_FLAG__gc_sections -gc-sections -o CMakeFiles/cmTC_563cf.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c gcc: error: unrecognized debug output level 'c-sections' gmake[1]: [CMakeFiles/cmTC_563cf.dir/build.make:69: CMakeFiles/cmTC_563cf.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_563cf/fast] Error 2

Source file was: int main(void) { return 0; } Performing C++ SOURCE FILE Test CXX_COMPILER_SUPPORT_FLAG__gc_sections failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_1c0db/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1c0db.dir/build.make CMakeFiles/cmTC_1c0db.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_1c0db.dir/src.cxx.o /usr/local/bin/c++ -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=maybe-uninitialized -std=c++17 -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DCXX_COMPILER_SUPPORT_FLAG__gc_sections -gc-sections -o CMakeFiles/cmTC_1c0db.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized debug output level 'c-sections' gmake[1]: [CMakeFiles/cmTC_1c0db.dir/build.make:69: CMakeFiles/cmTC_1c0db.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_1c0db/fast] Error 2

Source file was: int main() { return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_8ce62/fast && /usr/bin/gmake -f CMakeFiles/cmTC_8ce62.dir/build.make CMakeFiles/cmTC_8ce62.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8ce62.dir/src.c.o /usr/local/bin/gcc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-error=array-bounds -Wno-error=ignored-attributes -Wno-error=int-in-bool-context -Wimplicit-fallthrough=0 -Wno-error=deprecated-copy -Wno-ignored-qualifiers -Wno-ignored-attributes -Wno-parentheses -DC_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor -Wnon-virtual-dtor -o CMakeFiles/cmTC_8ce62.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc1: error: command-line option '-Wnon-virtual-dtor' is valid for C++/ObjC++ but not for C [-Werror] cc1: all warnings being treated as errors gmake[1]: [CMakeFiles/cmTC_8ce62.dir/build.make:69: CMakeFiles/cmTC_8ce62.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_8ce62/fast] Error 2

Source file was: int main(void) { return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_d193a/fast && /usr/bin/gmake -f CMakeFiles/cmTC_d193a.dir/build.make CMakeFiles/cmTC_d193a.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d193a.dir/src.c.o /usr/local/bin/gcc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-error=array-bounds -Wno-error=ignored-attributes -Wno-error=int-in-bool-context -Wimplicit-fallthrough=0 -Wno-error=deprecated-copy -Wno-ignored-qualifiers -Wno-ignored-attributes -Wno-parentheses -DC_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor -Wdelete-non-virtual-dtor -o CMakeFiles/cmTC_d193a.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc1: error: command-line option '-Wdelete-non-virtual-dtor' is valid for C++/ObjC++ but not for C [-Werror] cc1: all warnings being treated as errors gmake[1]: [CMakeFiles/cmTC_d193a.dir/build.make:69: CMakeFiles/cmTC_d193a.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_d193a/fast] Error 2

Source file was: int main(void) { return 0; } Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_08fd3/fast && /usr/bin/gmake -f CMakeFiles/cmTC_08fd3.dir/build.make CMakeFiles/cmTC_08fd3.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_08fd3.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_08fd3.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_08fd3 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08fd3.dir/link.txt --verbose=1 /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_08fd3.dir/src.c.o -o cmTC_08fd3 /usr/local/bin/ld: CMakeFiles/cmTC_08fd3.dir/src.c.o: in function main': src.c:(.text+0x34): undefined reference topthread_create' /usr/local/bin/ld: src.c:(.text+0x3c): undefined reference to pthread_detach' /usr/local/bin/ld: src.c:(.text+0x48): undefined reference topthread_join' collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_08fd3.dir/build.make:90: cmTC_08fd3] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_08fd3/fast] Error 2

Source file was:

include

void test_func(void data) { return data; }

int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL);

return 0; }

Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_d8a06/fast && /usr/bin/gmake -f CMakeFiles/cmTC_d8a06.dir/build.make CMakeFiles/cmTC_d8a06.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d8a06.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_d8a06.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_d8a06 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d8a06.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_d8a06.dir/CheckFunctionExists.c.o -o cmTC_d8a06 -lpthreads /usr/local/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_d8a06.dir/build.make:90: cmTC_d8a06] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_d8a06/fast] Error 2

Performing C++ SOURCE FILE Test MMX_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_48390/fast && /usr/bin/gmake -f CMakeFiles/cmTC_48390.dir/build.make CMakeFiles/cmTC_48390.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_48390.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DMMX_FOUND -mmmx -o CMakeFiles/cmTC_48390.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option ‘-mmmx’ gmake[1]: [CMakeFiles/cmTC_48390.dir/build.make:69: CMakeFiles/cmTC_48390.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_48390/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { _mm_setzero_si64(); return 0; } Performing C++ SOURCE FILE Test SSE2_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_79e82/fast && /usr/bin/gmake -f CMakeFiles/cmTC_79e82.dir/build.make CMakeFiles/cmTC_79e82.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_79e82.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE2_FOUND -msse2 -o CMakeFiles/cmTC_79e82.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option ‘-msse2’ gmake[1]: [CMakeFiles/cmTC_79e82.dir/build.make:69: CMakeFiles/cmTC_79e82.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_79e82/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { _mm_setzero_si128(); return 0; } Performing C++ SOURCE FILE Test SSE3_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_fe97e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_fe97e.dir/build.make CMakeFiles/cmTC_fe97e.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_fe97e.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE3_FOUND -msse3 -o CMakeFiles/cmTC_fe97e.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option ‘-msse3’ gmake[1]: [CMakeFiles/cmTC_fe97e.dir/build.make:69: CMakeFiles/cmTC_fe97e.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_fe97e/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { m128d a = _mm_set1_pd(6.28); __m128d b = _mm_set1_pd(3.14); m128d result = _mm_addsub_pd(a, b); result = _mm_movedup_pd(result); return 0; } Performing C++ SOURCE FILE Test AVX_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_84452/fast && /usr/bin/gmake -f CMakeFiles/cmTC_84452.dir/build.make CMakeFiles/cmTC_84452.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_84452.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX_FOUND -mavx -o CMakeFiles/cmTC_84452.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option ‘-mavx’ gmake[1]: [CMakeFiles/cmTC_84452.dir/build.make:69: CMakeFiles/cmTC_84452.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_84452/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { m256 a = _mm256_set_ps(-1.0f, 2.0f, -3.0f, 4.0f, -1.0f, 2.0f, -3.0f, 4.0f); __m256 b = _mm256_set_ps(1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f); m256 result = _mm256_add_ps(a, b); return 0; } Performing C++ SOURCE FILE Test AVX2_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_11d75/fast && /usr/bin/gmake -f CMakeFiles/cmTC_11d75.dir/build.make CMakeFiles/cmTC_11d75.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_11d75.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX2_FOUND -mavx2 -o CMakeFiles/cmTC_11d75.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option ‘-mavx2’ gmake[1]: [CMakeFiles/cmTC_11d75.dir/build.make:69: CMakeFiles/cmTC_11d75.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_11d75/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { __m256i a = _mm256_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4); __m256i result = _mm256_abs_epi32 (a); return 0; } Performing C++ SOURCE FILE Test AVX512F_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_0fd17/fast && /usr/bin/gmake -f CMakeFiles/cmTC_0fd17.dir/build.make CMakeFiles/cmTC_0fd17.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_0fd17.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX512F_FOUND -mavx512f -o CMakeFiles/cmTC_0fd17.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option ‘-mavx512f’ gmake[1]: [CMakeFiles/cmTC_0fd17.dir/build.make:69: CMakeFiles/cmTC_0fd17.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_0fd17/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { __m512i a = _mm512_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4, 13, -5, 6, -7, 9, 2, -6, 3); m512i result = _mm512_abs_epi32 (a); return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAGWl failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_2434b/fast && /usr/bin/gmake -f CMakeFiles/cmTC_2434b.dir/build.make CMakeFiles/cmTC_2434b.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2434b.dir/src.c.o /usr/bin/cc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DC_COMPILER_SUPPORT_FLAG__Wl -Wl -o CMakeFiles/cmTC_2434b.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized command line option '-Wl'; did you mean '-W'? gmake[1]: [CMakeFiles/cmTC_2434b.dir/build.make:69: CMakeFiles/cmTC_2434b.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_2434b/fast] Error 2

Source file was: int main(void) { return 0; } Performing C++ SOURCE FILE Test CXX_COMPILER_SUPPORT_FLAG__Wl failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_8afdd/fast && /usr/bin/gmake -f CMakeFiles/cmTC_8afdd.dir/build.make CMakeFiles/cmTC_8afdd.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_8afdd.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=maybe-uninitialized -std=c++17 -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DCXX_COMPILER_SUPPORT_FLAG__Wl -Wl -o CMakeFiles/cmTC_8afdd.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option '-Wl'; did you mean '-W'? gmake[1]: [CMakeFiles/cmTC_8afdd.dir/build.make:69: CMakeFiles/cmTC_8afdd.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_8afdd/fast] Error 2

Source file was: int main() { return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAG__gc_sections failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_1d332/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1d332.dir/build.make CMakeFiles/cmTC_1d332.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1d332.dir/src.c.o /usr/bin/cc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DC_COMPILER_SUPPORT_FLAG__gc_sections -gc-sections -o CMakeFiles/cmTC_1d332.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized debug output level 'c-sections' gmake[1]: [CMakeFiles/cmTC_1d332.dir/build.make:69: CMakeFiles/cmTC_1d332.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_1d332/fast] Error 2

Source file was: int main(void) { return 0; } Performing C++ SOURCE FILE Test CXX_COMPILER_SUPPORT_FLAG__gc_sections failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_37fcb/fast && /usr/bin/gmake -f CMakeFiles/cmTC_37fcb.dir/build.make CMakeFiles/cmTC_37fcb.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_37fcb.dir/src.cxx.o /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=maybe-uninitialized -std=c++17 -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -DCXX_COMPILER_SUPPORT_FLAG__gc_sections -gc-sections -o CMakeFiles/cmTC_37fcb.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized debug output level 'c-sections' gmake[1]: [CMakeFiles/cmTC_37fcb.dir/build.make:69: CMakeFiles/cmTC_37fcb.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_37fcb/fast] Error 2

Source file was: int main() { return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_f99fc/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f99fc.dir/build.make CMakeFiles/cmTC_f99fc.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f99fc.dir/src.c.o /usr/bin/cc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-error=array-bounds -Wno-error=ignored-attributes -Wno-error=int-in-bool-context -Wimplicit-fallthrough=0 -DC_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor -Wnon-virtual-dtor -o CMakeFiles/cmTC_f99fc.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc1: error: command line option '-Wnon-virtual-dtor' is valid for C++/ObjC++ but not for C [-Werror] cc1: all warnings being treated as errors gmake[1]: [CMakeFiles/cmTC_f99fc.dir/build.make:69: CMakeFiles/cmTC_f99fc.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_f99fc/fast] Error 2

Source file was: int main(void) { return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_7b77d/fast && /usr/bin/gmake -f CMakeFiles/cmTC_7b77d.dir/build.make CMakeFiles/cmTC_7b77d.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7b77d.dir/src.c.o /usr/bin/cc -Wno-error=maybe-uninitialized -fPIC -fno-omit-frame-pointer -pipe -ffunction-sections -fdata-sections -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-error=array-bounds -Wno-error=ignored-attributes -Wno-error=int-in-bool-context -Wimplicit-fallthrough=0 -DC_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor -Wdelete-non-virtual-dtor -o CMakeFiles/cmTC_7b77d.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc1: error: command line option '-Wdelete-non-virtual-dtor' is valid for C++/ObjC++ but not for C [-Werror] cc1: all warnings being treated as errors gmake[1]: [CMakeFiles/cmTC_7b77d.dir/build.make:69: CMakeFiles/cmTC_7b77d.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_7b77d/fast] Error 2

Source file was: int main(void) { return 0; } Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_e3880/fast && /usr/bin/gmake -f CMakeFiles/cmTC_e3880.dir/build.make CMakeFiles/cmTC_e3880.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e3880.dir/src.c.o /usr/local/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_e3880.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_e3880 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e3880.dir/link.txt --verbose=1 /usr/local/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_e3880.dir/src.c.o -o cmTC_e3880 /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: CMakeFiles/cmTC_e3880.dir/src.c.o: in function main': src.c:(.text+0x34): undefined reference topthread_create' /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: src.c:(.text+0x3c): undefined reference to pthread_detach' /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: src.c:(.text+0x48): undefined reference topthread_join' collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_e3880.dir/build.make:90: cmTC_e3880] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_e3880/fast] Error 2

Source file was:

include

void test_func(void data) { return data; }

int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL);

return 0; }

Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_16ab8/fast && /usr/bin/gmake -f CMakeFiles/cmTC_16ab8.dir/build.make CMakeFiles/cmTC_16ab8.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_16ab8.dir/CheckFunctionExists.c.o /usr/local/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_16ab8.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_16ab8 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_16ab8.dir/link.txt --verbose=1 /usr/local/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_16ab8.dir/CheckFunctionExists.c.o -o cmTC_16ab8 -lpthreads /usr/local/lib/gcc/aarch64-unknown-linux-gnu/11.4.0/../../../../aarch64-unknown-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_16ab8.dir/build.make:90: cmTC_16ab8] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_16ab8/fast] Error 2

Performing C++ SOURCE FILE Test MMX_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_d67e0/fast && /usr/bin/gmake -f CMakeFiles/cmTC_d67e0.dir/build.make CMakeFiles/cmTC_d67e0.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_d67e0.dir/src.cxx.o /usr/local/bin/c++ -Wno-error -w -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DMMX_FOUND -mmmx -o CMakeFiles/cmTC_d67e0.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mmmx’ gmake[1]: [CMakeFiles/cmTC_d67e0.dir/build.make:69: CMakeFiles/cmTC_d67e0.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_d67e0/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { _mm_setzero_si64(); return 0; } Performing C++ SOURCE FILE Test SSE2_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_ba56f/fast && /usr/bin/gmake -f CMakeFiles/cmTC_ba56f.dir/build.make CMakeFiles/cmTC_ba56f.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_ba56f.dir/src.cxx.o /usr/local/bin/c++ -Wno-error -w -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE2_FOUND -msse2 -o CMakeFiles/cmTC_ba56f.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-msse2’ gmake[1]: [CMakeFiles/cmTC_ba56f.dir/build.make:69: CMakeFiles/cmTC_ba56f.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_ba56f/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { _mm_setzero_si128(); return 0; } Performing C++ SOURCE FILE Test SSE3_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_44bb7/fast && /usr/bin/gmake -f CMakeFiles/cmTC_44bb7.dir/build.make CMakeFiles/cmTC_44bb7.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_44bb7.dir/src.cxx.o /usr/local/bin/c++ -Wno-error -w -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE3_FOUND -msse3 -o CMakeFiles/cmTC_44bb7.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-msse3’ gmake[1]: [CMakeFiles/cmTC_44bb7.dir/build.make:69: CMakeFiles/cmTC_44bb7.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_44bb7/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { m128d a = _mm_set1_pd(6.28); __m128d b = _mm_set1_pd(3.14); m128d result = _mm_addsub_pd(a, b); result = _mm_movedup_pd(result); return 0; } Performing C++ SOURCE FILE Test AVX_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_6ff66/fast && /usr/bin/gmake -f CMakeFiles/cmTC_6ff66.dir/build.make CMakeFiles/cmTC_6ff66.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_6ff66.dir/src.cxx.o /usr/local/bin/c++ -Wno-error -w -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX_FOUND -mavx -o CMakeFiles/cmTC_6ff66.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mavx’ gmake[1]: [CMakeFiles/cmTC_6ff66.dir/build.make:69: CMakeFiles/cmTC_6ff66.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_6ff66/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { m256 a = _mm256_set_ps(-1.0f, 2.0f, -3.0f, 4.0f, -1.0f, 2.0f, -3.0f, 4.0f); __m256 b = _mm256_set_ps(1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f); m256 result = _mm256_add_ps(a, b); return 0; } Performing C++ SOURCE FILE Test AVX2_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_adfcf/fast && /usr/bin/gmake -f CMakeFiles/cmTC_adfcf.dir/build.make CMakeFiles/cmTC_adfcf.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_adfcf.dir/src.cxx.o /usr/local/bin/c++ -Wno-error -w -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX2_FOUND -mavx2 -o CMakeFiles/cmTC_adfcf.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mavx2’ gmake[1]: [CMakeFiles/cmTC_adfcf.dir/build.make:69: CMakeFiles/cmTC_adfcf.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_adfcf/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { __m256i a = _mm256_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4); __m256i result = _mm256_abs_epi32 (a); return 0; } Performing C++ SOURCE FILE Test AVX512F_FOUND failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_a04c4/fast && /usr/bin/gmake -f CMakeFiles/cmTC_a04c4.dir/build.make CMakeFiles/cmTC_a04c4.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_a04c4.dir/src.cxx.o /usr/local/bin/c++ -Wno-error -w -Wno-error=uninitialized -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX512F_FOUND -mavx512f -o CMakeFiles/cmTC_a04c4.dir/src.cxx.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command-line option ‘-mavx512f’ gmake[1]: [CMakeFiles/cmTC_a04c4.dir/build.make:69: CMakeFiles/cmTC_a04c4.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_a04c4/fast] Error 2

...and run output:

Return value: 1 Source file was:

include

int main() { __m512i a = _mm512_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4, 13, -5, 6, -7, 9, 2, -6, 3); m512i result = _mm512_abs_epi32 (a); return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAGWnon_virtual_dtor failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_f4df1/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f4df1.dir/build.make CMakeFiles/cmTC_f4df1.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f4df1.dir/src.c.o /usr/local/bin/gcc -fPIC -fno-omit-frame-pointer -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-error=array-bounds -Wno-error=ignored-attributes -Wno-error=int-in-bool-context -Wimplicit-fallthrough=0 -Wno-ignored-qualifiers -Wno-ignored-attributes -Wno-parentheses -DC_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor -Wnon-virtual-dtor -o CMakeFiles/cmTC_f4df1.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc1: error: command-line option '-Wnon-virtual-dtor' is valid for C++/ObjC++ but not for C [-Werror] cc1: all warnings being treated as errors gmake[1]: [CMakeFiles/cmTC_f4df1.dir/build.make:69: CMakeFiles/cmTC_f4df1.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_f4df1/fast] Error 2

Source file was: int main(void) { return 0; } Performing C SOURCE FILE Test C_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor failed with the following output: Change Dir: /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_e874a/fast && /usr/bin/gmake -f CMakeFiles/cmTC_e874a.dir/build.make CMakeFiles/cmTC_e874a.dir/build gmake[1]: Entering directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e874a.dir/src.c.o /usr/local/bin/gcc -fPIC -fno-omit-frame-pointer -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-error=array-bounds -Wno-error=ignored-attributes -Wno-error=int-in-bool-context -Wimplicit-fallthrough=0 -Wno-ignored-qualifiers -Wno-ignored-attributes -Wno-parentheses -DC_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor -Wdelete-non-virtual-dtor -o CMakeFiles/cmTC_e874a.dir/src.c.o -c /usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp/src.c cc1: error: command-line option '-Wdelete-non-virtual-dtor' is valid for C++/ObjC++ but not for C [-Werror] cc1: all warnings being treated as errors gmake[1]: [CMakeFiles/cmTC_e874a.dir/build.make:69: CMakeFiles/cmTC_e874a.dir/src.c.o] Error 1 gmake[1]: Leaving directory '/usr/home/PaddleEnvir/Paddle-develop-build/CMakeFiles/CMakeTmp' gmake: [Makefile:124: cmTC_e874a/fast] Error 2

Source file was: int main(void) { return 0; }

mos1es commented 1 month ago

相关依赖信息

13 14

zhangbo9674 commented 1 month ago

可以参考之前的类似问题的issue,比如https://github.com/PaddlePaddle/Paddle/issues/1140, https://github.com/PaddlePaddle/Paddle/issues/35689

mos1es commented 1 month ago

@zhangbo9674 1.鲲鹏920 的处理器 不支持 MMX 指令集吗?如果不支持的话 又该如何修改编译呢? image