[MacPorts] #56941: cmake @3.12.0_0 and gcc7 @7.3.0_3 don't work well together

MacPorts noreply at macports.org
Tue Aug 7 19:25:58 UTC 2018


#56941: cmake @3.12.0_0 and gcc7 @7.3.0_3 don't work well together
-------------------------+-----------------------
  Reporter:  iqgrande    |      Owner:  michaelld
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.5.3
Resolution:              |   Keywords:
      Port:  cmake, gcc  |
-------------------------+-----------------------

Comment (by iqgrande):

 Output. Bummer. Thoughts?

 {{{
 $ CC=/opt/local/bin/gcc-mp-7 CXX=/opt/local/bin/g++-mp-7 cmake ..
 -- The C compiler identification is unknown
 -- The CXX compiler identification is unknown
 -- Check for working C compiler: /opt/local/bin/gcc-mp-7
 -- Check for working C compiler: /opt/local/bin/gcc-mp-7 -- broken
 CMake Error at
 /opt/local/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
   The C compiler

     "/opt/local/bin/gcc-mp-7"

   is not able to compile a simple test program.

   It fails with the following output:

     Change Dir:
 /Users/iqgrande/Desktop/macports_build_issues/build/CMakeFiles/CMakeTmp

     Run Build Command:"/opt/local/bin/gmake" "cmTC_dddb0/fast"
     /opt/local/bin/gmake -f CMakeFiles/cmTC_dddb0.dir/build.make
 CMakeFiles/cmTC_dddb0.dir/build
     gmake[1]: Entering directory
 '/Users/iqgrande/Desktop/macports_build_issues/build/CMakeFiles/CMakeTmp'
     Building C object CMakeFiles/cmTC_dddb0.dir/testCCompiler.c.o
     /opt/local/bin/gcc-mp-7    -o
 CMakeFiles/cmTC_dddb0.dir/testCCompiler.c.o   -c
 /Users/iqgrande/Desktop/macports_build_issues/build/CMakeFiles/CMakeTmp/testCCompiler.c
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm'
 flag!
     gmake[1]: *** [CMakeFiles/cmTC_dddb0.dir/build.make:66:
 CMakeFiles/cmTC_dddb0.dir/testCCompiler.c.o] Error 1
     gmake[1]: Leaving directory
 '/Users/iqgrande/Desktop/macports_build_issues/build/CMakeFiles/CMakeTmp'
     gmake: *** [Makefile:121: cmTC_dddb0/fast] Error 2




   CMake will not be able to correctly generate this project.
 Call Stack (most recent call first):
   CMakeLists.txt:2 (project)


 -- Configuring incomplete, errors occurred!
 See also
 "/Users/iqgrande/Desktop/macports_build_issues/build/CMakeFiles/CMakeOutput.log".
 See also
 "/Users/iqgrande/Desktop/macports_build_issues/build/CMakeFiles/CMakeError.log".
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/56941#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list