[CMake] Error running link command: Bus error

Eric Noulard eric.noulard at gmail.com
Mon Aug 22 05:04:52 EDT 2011


2011/8/22 Patrick Gampp <hr824 at 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


More information about the CMake mailing list