Re: [CMake] Error running link command: Bus error
On Fri, Aug 26, 2011 at 3:51 AM, Patrick Gampp hr...@gmx.de wrote: Hi David, From your VERBOSE output, it looks like you're building on /Volumes/amm-er -- what happens if you move the source and build trees onto your Mac hard drive and then try? Hopefully that will eliminate the linker crash. I moved the code to a local directory and it worked. Thanks! This is a problem with Apple's linker, not a problem with CMake. (As far as I can tell from the information in this thread...) I don't know. When I build the same project on the network drive /Volumes/amm-er/ using Xcode 4, there are no problems. I have no other compilers installed and as far as I know, Xcode and the Unix Makefile use the same compiler/linker. Therefore, couldn't that also be a cmake-problem? I suppose it could be caused by something that CMake generates into the makefile, but the fact remains: Apple's linker is the thing that is crashing. If you have steps to reproduce this, and it happens on other people's Macs too, and there's something in the Makefile that causes it, and it can be changed such that the crash doesn't happen .. then we could potentially change the makefile generation accordingly. File a bug report if you have a reliable way to reproduce it even on another machine. http://public.kitware.com/Bug Thanks, David ___ 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
Re: [CMake] Error running link command: Bus error
On Tue, Aug 23, 2011 at 5:48 AM, Patrick Gampp hr...@gmx.de wrote: 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... Mac Hardware: Model Name: Mac mini Model Identifier: Macmini4,1 Processor Name: Intel Core 2 Duo Processor Speed: 2,66 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 3 MB Memory: 8 GB Bus Speed: 1,07 GHz Boot ROM Version: MM41.0042.B00 Mac Software: System Version: Mac OS X 10.6.8 (10K549) Kernel Version: Darwin 10.8.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: mac151 Secure Virtual Memory: Not Enabled 64-bit Kernel and Extensions: No CMake Version 2.8.5 Do you have CC and/or CXX set to something? I used the Tutorial/Step2/CMakeLists.txt without modifying it. For my own project, I didn't set CC or CXX in my CMakeLists.txt file. Do you have a non-traditional or self-built compiler installed in your environment? No. MacPorts / Fink / some other non-Apple compiler? [...] I use Fink, and downloaded some libraries, but I didn't download/install a compiler intentionally via Fink. (And what version of Xcode and Mac OS X?) I use Xcode 4. Developer Information: Version: 4.0 (4A2002a) Location: /Developer Applications: Xcode: 4.0.2 (99) Instruments: 4.0 (3538) Dashcode: 3.0.2 (333) SDKs: Mac OS X: 10.6: (4A2002a) iPhone OS: 4.3: (8H7) iPhone Simulator: 3.2: (7W367a) 4.0: (8A400) 4.1: (8B117) 4.2: (8C134) 4.3: (8H7) ___ 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 This is the linker that's crashing. There must be something about your environment that causes it, but only when you run it against the Tutorial code... From your VERBOSE output, it looks like you're building on /Volumes/amm-er -- what happens if you move the source and build trees onto your Mac hard drive and then try? Hopefully that will eliminate the linker crash. Maybe there's a linker error that only shows up when the build tree is a network mount, or whatever amm-er is... This is a problem with Apple's linker, not a problem with CMake. (As far as I can tell from the information in this thread...) HTH, David ___ 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
Re: [CMake] 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. 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
Re: [CMake] Error running link command: Bus error
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... Mac Hardware: Model Name: Mac mini Model Identifier: Macmini4,1 Processor Name: Intel Core 2 Duo Processor Speed: 2,66 GHz Number Of Processors: 1 Total Number Of Cores:2 L2 Cache: 3 MB Memory: 8 GB Bus Speed:1,07 GHz Boot ROM Version: MM41.0042.B00 Mac Software: System Version: Mac OS X 10.6.8 (10K549) Kernel Version: Darwin 10.8.0 Boot Volume: Macintosh HD Boot Mode:Normal Computer Name:mac151 Secure Virtual Memory:Not Enabled 64-bit Kernel and Extensions: No CMake Version 2.8.5 Do you have CC and/or CXX set to something? I used the Tutorial/Step2/CMakeLists.txt without modifying it. For my own project, I didn't set CC or CXX in my CMakeLists.txt file. Do you have a non-traditional or self-built compiler installed in your environment? No. MacPorts / Fink / some other non-Apple compiler? [...] I use Fink, and downloaded some libraries, but I didn't download/install a compiler intentionally via Fink. (And what version of Xcode and Mac OS X?) I use Xcode 4. Developer Information: Version: 4.0 (4A2002a) Location: /Developer Applications: Xcode:4.0.2 (99) Instruments: 4.0 (3538) Dashcode: 3.0.2 (333) SDKs: Mac OS X: 10.6: (4A2002a) iPhone OS: 4.3: (8H7) iPhone Simulator: 3.2: (7W367a) 4.0: (8A400) 4.1: (8B117) 4.2: (8C134) 4.3: (8H7) ___ 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
[CMake] Error running link command: Bus error
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 make[2]: *** [MathFunctions/libMathFunctions.a] Error 1 make[1]: *** [MathFunctions/CMakeFiles/MathFunctions.dir/all] Error 2 make: *** [all] Error 2 --- Can anyone give my a hint for the reason of this error? Thanks, Patrick ___ 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
Re: [CMake] Error running link command: Bus error
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
Re: [CMake] Error running link command: Bus error
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