Can't compile FPGA
Created by: Skalextric
I can compile Lite with build_linux.sh but whenever I try to compile to use my FPGA (build_fpga.sh) it fails. This is the CMakeError log.
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f5433/fast"
/usr/bin/make -f CMakeFiles/cmTC_f5433.dir/build.make CMakeFiles/cmTC_f5433.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f5433.dir/CheckSymbolExists.c.o
/usr/bin/aarch64-linux-gnu-gcc -o CMakeFiles/cmTC_f5433.dir/CheckSymbolExists.c.o -c /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_f5433
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5433.dir/link.txt --verbose=1
/usr/bin/aarch64-linux-gnu-gcc -rdynamic CMakeFiles/cmTC_f5433.dir/CheckSymbolExists.c.o -o cmTC_f5433
CMakeFiles/cmTC_f5433.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x14): undefined reference to `pthread_create'
CheckSymbolExists.c:(.text+0x18): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_f5433.dir/build.make:97: recipe for target 'cmTC_f5433' failed
make[1]: *** [cmTC_f5433] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_f5433/fast' failed
make: *** [cmTC_f5433/fast] Error 2
File /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_e8f6b/fast"
/usr/bin/make -f CMakeFiles/cmTC_e8f6b.dir/build.make CMakeFiles/cmTC_e8f6b.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e8f6b.dir/CheckFunctionExists.c.o
/usr/bin/aarch64-linux-gnu-gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_e8f6b.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_e8f6b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e8f6b.dir/link.txt --verbose=1
/usr/bin/aarch64-linux-gnu-gcc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_e8f6b.dir/CheckFunctionExists.c.o -o cmTC_e8f6b -lpthreads
/usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_e8f6b.dir/build.make:97: recipe for target 'cmTC_e8f6b' failed
make[1]: *** [cmTC_e8f6b] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e8f6b/fast' failed
make: *** [cmTC_e8f6b/fast] Error 2
Performing C++ SOURCE FILE Test MMX_FOUND failed with the following output:
Change Dir: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_bbde5/fast"
/usr/bin/make -f CMakeFiles/cmTC_bbde5.dir/build.make CMakeFiles/cmTC_bbde5.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_bbde5.dir/src.cxx.o
/usr/bin/aarch64-linux-gnu-g++ -DMMX_FOUND -mmmx -o CMakeFiles/cmTC_bbde5.dir/src.cxx.o -c /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/src.cxx
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-mmmx’
CMakeFiles/cmTC_bbde5.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_bbde5.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_bbde5.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_bbde5/fast' failed
make: *** [cmTC_bbde5/fast] Error 2
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: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_9c2dc/fast"
/usr/bin/make -f CMakeFiles/cmTC_9c2dc.dir/build.make CMakeFiles/cmTC_9c2dc.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_9c2dc.dir/src.cxx.o
/usr/bin/aarch64-linux-gnu-g++ -DSSE2_FOUND -msse2 -o CMakeFiles/cmTC_9c2dc.dir/src.cxx.o -c /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/src.cxx
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-msse2’
CMakeFiles/cmTC_9c2dc.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_9c2dc.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_9c2dc.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_9c2dc/fast' failed
make: *** [cmTC_9c2dc/fast] Error 2
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: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_fe099/fast"
/usr/bin/make -f CMakeFiles/cmTC_fe099.dir/build.make CMakeFiles/cmTC_fe099.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_fe099.dir/src.cxx.o
/usr/bin/aarch64-linux-gnu-g++ -DSSE3_FOUND -msse3 -o CMakeFiles/cmTC_fe099.dir/src.cxx.o -c /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/src.cxx
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-msse3’
CMakeFiles/cmTC_fe099.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_fe099.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_fe099.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_fe099/fast' failed
make: *** [cmTC_fe099/fast] Error 2
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: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_9c041/fast"
/usr/bin/make -f CMakeFiles/cmTC_9c041.dir/build.make CMakeFiles/cmTC_9c041.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_9c041.dir/src.cxx.o
/usr/bin/aarch64-linux-gnu-g++ -DAVX_FOUND -mavx -o CMakeFiles/cmTC_9c041.dir/src.cxx.o -c /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/src.cxx
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-mavx’
CMakeFiles/cmTC_9c041.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_9c041.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_9c041.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_9c041/fast' failed
make: *** [cmTC_9c041/fast] Error 2
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: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_8e161/fast"
/usr/bin/make -f CMakeFiles/cmTC_8e161.dir/build.make CMakeFiles/cmTC_8e161.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8e161.dir/src.cxx.o
/usr/bin/aarch64-linux-gnu-g++ -DAVX2_FOUND -mavx2 -o CMakeFiles/cmTC_8e161.dir/src.cxx.o -c /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/src.cxx
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-mavx2’
CMakeFiles/cmTC_8e161.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_8e161.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_8e161.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8e161/fast' failed
make: *** [cmTC_8e161/fast] Error 2
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: /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_5178f/fast"
/usr/bin/make -f CMakeFiles/cmTC_5178f.dir/build.make CMakeFiles/cmTC_5178f.dir/build
make[1]: Entering directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5178f.dir/src.cxx.o
/usr/bin/aarch64-linux-gnu-g++ -DAVX512F_FOUND -mavx512f -o CMakeFiles/cmTC_5178f.dir/src.cxx.o -c /home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp/src.cxx
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-mavx512f’
CMakeFiles/cmTC_5178f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_5178f.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_5178f.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/marco/Downloads/Paddle-Lite/build_fpga/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_5178f/fast' failed
make: *** [cmTC_5178f/fast] Error 2
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;
}