The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=14998 ====================================================================== Reported By: Lachlan Hetherton (CSIRO) Assigned To: ====================================================================== Project: CMake Issue ID: 14998 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2014-06-29 21:22 EDT Last Modified: 2014-06-29 21:22 EDT ====================================================================== Summary: Error performing "make install" step for CMake 3.0 on OSX 10.9.3, building against Qt5 (fixup_bundle failure) Description: 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) Steps to Reproduce: 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 Additional Information: 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. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-06-29 21:22 Lachlan Hetherton (CSIRO)New Issue 2014-06-29 21:22 Lachlan Hetherton (CSIRO)File Added: cmake-3.0.0.patch ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers