[MacPorts] #68578: cmake-devel 3.28 weird errors with some ports on old systems: CMake Error: Generator: execution of make failed. Make command was: /opt/local/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_c4da1/fast

MacPorts noreply at macports.org
Sat Jan 6 13:06:09 UTC 2024


#68578: cmake-devel 3.28 weird errors with some ports on old systems: CMake Error:
Generator: execution of make failed. Make command was: /opt/local/bin/cmake
-E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_c4da1/fast
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  barracuda156
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  tiger, leopard, snowleopard,
      Port:  cmake-      |  powerpc
  devel                  |
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Replying to [comment:15 ryandesign]:
 > Replying to [comment:13 barracuda156]:
 > > Surprisingly, it is something which ICU installs into
 `/opt/local/sbin` is breaking stuff.
 >
 > What "something" is that?

 Turned out, it is PATH variable itself, not anything ICU. My initial
 conclusion was based on a fact that removing everything from
 `/opt/local/sbin` save for ICU components does not fix the problem.
 However I tried manually moving out original `sbin` and creating an empty
 folder instead, and the error persists.
 So it is nothing inside the directory, it is a sequence of variables in
 PATH.

 Adding this to cmake PG fixes everything:
 {{{
 configure.env
 PATH=/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/sbin
 }}}
 If nothing is added or if I set PATH to
 `/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin`, CMake is
 broken.

 I get identical results inside Macports and outside (running CMake
 manually in a test folder).

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


More information about the macports-tickets mailing list