[MacPorts] #60453: build failure wxMaxima

MacPorts noreply at macports.org
Fri May 8 14:25:21 UTC 2020


#60453: build failure wxMaxima
-------------------------+--------------------------
  Reporter:  dyne2meter  |      Owner:  MSoegtropIMC
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:
      Port:  wxMaxima    |
-------------------------+--------------------------

Comment (by michaellass):

 The same is visible in dyne2meter's log file, so I guess we have the same
 issue here.

 I hacked the Portfile in a crude way to force use of clang:
 {{{
 --- a/math/wxMaxima/Portfile
 +++ b/math/wxMaxima/Portfile
 @@ -52,7 +52,7 @@ post-patch {

  build {
      system -W ${worksrcpath}       "mkdir ./build"
 -    system -W ${worksrcpath}/build "cmake
 -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=${wxWidgets.wxconfig}
 -DUSE_CPPCHECK=YES -DUSE_OPENMP=YES
 -DCMAKE_CXX_FLAGS=-I${prefix}/include/libomp
 -DOpenMP_CXX_FLAGS='-Xpreprocessor -fopenmp' -DOpenMP_CXX_LIB_NAMES=libomp
 -DOpenMP_libomp_LIBRARY=${prefix}/lib/libomp/libomp.dylib .."
 +    system -W ${worksrcpath}/build "CC=/usr/bin/clang
 CXX=/usr/bin/clang++ cmake
 -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=${wxWidgets.wxconfig}
 -DUSE_CPPCHECK=YES -DUSE_OPENMP=YES
 -DCMAKE_CXX_FLAGS=-I${prefix}/include/libomp
 -DOpenMP_CXX_FLAGS='-Xpreprocessor -fopenmp' -DOpenMP_CXX_LIB_NAMES=libomp
 -DOpenMP_libomp_LIBRARY=${prefix}/lib/libomp/libomp.dylib .."
      system -W ${worksrcpath}/build "cmake -LA ."
      system -W ${worksrcpath}/build "cmake --build ."
  }
 }}}

 With this, wxMaxima builds and installs fine. But there must be a better
 solution. The question is: why does cmake choose a different compiler
 here? And GCC should probably be blacklisted.

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


More information about the macports-tickets mailing list