Opened 3 months ago
Last modified 3 months ago
#70544 assigned defect
xmake @2.9.4: broken on powerpc
Reported by: | barracuda156 | Owned by: | herbygillot (Herby Gillot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.0 |
Keywords: | tiger, leopard, snowleopard, powerpc | Cc: | |
Port: | xmake |
Description
make: Circular build/macosx/power <- build/macosx/power dependency dropped. make: Circular macintosh/release/liblua_cjson.a <- build/macosx/power dependency dropped. compiling.release core/src/lua/lua/lauxlib.c compiling.release core/src/lua/lua/lzio.c compiling.release core/src/lua/lua/lapi.c compiling.release core/src/lua/lua/lcode.c compiling.release core/src/lua/lua/lcorolib.c compiling.release core/src/lua/lua/lbaselib.c powerpc-apple-darwin10-gcc-4.2.1: macintosh/release/core/src/lua/lua/lcode.c.o: No such file or directory cc1: error: -Werror=nullability-completeness: No option -Wnullability-completeness cc1: error: -Werror=parentheses-equality: No option -Wparentheses-equality {standard input}:unknown:FATAL:can't create output file: build/.objs/lua/macosx/power make: *** [macintosh/release/core/src/lua/lua/lcode.c.o] Error 1 make: *** Waiting for unfinished jobs.... powerpc-apple-darwin10-gcc-4.2.1: macintosh/release/core/src/lua/lua/lzio.c.o: No such file or directory cc1: error: -Werror=nullability-completeness: No option -Wnullability-completeness cc1: error: -Werror=parentheses-equality: No option -Wparentheses-equality {standard input}:unknown:FATAL:can't create output file: build/.objs/lua/macosx/power powerpc-apple-darwin10-gcc-4.2.1: macintosh/release/core/src/lua/lua/lapi.c.o: No such file or directory powerpc-apple-darwin10-gcc-4.2.1: macintosh/release/core/src/lua/lua/lbaselib.c.o: No such file or directory make: *** [build/.objs/lua/macosx/power] Error 1 cc1: error: -Werror=nullability-completeness: No option -Wnullability-completeness cc1: error: -Werror=parentheses-equality: No option -Wparentheses-equality {standard input}:unknown:FATAL:can't create output file: build/.objs/lua/macosx/power cc1: error: -Werror=nullability-completeness: No option -Wnullability-completeness cc1: error: -Werror=parentheses-equality: No option -Wparentheses-equality {standard input}:unknown:FATAL:can't create output file: build/.objs/lua/macosx/power make: *** [macintosh/release/core/src/lua/lua/lbaselib.c.o] Error 1 make: *** [macintosh/release/core/src/lua/lua/lapi.c.o] Error 1 powerpc-apple-darwin10-gcc-4.2.1: macintosh/release/core/src/lua/lua/lcorolib.c.o: No such file or directory cc1: error: -Werror=nullability-completeness: No option -Wnullability-completeness cc1: error: -Werror=parentheses-equality: No option -Wparentheses-equality {standard input}:unknown:FATAL:can't create output file: build/.objs/lua/macosx/power make: *** [macintosh/release/core/src/lua/lua/lcorolib.c.o] Error 1 powerpc-apple-darwin10-gcc-4.2.1: macintosh/release/core/src/lua/lua/lauxlib.c.o: No such file or directory cc1: error: -Werror=nullability-completeness: No option -Wnullability-completeness cc1: error: -Werror=parentheses-equality: No option -Wparentheses-equality {standard input}:unknown:FATAL:can't create output file: build/.objs/lua/macosx/power make: *** [macintosh/release/core/src/lua/lua/lauxlib.c.o] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_xmake/xmake/work/xmake-2.9.4' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_xmake/xmake/work/xmake-2.9.4" && /usr/bin/make -j6 -w all Exit code: 2 Error: Failed to build xmake: command execution failed
Attachments (1)
Change History (4)
Changed 3 months ago by barracuda156
comment:1 follow-up: 2 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | herbygillot removed |
---|---|
Owner: | set to herbygillot |
Status: | new → assigned |
Summary: | xmake is broken on powerpc → xmake @2.9.4: broken on powerpc |
comment:2 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign:
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 prefixI'm not sure if the failure to create the temporary directories might lead to the errors you saw later. I filed a bug report:
They've fixed this bug:
https://github.com/xmake-io/xmake/commit/07b0d45634a870ee905776557d0a27436001276c
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 directoryFigure 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.
Note: See
TracTickets for help on using
tickets.
The first problem I see in the log is several occurrences of:
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:
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: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:
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.