[MacPorts] #70544: xmake @2.9.4: broken on powerpc (was: xmake is broken on powerpc)

MacPorts noreply at macports.org
Tue Aug 13 19:43:15 UTC 2024


#70544: xmake @2.9.4: broken on powerpc
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  herbygillot
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.10.0
Resolution:              |   Keywords:  tiger, leopard, snowleopard,
      Port:  xmake       |  powerpc
-------------------------+-------------------------------------------------
Changes (by ryandesign):

 * cc: herbygillot (removed)
 * status:  new => assigned
 * owner:  (none) => herbygillot


Comment:

 The first problem I see in the log is several occurrences of:

 {{{
 :info:configure usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
 :info:configure        mktemp [-d] [-q] [-u] -t prefix
 }}}

 I'm not sure if the failure to create the temporary directories might lead
 to the errors you saw later. I filed a bug report:

 https://github.com/xmake-io/xmake/issues/5464

 Try the fix I proposed there and see if that changes anything.

 Then I see:

 {{{
 :info:configure build/macosx/power macintosh/release/xmake.config.h is
 generated!
 }}}

 So it has created a directory containing a space (`power macintosh`) and
 probably isn't quoting all references to that variable, leading to the
 wrong path being used:

 {{{
 powerpc-apple-darwin10-gcc-4.2.1:
 macintosh/release/core/src/lua/lua/lcode.c.o: No such file or directory
 }}}

 Figure out wherever that directory is being created (probably from the
 output of `uname`) and fix it so it doesn't have a space in the name, or
 else quote all uses of the variable.

 Finally:

 {{{
 cc1: error: -Werror=nullability-completeness: No option -Wnullability-
 completeness
 cc1: error: -Werror=parentheses-equality: No option -Wparentheses-equality
 }}}

 I don't see where `-Werror=nullability-completeness` or `-Werror
 =parentheses-equality` are being added. I see where `-Wno-error
 =nullability-completeness` and `-Wno-error=parentheses-equality` are being
 added:

 https://github.com/xmake-
 io/xmake/blob/216192e56b4fcfa664a7efe59c5b873a2f78adbb/core/xmake.sh#L15-L18

 Maybe the compiler mistakenly printed `-Werror` in the error message when
 it meant `-Wno-error`. Ideally upstream should test whether the compiler
 supports a flag before adding it. If they won't do that here, this can be
 patched out of the build system for old compilers.

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


More information about the macports-tickets mailing list