Determining if the system is big endian passed with the following output: Change Dir: /var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0eb97/fast" /usr/bin/gmake -f CMakeFiles/cmTC_0eb97.dir/build.make CMakeFiles/cmTC_0eb97.dir/build gmake[1]: Entering directory '/var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0eb97.dir/TestEndianess.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -march=native -O2 -pipe -o CMakeFiles/cmTC_0eb97.dir/TestEndianess.c.o -c /var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp/TestEndianess.c Linking C executable cmTC_0eb97 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0eb97.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed CMakeFiles/cmTC_0eb97.dir/TestEndianess.c.o -o cmTC_0eb97 -rdynamic gmake[1]: Leaving directory '/var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp' TestEndianess.c: /* A 16 bit integer is required. */ typedef unsigned short cmakeint16; /* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN." On a big endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000}; /* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN." On a little endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000}; #ifdef __CLASSIC_C__ int main(argc, argv) int argc; char *argv[]; #else int main(int argc, char *argv[]) #endif { int require = 0; require += info_little[argc]; require += info_big[argc]; (void)argv; return require; } Determining if the function sin exists failed with the following output: Change Dir: /var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_cc3a3/fast" /usr/bin/gmake -f CMakeFiles/cmTC_cc3a3.dir/build.make CMakeFiles/cmTC_cc3a3.dir/build gmake[1]: Entering directory '/var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cc3a3.dir/CheckFunctionExists.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -march=native -O2 -pipe -DCHECK_FUNCTION_EXISTS=sin -o CMakeFiles/cmTC_cc3a3.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c :0:23: warning: conflicting types for built-in function ‘sin’ /usr/share/cmake/Modules/CheckFunctionExists.c:6:6: note: in expansion of macro ‘CHECK_FUNCTION_EXISTS’ char CHECK_FUNCTION_EXISTS(); ^ Linking C executable cmTC_cc3a3 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cc3a3.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -DCHECK_FUNCTION_EXISTS=sin -Wl,-O1 -Wl,--as-needed CMakeFiles/cmTC_cc3a3.dir/CheckFunctionExists.c.o -o cmTC_cc3a3 -rdynamic CMakeFiles/cmTC_cc3a3.dir/CheckFunctionExists.c.o: In function `main': CheckFunctionExists.c:(.text.startup+0xe): undefined reference to `sin' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_cc3a3.dir/build.make:97: recipe for target 'cmTC_cc3a3' failed gmake[1]: *** [cmTC_cc3a3] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_cc3a3/fast' failed gmake: *** [cmTC_cc3a3/fast] Error 2 Performing C++ SOURCE FILE Test MGL_HAVE_RVAL failed with the following output: Change Dir: /var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_756ed/fast" /usr/bin/gmake -f CMakeFiles/cmTC_756ed.dir/build.make CMakeFiles/cmTC_756ed.dir/build gmake[1]: Entering directory '/var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_756ed.dir/src.cxx.o /usr/bin/x86_64-pc-linux-gnu-g++ -DNDEBUG -march=native -O2 -pipe -DMGL_HAVE_RVAL -o CMakeFiles/cmTC_756ed.dir/src.cxx.o -c /var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp/src.cxx /var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp/src.cxx:1:34: error: expected ‘,’ or ‘...’ before ‘&&’ token struct test { test() {} test(test&& a){} }; ^ /var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp/src.cxx:1:38: error: invalid constructor; you probably meant ‘test (const test&)’ struct test { test() {} test(test&& a){} }; ^ CMakeFiles/cmTC_756ed.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_756ed.dir/src.cxx.o' failed gmake[1]: *** [CMakeFiles/cmTC_756ed.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/sci-libs/mathgl-2.3.4/work/mathgl-2.3.4_build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_756ed/fast' failed gmake: *** [cmTC_756ed/fast] Error 2 Source file was: struct test { test() {} test(test&& a){} }; int main() { test t; return 0; }