Opened 2 years ago

Closed 23 months ago

#66092 closed defect (fixed)

nethack: error: too few arguments provided to function-like macro invocation

Reported by: ShadSterling (Shad Sterling) Owned by: jflude
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc: Nax (Maxime Bacoux), asgalon
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) 2 years ago.

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by ShadSterling (Shad Sterling)

Attachment: main.log added

comment:1 Changed 2 years ago by jmroot (Joshua Root)

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

comment:2 Changed 2 years 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 2 years ago by jflude (previous) (diff)

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

Replying to jflude:

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

What might that patch do?

comment:4 Changed 23 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: asgalon added
Summary: nethack: build failure on macOS 13nethack: error: too few arguments provided to function-like macro invocation

Has duplicate #66553. jflude, it sounded like you had an idea of how this might be fixed; if so, please share it.

comment:5 Changed 23 months ago by kencu (Ken)

https://github.com/macports/macports-ports/pull/17085

 % port -v installed nethack
The following ports are currently installed:
  nethack @3.6.6_0 (active) requested_variants='' platform='darwin 22' archs='arm64' date='2022-12-27T17:58:45-0800'
Last edited 23 months ago by kencu (Ken) (previous) (diff)

comment:6 Changed 23 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 2fcec9af954931269141830fead4bed78dcf66c1/macports-ports (master):

nethack: fix build on Ventura

closes: #66092

Note: See TracTickets for help on using tickets.