On Mon, Aug 22, 2011 at 5:04 AM, Eric Noulard <eric.noul...@gmail.com> wrote: > 2011/8/22 Patrick Gampp <hr...@gmx.de>: >> Hi all, >> I did some cmake projects on MacOSX with the Xcode-generator and everything >> works fine. >> >> But when I use the unix makefiles cmake generator, my projects cannot >> correctly be built. >> I tried to build a minimal example from the cmake Tutorial, where step1 >> works but step 2 does not. >> >> I get the following error (which is the same, when I try to build my >> projects with make) for Tutorial/step2: >> >> --- >> mac151:mac32 gmp$ make >> Scanning dependencies of target MathFunctions >> [ 50%] Building CXX object >> MathFunctions/CMakeFiles/MathFunctions.dir/mysqrt.cxx.o >> Linking CXX static library libMathFunctions.a >> Error running link command: Bus error > > Looks like a linker error not a cmake one. > You could run > > make VERBOSE=1 > > in order to see the command which is failing. > > Does the same project work on a another platform like some linux box? > (using the makefile generator). > > -- > Erk > Membre de l'April - « promouvoir et défendre le logiciel libre » - > http://www.april.org > _______________________________________________ > 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 >
What is your environment like? The Tutorial steps run on all of our CMake dashboards, and we have several "Unix Makefiles" dashboards running on various Macs. We do not see this error anywhere... Do you have CC and/or CXX set to something? Do you have a non-traditional or self-built compiler installed in your environment? MacPorts / Fink / some other non-Apple compiler? Or just Xcode tools? (And what version of Xcode and Mac OS X?) _______________________________________________ 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