> Looks like a linker error not a cmake one. > You could run > > make VERBOSE=1 > > in order to see the command which is failing. >
The terminal output of Tutorial/Step2 is: --- mac151:mac32 gmp$ make VERBOSE=1 "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -H/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2 -B/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32 --check-build-system CMakeFiles/Makefile.cmake 0 "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_progress_start /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/CMakeFiles /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make -f MathFunctions/CMakeFiles/MathFunctions.dir/build.make MathFunctions/CMakeFiles/MathFunctions.dir/depend cd /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32 && "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2 /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/MathFunctions /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32 /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions/CMakeFiles/MathFunctions.dir/DependInfo.cmake --color= Dependee "/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions/CMakeFiles/MathFunctions.dir/DependInfo.cmake" is newer than depender "/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions/CMakeFiles/MathFunctions.dir/depend.internal". Dependee "/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions/CMakeFiles/MathFunctions.dir/depend.internal". Scanning dependencies of target MathFunctions make -f MathFunctions/CMakeFiles/MathFunctions.dir/build.make MathFunctions/CMakeFiles/MathFunctions.dir/build "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_progress_report /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/CMakeFiles 1 [ 50%] Building CXX object MathFunctions/CMakeFiles/MathFunctions.dir/mysqrt.cxx.o cd /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions && /usr/bin/c++ -I/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32 -I/Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/MathFunctions -o CMakeFiles/MathFunctions.dir/mysqrt.cxx.o -c /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/MathFunctions/mysqrt.cxx Linking CXX static library libMathFunctions.a cd /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions && "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -P CMakeFiles/MathFunctions.dir/cmake_clean_target.cmake cd /Volumes/amm-er/gmp/Projects/_shared/cmake_unixMakefile_testProject/Tutorial/Step2/mac32/MathFunctions && "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/MathFunctions.dir/link.txt --verbose=1 /usr/bin/ar cr libMathFunctions.a CMakeFiles/MathFunctions.dir/mysqrt.cxx.o /usr/bin/ranlib libMathFunctions.a Error running link command: Bus error make[2]: *** [MathFunctions/libMathFunctions.a] Error 1 make[1]: *** [MathFunctions/CMakeFiles/MathFunctions.dir/all] Error 2 make: *** [all] Error 2 --- When I do that with the project I originally want to build, the output is: --- [ ... compilation output of some files ... ] Linking C static library libutillib.a "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -P CMakeFiles/utillib.dir/cmake_clean_target.cmake "/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/utillib.dir/link.txt --verbose=1 /usr/bin/ar cr libutillib.a CMakeFiles/utillib.dir/src/deb_dum.c.o CMakeFiles/utillib.dir/src/deb_out.c.o CMakeFiles/utillib.dir/src/errorhnd.c.o CMakeFiles/utillib.dir/src/matrixCalloc.c.o CMakeFiles/utillib.dir/src/mlfile.c.o CMakeFiles/utillib.dir/src/ngsalloc.c.o CMakeFiles/utillib.dir/src/uci.c.o CMakeFiles/utillib.dir/src/util_inf.c.o /usr/bin/ranlib libutillib.a Error running link command: Bus error make[2]: *** [libutillib.a] Error 1 make[1]: *** [CMakeFiles/utillib.dir/all] Error 2 make: *** [all] Error 2 --- > Does the same project work on a another platform like some linux box? > (using the makefile generator). > When I use my linux machine with the Unix Makefiles generator, the tutorial program works and my static library has symbols. This works! _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake