[CMake] cpack bus error on mac os x

Claudio Bantaloukas rockdreamer at gmail.com
Mon Dec 8 12:24:25 EST 2008


I'm trying to build a package using the Bundle generator in os x, but
I get a bus error.
I got the 2.6.3-RC5 tarball and built it so as to get an executable
with useful backtraces

My error is that i set CPACK_CMAKE_GENERATOR instead of
CPACK_GENERATOR to Bundle in the CMakeLists file

CPack, instead of complaining gets a bus error

Other than the following backtrace, is there additional info that
might be of assistance?

Otello:mixxx-build enneatre$ gdb cpack
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for
shared libraries ....... done

(gdb) set args -G Bundle -C Debug --verbose
(gdb) r
Starting program: /usr/local/bin/cpack -G Bundle -C Debug --verbose
Reading symbols for shared libraries ++++++.... done
CPack: Enable Verbse
CPack Verbose: Read CPack config file:
CPack Verbose: Read CPack configuration file:
/Users/enneatre/cla/mixxx-build/CPackConfig.cmake
CPack Verbose: Specified generator: Bundle
CPack Verbose: Use generator: cmCPackBundleGenerator
CPack Verbose: For project: Mixxx
CPack: Create package using Bundle
CPack Verbose: Read description file: /Users/enneatre/cla/mixxx/README
CPack: Install projects

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000a
0x001efdaf in cmGlobalGenerator::GetForceUnixPaths (this=0x0) at
cmGlobalGenerator.h:163
163	  bool GetForceUnixPaths() {return this->ForceUnixPaths;}
(gdb) bt
#0  0x001efdaf in cmGlobalGenerator::GetForceUnixPaths (this=0x0) at
cmGlobalGenerator.h:163
#1  0x00010922 in
cmCPackGenerator::InstallProjectViaInstallCMakeProjects
(this=0x8258b0, setDestDir=false, baseTempInstallDirectory=0x825f8c
"/Users/enneatre/cla/mixxx-build/_CPack_Packages/Darwin/Bundle/Mixxx-1.6.5-2418")
at /Users/enneatre/cla/files/cmake-2.6.3-RC-5/Source/CPack/cmCPackGenerator.cxx:557
#2  0x0000c433 in cmCPackGenerator::InstallProject (this=0x8258b0) at
/Users/enneatre/cla/files/cmake-2.6.3-RC-5/Source/CPack/cmCPackGenerator.cxx:230
#3  0x0001404a in cmCPackGenerator::DoPackage (this=0x8258b0) at
/Users/enneatre/cla/files/cmake-2.6.3-RC-5/Source/CPack/cmCPackGenerator.cxx:810
#4  0x0000588b in main (argc=6, argv=0xbffff9fc) at
/Users/enneatre/cla/files/cmake-2.6.3-RC-5/Source/CPack/cpack.cxx:434
(gdb)


-- 
Claudio Bantaloukas http://www.rdfm.org/ammuzzu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CPackConfig.cmake
Type: application/octet-stream
Size: 4235 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081208/1ec21521/attachment.obj>


More information about the CMake mailing list