[MacPorts] #46108: CMake and Yosemite Issue
#46108: CMake and Yosemite Issue ----------------------------+-------------------------------- Reporter: jonlederman@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.3 Keywords: CMake Yosemite | Port: CMake ----------------------------+-------------------------------- Hi, Thanks for all your fine work on MacPorts. I have an issue with CMake after upgrading to Yosemite and then reinstalling MacPorts. I get the following error when invoking CMake Any help would be greatly appreciated. Thanks so much in advance. -Jon -sc/submodules/build-i386-apple-darwin/externals/zrtpcpp --check-build- system CMakeFiles/Makefile.cmake 0 Re-run cmake: build system dependency is missing -- The C compiler identification is AppleClang 6.0.0.6000054 -- The CXX compiler identification is AppleClang 6.0.0.6000054 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- broken CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp Run Build Command:"/opt/local/bin/gmake" "cmTryCompileExec2814572797/fast" gmake[3]: Entering directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' /opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec2814572797.dir/build.make CMakeFiles/cmTryCompileExec2814572797.dir/build gmake[4]: Entering directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' /opt/local/bin/cmake -E cmake_progress_report /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions -o CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj -c /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTryCompileExec2814572797 /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2814572797.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj -o cmTryCompileExec2814572797 Undefined symbols for architecture i386: "start", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) CMakeFiles/cmTryCompileExec2814572797.dir/build.make:88: recipe for target 'cmTryCompileExec2814572797' failed gmake[4]: *** [cmTryCompileExec2814572797] Error 1 gmake[4]: Leaving directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' Makefile:118: recipe for target 'cmTryCompileExec2814572797/fast' failed gmake[3]: *** [cmTryCompileExec2814572797/fast] Error 2 gmake[3]: Leaving directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:13 (PROJECT) -- Configuring incomplete, errors occurred! See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeOutput.log". See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeError.log". make[2]: *** [cmake_check_build_system] Error 1 make[1]: *** [build-zrtpcpp] Error 2 make: *** [build] Error 2 Jons-MacBook-Pro-3:build Jon$ -- Ticket URL: <https://trac.macports.org/ticket/46108> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+-------------------------------- Reporter: jonlederman@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: CMake Yosemite Port: CMake | ----------------------------+-------------------------------- Changes (by mf2k@…): * priority: High => Normal Comment: The Priority field is for use by Macports team members only. -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+------------------- Reporter: jonlederman@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | ----------------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => css@… * keywords: CMake Yosemite => * port: CMake => cmake Old description:
Hi,
Thanks for all your fine work on MacPorts. I have an issue with CMake after upgrading to Yosemite and then reinstalling MacPorts. I get the following error when invoking CMake Any help would be greatly appreciated.
Thanks so much in advance.
-Jon
-sc/submodules/build-i386-apple-darwin/externals/zrtpcpp --check-build- system CMakeFiles/Makefile.cmake 0 Re-run cmake: build system dependency is missing -- The C compiler identification is AppleClang 6.0.0.6000054 -- The CXX compiler identification is AppleClang 6.0.0.6000054 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- broken CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp
Run Build Command:"/opt/local/bin/gmake" "cmTryCompileExec2814572797/fast"
gmake[3]: Entering directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp'
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec2814572797.dir/build.make CMakeFiles/cmTryCompileExec2814572797.dir/build
gmake[4]: Entering directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions -o CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj -c /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec2814572797
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2814572797.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj -o cmTryCompileExec2814572797
Undefined symbols for architecture i386:
"start", referenced from: implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CMakeFiles/cmTryCompileExec2814572797.dir/build.make:88: recipe for target 'cmTryCompileExec2814572797' failed
gmake[4]: *** [cmTryCompileExec2814572797] Error 1
gmake[4]: Leaving directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp'
Makefile:118: recipe for target 'cmTryCompileExec2814572797/fast' failed
gmake[3]: *** [cmTryCompileExec2814572797/fast] Error 2
gmake[3]: Leaving directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp'
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:13 (PROJECT)
-- Configuring incomplete, errors occurred! See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeOutput.log". See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeError.log". make[2]: *** [cmake_check_build_system] Error 1 make[1]: *** [build-zrtpcpp] Error 2 make: *** [build] Error 2 Jons-MacBook-Pro-3:build Jon$
New description: Hi, Thanks for all your fine work on MacPorts. I have an issue with CMake after upgrading to Yosemite and then reinstalling MacPorts. I get the following error when invoking CMake Any help would be greatly appreciated. Thanks so much in advance. -Jon {{{ -sc/submodules/build-i386-apple-darwin/externals/zrtpcpp --check-build- system CMakeFiles/Makefile.cmake 0 Re-run cmake: build system dependency is missing -- The C compiler identification is AppleClang 6.0.0.6000054 -- The CXX compiler identification is AppleClang 6.0.0.6000054 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- broken CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp Run Build Command:"/opt/local/bin/gmake" "cmTryCompileExec2814572797/fast" gmake[3]: Entering directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' /opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec2814572797.dir/build.make CMakeFiles/cmTryCompileExec2814572797.dir/build gmake[4]: Entering directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' /opt/local/bin/cmake -E cmake_progress_report /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions -o CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj -c /Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTryCompileExec2814572797 /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2814572797.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions CMakeFiles/cmTryCompileExec2814572797.dir/testCCompiler.c.obj -o cmTryCompileExec2814572797 Undefined symbols for architecture i386: "start", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) CMakeFiles/cmTryCompileExec2814572797.dir/build.make:88: recipe for target 'cmTryCompileExec2814572797' failed gmake[4]: *** [cmTryCompileExec2814572797] Error 1 gmake[4]: Leaving directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' Makefile:118: recipe for target 'cmTryCompileExec2814572797/fast' failed gmake[3]: *** [cmTryCompileExec2814572797/fast] Error 2 gmake[3]: Leaving directory '/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeTmp' CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:13 (PROJECT) -- Configuring incomplete, errors occurred! See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeOutput.log". See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeError.log". make[2]: *** [cmake_check_build_system] Error 1 make[1]: *** [build-zrtpcpp] Error 2 make: *** [build] Error 2 Jons-MacBook-Pro-3:build Jon$ }}} -- Comment: Remember to use WikiFormatting too. -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+------------------- Reporter: jonlederman@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | ----------------------------+------------------- Comment (by ryandesign@…): It sounds like you were able to install the cmake port using MacPorts, and that you are now having trouble using cmake outside of MacPorts. As such, this is probably not a MacPorts problem, and you should probably contact the developers of cmake. Replying to [ticket:46108 jonlederman@…]:
{{{ The C compiler
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
is not able to compile a simple test program. }}}
You may want to verify that you have installed the Xcode command line tools.
{{{ See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeOutput.log". See also "/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build-i386-apple- darwin/externals/zrtpcpp/CMakeFiles/CMakeError.log". }}}
It may also help to see these files. I noticed you are using `-miphoneos-version-min=4.0`. I Googled the error message and got to [https://github.com/x2on/OpenSSL-for-iPhone/issues/35 this page] where someone mentioned experiencing the same error when using `-miphoneos-version-min=5.1` and that using `-miphoneos-version-min=6.0` instead worked, but that really `-mios-simulator-version-min=` should have been used. This is beyond my area of expertise and outside the scope of MacPorts support. -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+------------------- Reporter: jonlederman@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | ----------------------------+------------------- Comment (by jonlederman@…): Thanks. I tried to do a make clean and I get: Ks/iPhoneSimulator8.1.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions checking whether the C compiler works... no configure: error: in `/Users/Jon/Documents/Developer/SonicCloud/linphone- iphone-sc/submodules/build-i386-apple-darwin/externals/antlr3/runtime/C': configure: error: C compiler cannot create executables See `config.log' for more details make[1]: *** [/Users/Jon/Documents/Developer/SonicCloud/linphone-iphone- sc/submodules/build/../build-i386-apple- darwin/externals/antlr3/runtime/C/Makefile] Error 77 make: *** [build] Error 2 I am writing on this forum b/c I am concerned that the upgrade process for macports and Yosemite did not go smoothly. I have installed the command line tools and when I type: code-select --install, I get: xcode-select: error: command line tools are already installed, use "Software Update" to install updates Is it possible that macports is not properly installed? How do I reinstall the command line tools? The only way I could find was going to the Apple Developer website and using the DMG. Any help here would be greatly appreciated. Thank you. -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+------------------------- Reporter: jonlederman@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | ----------------------------+------------------------- Changes (by michaelld@…): * owner: css@… => michaelld@… -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+------------------------- Reporter: jonlederman@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | ----------------------------+------------------------- Changes (by michaelld@…): * cc: css@… (added) -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+------------------------- Reporter: jonlederman@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | ----------------------------+------------------------- Comment (by michaelld@…): There's a new version of cmake that I just pushed into MacPorts today. Please do: {{{ sudo port selfupdate sudo port upgrade cmake }}} and, if this issue continues then post some example code that others can try (in a tarball, not directly to a comment). Make sure to include exact instructions on commands to use that show your issue. -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#46108: CMake and Yosemite Issue ----------------------------+------------------------- Reporter: jonlederman@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: cmake | ----------------------------+------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => invalid Comment: Closing this ticket as "invalid" since I think it is not a MacPorts issue; also, reporter timeout. If anyone disagrees, then reopen the ticket and post relevant info. -- Ticket URL: <https://trac.macports.org/ticket/46108#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts