Determining if the __GLIBC__ exist failed with the following output: Change Dir: /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/local/bin/gmake cmTC_58137/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_58137.dir/build.make CMakeFiles/cmTC_58137.dir/build gmake[1]: Entering directory '/tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_58137.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTC_58137.dir/CheckSymbolExists.c.o -c /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier '__GLIBC__' return ((int*)(&__GLIBC__))[argc]; ^ 1 error generated. gmake[1]: *** [CMakeFiles/cmTC_58137.dir/build.make:86: CMakeFiles/cmTC_58137.dir/CheckSymbolExists.c.o] Error 1 gmake[1]: Leaving directory '/tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_58137/fast] Error 2 File /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef __GLIBC__ return ((int*)(&__GLIBC__))[argc]; #else (void)argc; return 0; #endif } Performing C++ SOURCE FILE Test BoostPython_FromCMake failed with the following output: Change Dir: /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/local/bin/gmake cmTC_a8d16/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_a8d16.dir/build.make CMakeFiles/cmTC_a8d16.dir/build gmake[1]: Entering directory '/tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_a8d16.dir/src.cxx.o /usr/bin/c++ -D_LARGEFILE64_SOURCE -I/usr/local/include -I/usr/local/include/python2.7 -fno-operator-names -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -std=c++11 -fexceptions -DBoostPython_FromCMake -o CMakeFiles/cmTC_a8d16.dir/src.cxx.o -c /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/src.cxx In file included from /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /usr/local/include/boost/python.hpp:11: In file included from /usr/local/include/boost/python/args.hpp:8: In file included from /usr/local/include/boost/python/detail/prefix.hpp:13: /usr/local/include/boost/python/detail/wrap_python.hpp:236:7: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef] #elif _MSC_VER ^ In file included from /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /usr/local/include/boost/python.hpp:11: In file included from /usr/local/include/boost/python/args.hpp:10: In file included from /usr/local/include/boost/python/args_fwd.hpp:10: In file included from /usr/local/include/boost/python/handle.hpp:10: In file included from /usr/local/include/boost/python/cast.hpp:9: In file included from /usr/local/include/boost/python/detail/type_traits.hpp:31: In file included from /usr/local/include/boost/type_traits/is_base_and_derived.hpp:12: In file included from /usr/local/include/boost/type_traits/intrinsics.hpp:16: /usr/local/include/boost/type_traits/detail/config.hpp:85:52: warning: '__clang_major___WORKAROUND_GUARD' is not defined, evaluates to 0 [-Wundef] && !BOOST_WORKAROUND(BOOST_MSVC, < 1900) && !BOOST_WORKAROUND(__clang_major__, <= 4) ^ /usr/local/include/boost/config/workaround.hpp:246:10: note: expanded from macro 'BOOST_WORKAROUND' ((symbol ## _WORKAROUND_GUARD + 0 == 0) && \ ^ :329:1: note: expanded from here __clang_major___WORKAROUND_GUARD ^ In file included from /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /usr/local/include/boost/python.hpp:11: In file included from /usr/local/include/boost/python/args.hpp:22: In file included from /usr/local/include/boost/python/object_core.hpp:14: In file included from /usr/local/include/boost/python/call.hpp:15: In file included from /usr/local/include/boost/python/converter/arg_to_python.hpp:19: In file included from /usr/local/include/boost/python/object/function_handle.hpp:8: In file included from /usr/local/include/boost/python/detail/caller.hpp:21: In file included from /usr/local/include/boost/python/arg_from_python.hpp:9: /usr/local/include/boost/python/converter/arg_from_python.hpp:117:6: warning: '_MSC_FULL_VER' is not defined, evaluates to 0 [-Wundef] # if _MSC_FULL_VER > 13102196 ^ In file included from /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /usr/local/include/boost/python.hpp:11: In file included from /usr/local/include/boost/python/args.hpp:22: /usr/local/include/boost/python/object_core.hpp:177:6: warning: '__MWERKS__' is not defined, evaluates to 0 [-Wundef] # if __MWERKS__ < 0x3000 || __MWERKS__ > 0x3003 ^ In file included from /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /usr/local/include/boost/python.hpp:48: /usr/local/include/boost/python/opaque_pointer_converter.hpp:169:1: warning: missing field 'tp_version_tag' initializer [-Wmissing-field-initializers] }; ^ In file included from /tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /usr/local/include/boost/python.hpp:51: In file included from /usr/local/include/boost/python/overloads.hpp:11: /usr/local/include/boost/python/detail/defaults_def.hpp:92:30: warning: unused parameter 'kw' [-Wunused-parameter] , keyword_range const& kw // ignored ^ 6 warnings generated. Linking CXX executable cmTC_a8d16 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a8d16.dir/link.txt --verbose=1 /usr/bin/c++ -fno-operator-names -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -std=c++11 -fexceptions -DBoostPython_FromCMake -Wl,--enable-new-dtags CMakeFiles/cmTC_a8d16.dir/src.cxx.o -o cmTC_a8d16 -Wl,-rpath,/usr/local/lib /usr/local/lib/libboost_python37.so /usr/local/lib/libpython2.7.so ld: error: undefined symbol: boost::python::detail::init_module(char const*, void (*)()) >>> referenced by src.cxx >>> CMakeFiles/cmTC_a8d16.dir/src.cxx.o:(inithello) c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [CMakeFiles/cmTC_a8d16.dir/build.make:109: cmTC_a8d16] Error 1 gmake[1]: Leaving directory '/tank/fs/library/Code/kig/cmake_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_a8d16/fast] Error 2 Source file was: #include const char* greet() { return "Hello world!"; } BOOST_PYTHON_MODULE(hello) { boost::python::def("greet", greet); } int main() { return 0; }