[CMake] CPack: seg fault / cygwin / make package_source

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Mar 12 15:37:46 EDT 2008


On Wed, Mar 12, 2008 at 8:32 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
>
> On Wed, Mar 12, 2008 at 8:14 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>  >
>  > Mathieu Malaterre wrote:
>  >  > Hi,
>  >  >
>  >  >   I am getting a seg fault with both cmake 2.4.7 /  CMake CVS when
>  >  > making a cygwin package source.
>  >  >
>  >  >   To reproduce:
>  >  >
>  >  > svn co https://gdcm.svn.sourceforge.net/svnroot/gdcm/trunk
>  >  > mkdir bin
>  >  > cd bin
>  >  > cmake ../trunk
>  >  > make && make package_source
>  >  >
>  >  > Backtrace is;
>  >  >
>  >  > $ gdb /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe
>  >  > GNU gdb 6.5.50.20060706-cvs (cygwin-special)
>  >  > Copyright (C) 2006 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 "i686-pc-cygwin"...
>  >  > (gdb) r --config /home/mmalaterre/Projects/gdcm/branches/release-cygwin/CPackS
>  >  > ourceConfig.cmake
>  >  > Starting program: /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe --config /ho
>  >  > me/mmalaterre/Projects/gdcm/branches/release-cygwin/CPackSourceConfig.cmake
>  >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
>  >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
>  >  > Loaded symbols for /usr/bin/cygwin1.dll
>  >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
>  >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
>  >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/secur32.dll
>  >  > CPack: Create package using CygwinSource
>  >  > CPack: Install projects
>  >  > CPack: - Install directory: /home/mmalaterre/Projects/gdcm/branches/gdcm-2-0
>  >  > CPack: Compress package
>  >  >       8 [sig] cpack 304 open_stackdumpfile: Dumping stack trace to cpack.exe.sta
>  >  > ckdump
>  >  >
>  >  > Program exited with code 0103000.
>  >  > (gdb) bt
>  >  > No stack.
>  >  > (gdb)
>  >  >
>  >  > Thanks,
>  >  Must be another missing variable....
>  >
>  >
>  >  Here are the ones that I am setting for CMake:
>  >
>  >      # setup the cygwin package name
>  >      SET(CPACK_PACKAGE_NAME cmake)
>  >      # setup the name of the package for cygwin cmake-2.4.3
>  >      SET(CPACK_PACKAGE_FILE_NAME
>  >
>  >  "${CPACK_PACKAGE_NAME}-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
>  >      # the source has the same name as the binary
>  >      SET(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME})
>  >      # Create a cygwin version number in case there are changes for cygwin
>  >      # that are not reflected upstream in CMake
>  >      SET(CPACK_CYGWIN_PATCH_NUMBER 1)
>  >      # These files are required by the cmCPackCygwinSourceGenerator and
>  >  the files
>  >      # put into the release tar files.
>  >      SET(CPACK_CYGWIN_BUILD_SCRIPT
>  >
>  >  "${CMake_BINARY_DIR}/@CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at .sh")
>  >      SET(CPACK_CYGWIN_PATCH_FILE
>  >
>  >  "${CMake_BINARY_DIR}/@CPACK_PACKAGE_FILE_NAME at -@CPACK_CYGWIN_PATCH_NUMBER at .patch")
>  >
>  >
>  >  Are you setting all of these?  If you find the missing one, and it fixes
>  >  the problem, of course let me know, and I will fix the crash.
>
>  Thanks Bill, but it still crashes. I am seeing another directory just
>  for cygwin in CMake (in utilities/release). I'll check if there are
>  any other variables not set.

Actually I can find the src tar.bz2 in:



-- 
Mathieu


More information about the CMake mailing list