Compiling from github


#1

EDIT: Sorry, I just had something messed up. git reset --hard fixed it.

Hi!

Checked out the source from github, tried to compile, stops with message:

CMake Error at CMakeLists.txt:71 (include):
  include could not find load file:

version

CMake Error at CMakeLists.txt:87 (include):
  include could not find load file:

utils

CMake Error at CMakeLists.txt:88 (ms_check_compiler):
  Unknown CMake command “ms_check_compiler”.

Cannot find both of the files (version, utils), maybe they are missing from guthub?
Compiling platform: Ubuntu 12.04, with gcc updated to 4.8


#2

Ahhh, good ol’ git reset --hard :slight_smile:

Give us a shout if you hit any other issues.


#3

Actually, I messed it up when fixing the problem I got: I did not have gcc 4.8 when I initially run cmake; after updating the compiler, the cmake system did not reset to the initial state and I still could not compile it. I had to do that manually by removing some files… I guess I just removed too much :-\


#4

I’ve gotten the MAIDSAFE code compiled (on Windows 8.1) and have run a few of the tests (as was suggested in the how-to file):

msbuild /P:Configuration=Debug src\Common\ExperCommon.vcxproj //etc

Is there anything else I can do to get ready for the testnet launch? Is there a specific test that the devs would like to see run?

Other people out there who have been poking around, what have you been doing to explore and learn about the code?


#5

Hi, I’m so exciting hacking the MaidSafe project. But when I was trying to compile it from the github, I got errors like (seeing from the CMakeError.log) “-fsanitize-blacklist”, “-fno-sanitize=alignment”, and there are more other errors.

I uploaded the logs, please check if someone could help me with this. I’m building it on my Ubuntu Gnome 14.04 desktop.

======== Shell Prompts ==========
$ cmake .
– No build type given. Setting CMAKE_BUILD_TYPE to Debug.
– Undefined behaviour sanitiser not available in this compiler.

Configuring third party projects on ‘next’ branch of super-project

– Extracting boost 1.55.0 to /more/sdb7/open/maidsafe/MaidSafe/boost_1_55_0_GNU_4_8_2
– Building b2 (bjam)
CMake Error at /usr/share/cmake-2.8/Modules/FindPythonInterp.cmake:94 (execute_process):
execute_process attempted to output into a file: into a source directory.
Call Stack (most recent call first):
src/third_party_libs/googlemock/gtest/cmake/internal_utils.cmake:193 (find_package)
src/third_party_libs/googlemock/gtest/CMakeLists.txt:50 (include)

– Configuring incomplete, errors occurred!
See also “/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeOutput.log”.
See also “/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeError.log”.

======== CMakeError.log =========
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_BLACKLIST failed with the following output:
Change Dir: /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec242583713/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec242583713.dir/build.make CMakeFiles/cmTryCompileExec242583713.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec242583713.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_BLACKLIST -Werror -fsanitize-blacklist=/more/sdb7/open/maidsafe/MaidSafe/tools/suppressions/blacklist.txt -o CMakeFiles/cmTryCompileExec242583713.dir/src.c.o -c /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized command line option '-fsanitize-blacklist=/more/sdb7/open/maidsafe/MaidSafe/tools/suppressions/blacklist.txt' make[1]: *** [CMakeFiles/cmTryCompileExec242583713.dir/src.c.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec242583713/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_MEMORY failed with the following output:
Change Dir: /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec3546038854/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec3546038854.dir/build.make CMakeFiles/cmTryCompileExec3546038854.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3546038854.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_MEMORY -Werror -fsanitize=memory -fsanitize=memory -o CMakeFiles/cmTryCompileExec3546038854.dir/src.c.o -c /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized command line option '-fsanitize=memory' cc: error: unrecognized command line option '-fsanitize=memory' make[1]: *** [CMakeFiles/cmTryCompileExec3546038854.dir/src.c.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec3546038854/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_THREAD failed with the following output:
Change Dir: /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec3180228325/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec3180228325.dir/build.make CMakeFiles/cmTryCompileExec3180228325.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3180228325.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD -Werror -fsanitize=thread -fsanitize=thread -o CMakeFiles/cmTryCompileExec3180228325.dir/src.c.o -c /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c Linking C executable cmTryCompileExec3180228325 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3180228325.dir/link.txt --verbose=1 /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD -Werror -fsanitize=thread CMakeFiles/cmTryCompileExec3180228325.dir/src.c.o -o cmTryCompileExec3180228325 -rdynamic cc: error: -fsanitize=thread linking must be done with -pie or -shared make[1]: *** [cmTryCompileExec3180228325] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec3180228325/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_THREAD_NEEDS_PIC_PIE failed with the following output:
Change Dir: /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec2329043831/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec2329043831.dir/build.make CMakeFiles/cmTryCompileExec2329043831.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2329043831.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD_NEEDS_PIC_PIE -Werror -fsanitize=thread -fPIC -pie -fsanitize=thread -o CMakeFiles/cmTryCompileExec2329043831.dir/src.c.o -c /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c Linking C executable cmTryCompileExec2329043831 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2329043831.dir/link.txt --verbose=1 /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD_NEEDS_PIC_PIE -Werror -fsanitize=thread -fPIC -pie CMakeFiles/cmTryCompileExec2329043831.dir/src.c.o -o cmTryCompileExec2329043831 -rdynamic CMakeFiles/cmTryCompileExec2329043831.dir/src.c.o: In function_GLOBAL__sub_I_00099_0_src.c’:
src.c:(.text+0x10): undefined reference to __tsan_init' collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec2329043831] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec2329043831/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C++ SOURCE FILE Test HAVE_FLAG_SANITIZE_UNDEFINED failed with the following output:
Change Dir: /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec2482961954/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec2482961954.dir/build.make CMakeFiles/cmTryCompileExec2482961954.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec2482961954.dir/src.cxx.o /usr/bin/c++ -DHAVE_FLAG_SANITIZE_UNDEFINED -Werror -fsanitize=undefined -o CMakeFiles/cmTryCompileExec2482961954.dir/src.cxx.o -c /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option '-fsanitize=undefined' make[1]: *** [CMakeFiles/cmTryCompileExec2482961954.dir/src.cxx.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec2482961954/fast] Error 2

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_FLAG_NO_SANITIZE_ALIGNMENT failed with the following output:
Change Dir: /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec335726275/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec335726275.dir/build.make CMakeFiles/cmTryCompileExec335726275.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec335726275.dir/src.cxx.o /usr/bin/c++ -DHAVE_FLAG_NO_SANITIZE_ALIGNMENT -Werror -fno-sanitize=alignment -o CMakeFiles/cmTryCompileExec335726275.dir/src.cxx.o -c /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option '-fno-sanitize=alignment' make[1]: *** [CMakeFiles/cmTryCompileExec335726275.dir/src.cxx.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec335726275/fast] Error 2

Source file was:
int main() { return 0;}
Performing C SOURCE FILE Test HAVE_FLAG_STACK_PROTECTOR_STRONG failed with the following output:
Change Dir: /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec3985458892/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec3985458892.dir/build.make CMakeFiles/cmTryCompileExec3985458892.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3985458892.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_STACK_PROTECTOR_STRONG -Werror -fstack-protector-strong -fstack-protector-strong -o CMakeFiles/cmTryCompileExec3985458892.dir/src.c.o -c /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized command line option '-fstack-protector-strong' cc: error: unrecognized command line option '-fstack-protector-strong' make[1]: *** [CMakeFiles/cmTryCompileExec3985458892.dir/src.c.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec3985458892/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_BLACKLIST failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec2832765593/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec2832765593.dir/build.make CMakeFiles/cmTryCompileExec2832765593.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2832765593.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_BLACKLIST -Werror -fsanitize-blacklist=/more/sdb7/open/maidsafe/MaidSafe/tools/suppressions/blacklist.txt -o CMakeFiles/cmTryCompileExec2832765593.dir/src.c.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized command line option '-fsanitize-blacklist=/more/sdb7/open/maidsafe/MaidSafe/tools/suppressions/blacklist.txt' make[1]: *** [CMakeFiles/cmTryCompileExec2832765593.dir/src.c.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec2832765593/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_MEMORY failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec108843186/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec108843186.dir/build.make CMakeFiles/cmTryCompileExec108843186.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec108843186.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_MEMORY -Werror -fsanitize=memory -fsanitize=memory -o CMakeFiles/cmTryCompileExec108843186.dir/src.c.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized command line option '-fsanitize=memory' cc: error: unrecognized command line option '-fsanitize=memory' make[1]: *** [CMakeFiles/cmTryCompileExec108843186.dir/src.c.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec108843186/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_THREAD failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec3834717537/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec3834717537.dir/build.make CMakeFiles/cmTryCompileExec3834717537.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3834717537.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD -Werror -fsanitize=thread -fsanitize=thread -o CMakeFiles/cmTryCompileExec3834717537.dir/src.c.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c Linking C executable cmTryCompileExec3834717537 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3834717537.dir/link.txt --verbose=1 /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD -Werror -fsanitize=thread CMakeFiles/cmTryCompileExec3834717537.dir/src.c.o -o cmTryCompileExec3834717537 -rdynamic cc: error: -fsanitize=thread linking must be done with -pie or -shared make[1]: *** [cmTryCompileExec3834717537] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec3834717537/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_THREAD_NEEDS_PIC_PIE failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec613241673/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec613241673.dir/build.make CMakeFiles/cmTryCompileExec613241673.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec613241673.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD_NEEDS_PIC_PIE -Werror -fsanitize=thread -fPIC -pie -fsanitize=thread -o CMakeFiles/cmTryCompileExec613241673.dir/src.c.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c Linking C executable cmTryCompileExec613241673 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec613241673.dir/link.txt --verbose=1 /usr/bin/cc -DHAVE_FLAG_SANITIZE_THREAD_NEEDS_PIC_PIE -Werror -fsanitize=thread -fPIC -pie CMakeFiles/cmTryCompileExec613241673.dir/src.c.o -o cmTryCompileExec613241673 -rdynamic CMakeFiles/cmTryCompileExec613241673.dir/src.c.o: In function_GLOBAL__sub_I_00099_0_src.c’:
src.c:(.text+0x10): undefined reference to __tsan_init' collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec613241673] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec613241673/fast] Error 2

Source file was:
int main(void) { return 0; }
Performing C++ SOURCE FILE Test HAVE_FLAG_SANITIZE_UNDEFINED failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec2396014043/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec2396014043.dir/build.make CMakeFiles/cmTryCompileExec2396014043.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec2396014043.dir/src.cxx.o /usr/bin/c++ -DHAVE_FLAG_SANITIZE_UNDEFINED -Werror -fsanitize=undefined -o CMakeFiles/cmTryCompileExec2396014043.dir/src.cxx.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option '-fsanitize=undefined' make[1]: *** [CMakeFiles/cmTryCompileExec2396014043.dir/src.cxx.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec2396014043/fast] Error 2

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test HAVE_FLAG_NO_SANITIZE_ALIGNMENT failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec3217531006/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec3217531006.dir/build.make CMakeFiles/cmTryCompileExec3217531006.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec3217531006.dir/src.cxx.o /usr/bin/c++ -DHAVE_FLAG_NO_SANITIZE_ALIGNMENT -Werror -fno-sanitize=alignment -o CMakeFiles/cmTryCompileExec3217531006.dir/src.cxx.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.cxx c++: error: unrecognized command line option '-fno-sanitize=alignment' make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make[1]: *** [CMakeFiles/cmTryCompileExec3217531006.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec3217531006/fast] Error 2

Source file was:
int main() { return 0;}
Performing C SOURCE FILE Test HAVE_FLAG_STACK_PROTECTOR_STRONG failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec777828799/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec777828799.dir/build.make CMakeFiles/cmTryCompileExec777828799.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec777828799.dir/src.c.o /usr/bin/cc -DHAVE_FLAG_STACK_PROTECTOR_STRONG -Werror -fstack-protector-strong -fstack-protector-strong -o CMakeFiles/cmTryCompileExec777828799.dir/src.c.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/src.c cc: error: unrecognized command line option '-fstack-protector-strong' cc: error: unrecognized command line option '-fstack-protector-strong' make[1]: *** [CMakeFiles/cmTryCompileExec777828799.dir/src.c.o] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec777828799/fast] Error 2

Source file was:
int main(void) { return 0; }
Determining if the pthread_create exist failed with the following output:
Change Dir: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec1693351308/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec1693351308.dir/build.make CMakeFiles/cmTryCompileExec1693351308.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1693351308.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTryCompileExec1693351308.dir/CheckSymbolExists.c.o -c /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec1693351308 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1693351308.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTryCompileExec1693351308.dir/CheckSymbolExists.c.o -o cmTryCompileExec1693351308 -rdynamic CMakeFiles/cmTryCompileExec1693351308.dir/CheckSymbolExists.c.o: In functionmain’:
CheckSymbolExists.c:(.text+0x16): undefined reference to pthread_create' collect2: error: ld returned 1 exit status make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make[1]: *** [cmTryCompileExec1693351308] Error 1
make: *** [cmTryCompileExec1693351308/fast] Error 2

File /store/open/maidsafe/MaidSafe/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: /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec1542119816/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec1542119816.dir/build.make CMakeFiles/cmTryCompileExec1542119816.dir/build
make[1]: Entering directory /more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /store/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1542119816.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec1542119816.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1542119816 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1542119816.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec1542119816.dir/CheckFunctionExists.c.o -o cmTryCompileExec1542119816 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec1542119816] Error 1 make[1]: Leaving directory/more/sdb7/open/maidsafe/MaidSafe/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec1542119816/fast] Error 2


#6

Edit: Didn’t see your edit fix - gonna try that as well before i try compiling again.

Hi @duzy i’m facing the same issue. I’m testing maidsafe on a virtual machine that initially had 1Gb ram reserved. But i’ve noticed during the compile proces that Cmake takes up a lot of mem, flirting with the limlt. So i’m gonna try to compile again with double the RAM amount and post results here.


#7

Okay, after increasing the RAM capacity and performing a hard reset on the git repo, i recompiled the maidsafe super-project. Then building the targets ExperCommon and Local_network_controller succeeded.

So what have we learned today: Maidsafe is a resource hog for now :slight_smile: