Opened 5 weeks ago

Last modified 5 weeks 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)

main.log (388.9 KB) - added by barracuda156 5 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 5 weeks ago by barracuda156

Attachment: main.log added

comment:1 Changed 5 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: herbygillot removed
Owner: set to herbygillot
Status: newassigned
Summary: xmake is broken on powerpcxmake @2.9.4: broken on powerpc

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.

comment:2 in reply to:  1 Changed 5 weeks 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 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

They've fixed this bug.

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.

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

Version 0, edited 5 weeks ago by ryandesign (Ryan Carsten Schmidt) (next)

comment:3 Changed 5 weeks ago by barracuda156

Thank you very much, Ryan!

Note: See TracTickets for help on using tickets.