首页 Paddle Serving 帖子详情
求助:无外网的ARM环境下编译Paddle,报错
收藏
快速回复
Paddle Serving 问答部署 184 0
求助:无外网的ARM环境下编译Paddle,报错
收藏
快速回复
Paddle Serving 问答部署 184 0

我已经用git clone git --recursive下载了全量的源码,third_party下各个依赖的组件都下载好了,但是cmake .. -DPY_VERSION=3 ******时,仍然报错:

-- AR tools: /usr/bin/ar
-- Performing Test MMX_FOUND
-- Performing Test MMX_FOUND - Failed
-- Performing Test SSE2_FOUND
-- Performing Test SSE2_FOUND - Failed
-- Performing Test SSE3_FOUND
-- Performing Test SSE3_FOUND - Failed
-- Performing Test AVX_FOUND
-- Performing Test AVX_FOUND - Failed
-- Performing Test AVX2_FOUND
-- Performing Test AVX2_FOUND - Failed
-- Performing Test AVX512F_FOUND
-- Performing Test AVX512F_FOUND - Failed
Enable Custom Device when compiling for Linux. Force WITH_CUSTOM_DEVICE=ON.
CMake Warning at CMakeLists.txt:393 (message):
Disable NCCL when compiling without GPU. Force WITH_NCCL=OFF.


CMake Warning at CMakeLists.txt:487 (message):
Disable RCCL when compiling without ROCM. Force WITH_RCCL=OFF.


-- Check submodules of paddle, and run 'git submodule update --init --recursive'
fatal: not a git repository (or any of the parent directories): .git
CMake Error at cmake/third_party.cmake:43 (message):
Failed to get submodule, please check your network !
Call Stack (most recent call first):
CMakeLists.txt:576 (include)


-- Configuring incomplete, errors occurred!
See also "/root/soft/Paddle/build/CMakeFiles/CMakeOutput.log".
See also "/root/soft/Paddle/build/CMakeFiles/CMakeError.log".

 

 

CMakeError.log日志如下:

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_935f6/fast && /usr/bin/gmake -f CMakeFiles/cmTC_935f6.dir/build.make CMakeFiles/cmTC_935f6.dir/build
gmake[1]: Entering directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_935f6.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_935f6.dir/src.c.o -c /root/soft/Paddle/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_935f6
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_935f6.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_935f6.dir/src.c.o -o cmTC_935f6
/usr/bin/ld: CMakeFiles/cmTC_935f6.dir/src.c.o: in function `main':
src.c:(.text+0x34): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x3c): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x48): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_935f6.dir/build.make:90: cmTC_935f6] Error 1
gmake[1]: Leaving directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:124: cmTC_935f6/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: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

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

 

Performing C++ SOURCE FILE Test MMX_FOUND failed with the following output:
Change Dir: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_a3473/fast && /usr/bin/gmake -f CMakeFiles/cmTC_a3473.dir/build.make CMakeFiles/cmTC_a3473.dir/build
gmake[1]: Entering directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a3473.dir/src.cxx.o
/usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DMMX_FOUND -mmmx -o CMakeFiles/cmTC_a3473.dir/src.cxx.o -c /root/soft/Paddle/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option ‘-mmmx’
gmake[1]: *** [CMakeFiles/cmTC_a3473.dir/build.make:69: CMakeFiles/cmTC_a3473.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:124: cmTC_a3473/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: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_0bf21/fast && /usr/bin/gmake -f CMakeFiles/cmTC_0bf21.dir/build.make CMakeFiles/cmTC_0bf21.dir/build
gmake[1]: Entering directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0bf21.dir/src.cxx.o
/usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE2_FOUND -msse2 -o CMakeFiles/cmTC_0bf21.dir/src.cxx.o -c /root/soft/Paddle/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option ‘-msse2’
gmake[1]: *** [CMakeFiles/cmTC_0bf21.dir/build.make:69: CMakeFiles/cmTC_0bf21.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:124: cmTC_0bf21/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: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_cf49b/fast && /usr/bin/gmake -f CMakeFiles/cmTC_cf49b.dir/build.make CMakeFiles/cmTC_cf49b.dir/build
gmake[1]: Entering directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_cf49b.dir/src.cxx.o
/usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DSSE3_FOUND -msse3 -o CMakeFiles/cmTC_cf49b.dir/src.cxx.o -c /root/soft/Paddle/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option ‘-msse3’
gmake[1]: *** [CMakeFiles/cmTC_cf49b.dir/build.make:69: CMakeFiles/cmTC_cf49b.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:124: cmTC_cf49b/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: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_0f7f8/fast && /usr/bin/gmake -f CMakeFiles/cmTC_0f7f8.dir/build.make CMakeFiles/cmTC_0f7f8.dir/build
gmake[1]: Entering directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0f7f8.dir/src.cxx.o
/usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX_FOUND -mavx -o CMakeFiles/cmTC_0f7f8.dir/src.cxx.o -c /root/soft/Paddle/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option ‘-mavx’
gmake[1]: *** [CMakeFiles/cmTC_0f7f8.dir/build.make:69: CMakeFiles/cmTC_0f7f8.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:124: cmTC_0f7f8/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: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_e2441/fast && /usr/bin/gmake -f CMakeFiles/cmTC_e2441.dir/build.make CMakeFiles/cmTC_e2441.dir/build
gmake[1]: Entering directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_e2441.dir/src.cxx.o
/usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX2_FOUND -mavx2 -o CMakeFiles/cmTC_e2441.dir/src.cxx.o -c /root/soft/Paddle/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option ‘-mavx2’
gmake[1]: *** [CMakeFiles/cmTC_e2441.dir/build.make:69: CMakeFiles/cmTC_e2441.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:124: cmTC_e2441/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: /root/soft/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_a34f9/fast && /usr/bin/gmake -f CMakeFiles/cmTC_a34f9.dir/build.make CMakeFiles/cmTC_a34f9.dir/build
gmake[1]: Entering directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a34f9.dir/src.cxx.o
/usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -DAVX512F_FOUND -mavx512f -o CMakeFiles/cmTC_a34f9.dir/src.cxx.o -c /root/soft/Paddle/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option ‘-mavx512f’
gmake[1]: *** [CMakeFiles/cmTC_a34f9.dir/build.make:69: CMakeFiles/cmTC_a34f9.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/root/soft/Paddle/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:124: cmTC_a34f9/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;
}

0
收藏
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户