Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

鲲鹏920离线编译Paddle 遇到的问题 #68760

Open
mos1es opened this issue Oct 16, 2024 · 8 comments
Open

鲲鹏920离线编译Paddle 遇到的问题 #68760

mos1es opened this issue Oct 16, 2024 · 8 comments
Assignees
Labels

Comments

@mos1es
Copy link

mos1es commented Oct 16, 2024

请提出你的问题 Please ask your question

  1. 服务器环境如下

1
2. ### Pthon3 版本
2
3. ### gcc 版本
3
4. ###cmake 版本
4
5. ###cmake ../Paddle-develop/ -DPY_VERSION=3.9.20 -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DWITH_ARM=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON
5
6. ###查看CMakeError.log
6
7. ###完整错误日志如下
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 to pthread_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 to pthread_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 <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_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 <mmintrin.h>
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 <emmintrin.h>
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 <pmmintrin.h>
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 <immintrin.h>
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 <immintrin.h>
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 <immintrin.h>
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_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_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 to pthread_create'
/usr/local/bin/ld: src.c:(.text+0x3c): undefined reference to pthread_detach' /usr/local/bin/ld: src.c:(.text+0x48): undefined reference to pthread_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 <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_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 <mmintrin.h>
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 <emmintrin.h>
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 <pmmintrin.h>
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 <immintrin.h>
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 <immintrin.h>
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 <immintrin.h>
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_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_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; }
8.### pthead.h 也是有的
9
希望能够解答疑惑,万分感谢!!

@risemeup1
Copy link
Contributor

你用的是啥镜像?用我们paddle的官方镜像试试啊

@risemeup1
Copy link
Contributor

因为我们官方的镜像肯定可以编译过的,你这个cmake版本都不太对,需要大于等于3.18

@mos1es
Copy link
Author

mos1es commented Oct 17, 2024

因为我们官方的镜像肯定可以编译过的,你这个cmake版本都不太对,需要大于等于3.18
这个咱们飞桨的官方安装指南上的
微信图片_20241017154045

@mos1es
Copy link
Author

mos1es commented Oct 17, 2024

你用的是啥镜像?用我们paddle的官方镜像试试啊

这个咱们GitHub 上的项目呀 我把包名发你 两个版本我都试了 3.0 和2.5
微信图片_20241017154456

@mos1es
Copy link
Author

mos1es commented Oct 17, 2024

因为我们官方的镜像肯定可以编译过的,你这个cmake版本不太对,需要大于等于3.18

1.首先我升级了cmake 版本 再次尝试

10

2.我下载的项目 是否正确

11

@mos1es
Copy link
Author

mos1es commented Oct 18, 2024

@0x45f @risemeup1
#68794

1.修改Cmake 命令为cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_FLAGS="-lpthread -march=native" -DCMAKE_CXX_FLAGS="-lpthread -march=native" -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 错误日志如下:

image

完整内容如下:

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

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

...and run output:

Return value: 1
Source file was:

#include <mmintrin.h>
int main()
{
_mm_setzero_si64();
return 0;
}
Performing C++ SOURCE FILE Test SSE2_FOUND failed with the following output:
Change Dir: /usr/home/PaddleEnvir/build/CMakeFiles/CMakeTmp

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

...and run output:

Return value: 1
Source file was:

#include <emmintrin.h>
int main()
{
_mm_setzero_si128();
return 0;
}
Performing C++ SOURCE FILE Test SSE3_FOUND failed with the following output:
Change Dir: /usr/home/PaddleEnvir/build/CMakeFiles/CMakeTmp

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

...and run output:

Return value: 1
Source file was:

#include <pmmintrin.h>
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/build/CMakeFiles/CMakeTmp

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

...and run output:

Return value: 1
Source file was:

#include <immintrin.h>
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/build/CMakeFiles/CMakeTmp

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

...and run output:

Return value: 1
Source file was:

#include <immintrin.h>
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/build/CMakeFiles/CMakeTmp

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

...and run output:

Return value: 1
Source file was:

#include <immintrin.h>
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_FLAG__Wnon_virtual_dtor failed with the following output:
Change Dir: /usr/home/PaddleEnvir/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_1bdf9/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1bdf9.dir/build.make CMakeFiles/cmTC_1bdf9.dir/build
gmake[1]: Entering directory '/usr/home/PaddleEnvir/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1bdf9.dir/src.c.o
/usr/local/bin/gcc -lpthread -march=native -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_1bdf9.dir/src.c.o -c /usr/home/PaddleEnvir/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_1bdf9.dir/build.make:85: CMakeFiles/cmTC_1bdf9.dir/src.c.o] Error 1
gmake[1]: Leaving directory '/usr/home/PaddleEnvir/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_1bdf9/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/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_d3f3c/fast && /usr/bin/gmake -f CMakeFiles/cmTC_d3f3c.dir/build.make CMakeFiles/cmTC_d3f3c.dir/build
gmake[1]: Entering directory '/usr/home/PaddleEnvir/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d3f3c.dir/src.c.o
/usr/local/bin/gcc -lpthread -march=native -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_d3f3c.dir/src.c.o -c /usr/home/PaddleEnvir/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_d3f3c.dir/build.make:85: CMakeFiles/cmTC_d3f3c.dir/src.c.o] Error 1
gmake[1]: Leaving directory '/usr/home/PaddleEnvir/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_d3f3c/fast] Error 2

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

咱们这边的QQ 群全都是满员,也添加不上,并且微信这边也没人审核通过。对于使用Paddle 提高的时间成本,而且飞桨官方文档和github 上有些内容不完整,或者有不对应的地方,可以完善一下吗?

@mos1es
Copy link
Author

mos1es commented Oct 21, 2024

@risemeup1 @0x45f
老师 可以帮忙看一下什么原因导致的呢

@vivienfanghuagood
Copy link
Contributor

大概是gcc版本过高导致的, 请降级到9.4.0试试呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants