Determining if the function swift_engine_open exists in the swift failed with th /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCom gmake[1]: Entering directory `/tmp/test/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /tmp/test/CMakeFiles/CMakeTmp/CMakeFiles Building C object CMakeFiles/cmTryCompileExec.dir/usr/share/cmake/Modules/CheckF /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=swift_engine_open -o CMakeFiles/cmTryCom Linking C executable cmTryCompileExec /usr/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=swift_engine_open -fPIC "CMakeFiles/c /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: canno collect2: ld returned 1 exit status gmake[1]: *** [cmTryCompileExec] Error 1 gmake[1]: Leaving directory `/tmp/test/CMakeFiles/CMakeTmp' gmake: *** [cmTryCompileExec/fast] Error 2