u/GrogRedLub4242

Nethack 5 build fail on Mac

anyone else able to build successfully on macOS 10.15ish Intel 64bit?

docs say this permutation supported. but no binary release avail, you must build from source, and it fails

UPDATE:

I read the README and then followed the build instructions for my host & target (Mac 10.15.3 Intel 64bit) to the letter.

I do "make all".

Initially the output looks reasonable-ish, then aways in I start seeing a lot of warnings about FALLTHROUGH, culminating in an error about expected expression. Build fails with exit code 2. No exe produced.

End of build output:

cc -I../include -c -o engrave.o engrave.c engrave.c:664:9: warning: declaration does not declare anything [-Wmissing-declarations] FALLTHROUGH; ^ ../include/tradstdc.h:460:21: note: expanded from macro 'FALLTHROUGH' #define FALLTHROUGH attribute((fallthrough)) ^ engrave.c:765:9: warning: declaration does not declare anything [-Wmissing-declarations] FALLTHROUGH; ^ ../include/tradstdc.h:460:21: note: expanded from macro 'FALLTHROUGH' #define FALLTHROUGH attribute((fallthrough)) ^ 2 warnings generated. cc -I../include -c -o exper.o exper.c cc -I../include -c -o explode.o explode.c cc -I../include -c -o extralev.o extralev.c cc -I../include -c -o files.o files.c files.c:2029:9: error: expected expression FALLTHROUGH; ^ ../include/tradstdc.h:460:21: note: expanded from macro 'FALLTHROUGH' #define FALLTHROUGH attribute((fallthrough)) ^ 1 error generated. make[1]: *** [files.o] Error 1 make: *** [nethack] Error 2 ~/games/nethack/NetHack-5.0.0]

reddit.com
u/GrogRedLub4242 — 1 day ago