Cannot compile binaries with "make release-all" after installing dependancies on 2 different distros, fresh install, results in:
-- Found readline library at: /usr
-- Found Git: /usr/bin/git
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- GTest not found on the system: will use GTest bundled with this source
-- Configuring incomplete, errors occurred!
See also "/home/init/safexcore/build/release/CMakeFiles/CMakeOutput.log".
See also "/home/init/safexcore/build/release/CMakeFiles/CMakeError.log".
Makefile:66: recipe for target 'release-all' failed
make: *** [release-all] Error 1
CMakeError.log:
cat /home/init/safexcore/build/release/CMakeFiles/CMakeError.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/init/safexcore/build/release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_fe7f6/fast"
make[1]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_fe7f6.dir/build.make CMakeFiles/cmTC_fe7f6.dir/build
make[2]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o -c /home/init/safexcore/build/release/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_fe7f6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fe7f6.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o -o cmTC_fe7f6
CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text+0x1b): undefined reference to
pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_fe7f6.dir/build.make:97: recipe for target 'cmTC_fe7f6' failed
make[2]: *** [cmTC_fe7f6] Error 1
make[2]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_fe7f6/fast' failed
make[1]: *** [cmTC_fe7f6/fast] Error 2
make[1]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
File /home/init/safexcore/build/release/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 memset_s exists in the c failed with the following output:
Change Dir: /home/init/safexcore/build/release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_d081c/fast"
make[1]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_d081c.dir/build.make CMakeFiles/cmTC_d081c.dir/build
make[2]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=memset_s -o CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_d081c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d081c.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=memset_s -rdynamic CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o -o cmTC_d081c -L/home/init/safexcore/build/release/CMakeFiles/CMakeTmp/string.h -Wl,-rpath,/home/init/safexcore/build/release/CMakeFiles/CMakeTmp/string.h -lc
CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o: In function main': CheckFunctionExists.c:(.text+0x10): undefined reference to
memset_s'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_d081c.dir/build.make:97: recipe for target 'cmTC_d081c' failed
make[2]: *** [cmTC_d081c] Error 1
make[2]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d081c/fast' failed
make[1]: *** [cmTC_d081c/fast] Error 2
make[1]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Determining if the -Wl,-z,noexecheap linker flag is suppored failed with the following output:
Change Dir: /home/init/safexcore/build/release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_3c2e0/fast"
make[1]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_3c2e0.dir/build.make CMakeFiles/cmTC_3c2e0.dir/build
make[2]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3c2e0.dir/CheckLinkerFlag.c.o
/usr/bin/cc -Wl,-z,noexecheap -Wl,-z,noexecheap -o CMakeFiles/cmTC_3c2e0.dir/CheckLinkerFlag.c.o -c /home/init/safexcore/cmake/CheckLinkerFlag.c
Linking C executable cmTC_3c2e0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3c2e0.dir/link.txt --verbose=1
/usr/bin/cc -Wl,-z,noexecheap -rdynamic CMakeFiles/cmTC_3c2e0.dir/CheckLinkerFlag.c.o -o cmTC_3c2e0
/usr/bin/x86_64-linux-gnu-ld: warning: -z noexecheap ignored.
make[2]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
make[1]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'