k21971 / EvilHack

A variant of NetHack that is designed to be a much more challenging experience than the original, drawing inspiration and content from various existing variants along with adding unique and never-before-seen custom content.
Other
53 stars 22 forks source link

Problems building on MacOS 14.1 sonoma #161

Closed danpritts closed 11 months ago

danpritts commented 11 months ago

Hi,

macOS 14.1 Xcode Version 15.0.1 (15A507), which I believe to be current.

building from gitlab head, commit

commit 2f7a48a86f094c560f15ad701b8ac22580652a25 (HEAD, origin/master, origin/HEAD)
Merge: e43778f1b 10b976c80
Author: Keith Simpson <keith.simpson1971@gmail.com>
Date:   Wed Nov 8 13:25:07 2023 -0500

    Merge pull request #160 from saltwaterterrapin/master

When linking, I get the error

ld: Undefined symbols:
  _restore_savefile, referenced from:
      _getlock in unixunix.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I followed the instructions in sys/unix/README.xcode and I'm pretty sure I got the local Xcode Local Config with the team correct, although I've never set that up before. Regardless, I'd be surprised if getting that bit wrong caused a linker error.

danpritts commented 11 months ago

linker command was:

Ld /Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Products/Debug/NetHack normal (in target 'NetHack' from project 'NetHack')
    cd /Users/danno/src/EvilHack/sys/unix
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target x86_64-apple-macos10.14 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -O0 -L/Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Intermediates.noindex/EagerLinkingTBDs/Debug -L/Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Products/Debug -F/Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Intermediates.noindex/EagerLinkingTBDs/Debug -F/Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Products/Debug -filelist /Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Intermediates.noindex/NetHack.build/Debug/NetHack.build/Objects-normal/x86_64/NetHack.LinkFileList -Xlinker -object_path_lto -Xlinker /Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Intermediates.noindex/NetHack.build/Debug/NetHack.build/Objects-normal/x86_64/NetHack_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -lncurses -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Intermediates.noindex/NetHack.build/Debug/NetHack.build/Objects-normal/x86_64/NetHack_dependency_info.dat -o /Users/danno/Library/Developer/Xcode/DerivedData/NetHack-gyohtejubylegmbokkwcaulouyah/Build/Products/Debug/NetHack
danpritts commented 11 months ago

The error occurs when building in the Xcode GUI.

I was able to get it to build from the command line via setup.sh/hints/macosx