Opened 10 years ago

Closed 10 years ago

#46108 closed defect (invalid)

CMake and Yosemite Issue

Reported by: jonlederman@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: cssdev
Port: cmake

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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$

Change History (8)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Priority: HighNormal

The Priority field is for use by Macports team members only.

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: CMake Yosemite removed
Owner: changed from macports-tickets@… to css@…
Port: cmake added; CMake removed

Remember to use WikiFormatting too.

comment:3 in reply to:  description Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

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 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 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.

comment:4 Changed 10 years ago 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 -DIOS -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.

comment:5 Changed 10 years ago by michaelld (Michael Dickens)

Owner: changed from css@… to michaelld@…

comment:6 Changed 10 years ago by michaelld (Michael Dickens)

Cc: css@… added

comment:7 Changed 10 years ago by michaelld (Michael Dickens)

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.

comment:8 Changed 10 years ago by michaelld (Michael Dickens)

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.