MantisBT - CMake
View Issue Details
0014998CMakeCMakepublic2014-06-29 21:222016-06-10 14:31
Lachlan Hetherton (CSIRO) 
Kitware Robot 
normalmajoralways
closedmoved 
Apple MacOSX 10.9.3
CMake 3.0 
 
0014998: Error performing "make install" step for CMake 3.0 on OSX 10.9.3, building against Qt5 (fixup_bundle failure)
When building CMake 3.0 from source on OSX 10.9.3 against Qt5 frameworks, we are encountering errors during the fixup_bundle stage. It looks like what is happening is that the path "Tools/Build/../ThirdParty" directory of some framework dependencies is being interpreted differently from the path "Tools/ThirdParty", even though they are technically the same directory.

NOTE: The "...Tools/ThirdParty" directory is both the desired prefix for our installation and is also the prefix of our Qt5 installation.

The full contents of the "make install" step follow:

-- Installing: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/ccmake
-- Installing: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cmake
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/ctest
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cpack
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cmakexbuild
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/share/cmake-3.0/include/cmCPluginAPI.h
-- Installing: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app
-- Installing: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/Info.plist
-- Installing: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/MacOS
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/MacOS/CMake
-- Installing: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/Resources
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/Resources/CMakeSetup.icns
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/share/applications/CMake.desktop
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/share/pixmaps/CMakeSetup32.png
-- Up-to-date: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/share/mime/packages/cmakecache.xml
ln: cmake-gui: File exists
-- fixup_bundle
-- app='/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/MacOS/CMake'
-- libs=''
-- dirs='/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/lib;/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/bin'
-- fixup_bundle: preparing...
--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

warning: target '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets' does not exist...
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets (No such file or directory)
warning: target '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui' does not exist...
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui (No such file or directory)
warning: target '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore' does not exist...
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore (No such file or directory)
--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

warning: target '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets' does not exist...
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets (No such file or directory)
warning: target '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui' does not exist...
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui (No such file or directory)
warning: target '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore' does not exist...
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore (No such file or directory)
-- fixup_bundle: copying...
-- 1/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/ccmake'
-- 2/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cmake'
-- 3/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cmake-gui'
-- 4/22: copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore'
Error copying file "/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtCore.framework/Versions/5/QtCore" to "/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/CMake.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore".
-- 5/22: copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui'
Error copying file "/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtGui.framework/Versions/5/QtGui" to "/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/CMake.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui".
-- 6/22: copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets'
Error copying file "/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/InstallStage/lib/QtWidgets.framework/Versions/5/QtWidgets" to "/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/CMake.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets".
-- 7/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cmakexbuild'
-- 8/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cpack'
-- 9/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/ctest'
-- 10/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/MacOS/CMake'
-- 11/22: *NOT* copying '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/share/cmake-3.0/Modules/CPack.OSXScriptLauncher.in'
-- fixup_bundle: fixing...
-- 12/22: fixing up '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/ccmake'
-- 13/22: fixing up '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cmake'
-- 14/22: fixing up '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/Contents/bin/cmake-gui'
-- 15/22: fixing up '/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/CMake.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore'
  exe_dotapp_dir/='/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/Build/../ThirdParty/CMake.app/'
  item_substring='/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/CMake.app/Contents/'
  resolved_embedded_item='/Users/het018/Documents/Builds/Workspace/bol09b_Qt5/Tools/ThirdParty/CMake.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore'

Install or copy the item into the bundle before calling fixup_bundle.
Or maybe there's a typo or incorrect path in one of the args to fixup_bundle?

CMake Error at Modules/BundleUtilities.cmake:629 (message):
  cannot fixup an item that is not in the bundle...
Call Stack (most recent call first):
  Modules/BundleUtilities.cmake:717 (fixup_bundle_item)
  Source/QtDialog/cmake_install.cmake:63 (fixup_bundle)
  Source/cmake_install.cmake:86 (include)
  cmake_install.cmake:53 (include)
1. Get a copy of the CMake 3.0 source code on OSX 10.9.3
2. Make sure the Qt5 libraries have been compiled (as OSX frameworks), and placed in ${installDir}/lib, with the qmake executable in ${installDir}/bin.
3. Navigate into the source directory
4. Run the following commands from a Bash script:

installDir="/wherever/your/Qt5/lib/dir/is"
export PATH=${installDir}/bin:$PATH
export DYLD_FRAMEWORK_PATH=${installDir}/lib
./bootstrap --qt-gui --verbose --qt-qmake=${installDir}/bin/qmake --prefix=$installDir -- -DCMAKE_PREFIX_PATH=${installDir}/lib/cmake || exit 1
make || exit 1
make install || exit 1
We are also applying a patch to the source code so that it builds with the LSBC++ (4.1) compiler, but this patch is not relevant to this bug. In case you want to check that there are no issues with the patch, I have attached it.
No tags attached.
patch cmake-3.0.0.patch (1,062) 2014-06-29 21:22
https://public.kitware.com/Bug/file/5180/cmake-3.0.0.patch
Issue History
2014-06-29 21:22Lachlan Hetherton (CSIRO)New Issue
2014-06-29 21:22Lachlan Hetherton (CSIRO)File Added: cmake-3.0.0.patch
2016-06-10 14:29Kitware RobotNote Added: 0042574
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042574)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.