Opened 4 weeks ago

Last modified 3 weeks ago

#66092 assigned defect

nethack: build failure on macOS 13

Reported by: ShadSterling (Shad Sterling) Owned by: jflude
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc: Nax (Maxime Bacoux)
Port: nethack

Description

Build failed while reinstalling all ports after upgrading to Ventura

The problem seems to be a conflict with a macro defined in the SDK

:info:build /usr/bin/clang -Wall -Wextra -Wno-missing-field-initializers -Wimplicit -Wreturn-type -Wunused -Wformat -Wswitch -Wshadow -Wwrite-strings -DGCC_WARN -ansi -pedantic -Wno-long-long -O2 -I../include -DNOMAIL -DNOTPARMDECL -DHACKDIR=\"/opt/local/var/games/nethack\" -DDEFAULT_WINDOW_SYS=\"tty\" -DDLB -DGREPPATH=\"/usr/bin/grep\" -DSYSCF -DSYSCF_FILE=\"/opt/local/var/games/nethack/sysconf\" -DSECURE -c monst.c
:info:build In file included from monst.c:6:
:info:build In file included from ../include/config.h:581:
:info:build In file included from ../include/global.h:9:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/stdio.h:64:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/_stdio.h:68:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sys/cdefs.h:309:39: error: too few arguments provided to function-like macro invocation
:info:build #if __has_attribute(warn_unused_result)
:info:build                                       ^

Attachments (1)

main.log (40.7 KB) - added by ShadSterling (Shad Sterling) 4 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 4 weeks ago by ShadSterling (Shad Sterling)

Attachment: main.log added

comment:1 Changed 4 weeks ago by jmroot (Joshua Root)

Cc: Nax added; jflude removed
Owner: set to jflude
Status: newassigned

comment:2 Changed 4 weeks ago by jflude

Unfortunately I don't (yet) have a Ventura machine but I will be getting one in a few weeks. So I am unable to reproduce right now. However I would think this just needs a very straight forward patch...

Last edited 4 weeks ago by jflude (previous) (diff)

comment:3 in reply to:  2 Changed 3 weeks ago by ryandesign (Ryan Schmidt)

Replying to jflude:

However I would think this just needs a very straight forward patch...

What might that patch do?

Note: See TracTickets for help on using tickets.