ansiwave / wavecore

ANSIWAVE BBS server
The Unlicense
18 stars 1 forks source link

Build on macOS fails #1

Closed moigagoo closed 2 years ago

moigagoo commented 2 years ago

Trying to install ansiwave on macOS with nimble install ansiwave.

Installation fails when wavecore is built:

nimble install wavecore
Downloading https://github.com/ansiwave/wavecore using git
  Verifying dependencies for wavecore@0.2.2
      Info: Dependency on urlly@>= 1.0.0 already satisfied
  Verifying dependencies for urlly@1.0.0
      Info: Dependency on puppy@>= 1.4.0 already satisfied
  Verifying dependencies for puppy@1.4.0
      Info: Dependency on urlly@>= 0.2.0 already satisfied
  Verifying dependencies for urlly@1.0.0
      Info: Dependency on libcurl@>= 1.0.0 already satisfied
  Verifying dependencies for libcurl@1.0.0
      Info: Dependency on zippy@>= 0.7.3 already satisfied
  Verifying dependencies for zippy@0.7.3
      Info: Dependency on flatty@>= 0.2.3 already satisfied
  Verifying dependencies for flatty@0.2.3
      Info: Dependency on zippy@>= 0.7.3 already satisfied
  Verifying dependencies for zippy@0.7.3
      Info: Dependency on paramidi@>= 0.6.0 already satisfied
  Verifying dependencies for paramidi@0.6.0
 Installing wavecore@0.2.2
   Building wavecore/wavecore using c backend
/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src/wavecorepkg/db/db_sqlite.nim(133, 1) Warning: Circular dependency detected. `codeReordering` pragma may not be able to reorder some nodes properly [User]
/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src/wavecorepkg/db/db_sqlite.nim(194, 21) Warning: implicit conversion to 'cstring' from a non-const location: q; this will become a compile time error in the future [CStringConv]
/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src/wavecorepkg/db/db_sqlite.nim(237, 21) Warning: implicit conversion to 'cstring' from a non-const location: q; this will become a compile time error in the future [CStringConv]
/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src/wavecorepkg/db/db_sqlite.nim(600, 21) Warning: implicit conversion to 'cstring' from a non-const location: q; this will become a compile time error in the future [CStringConv]
/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src/wavecorepkg/client.nim(1, 6) Warning: imported and not used: 'strutils' [UnusedImport]
/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src/wavecorepkg/client.nim(5, 6) Warning: imported and not used: 'os' [UnusedImport]
/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src/wavecorepkg/db/vfs.nim(2, 6) Warning: imported and not used: 'os' [UnusedImport]
In file included from /Users/moigagoo/.nimble/pkgs/puppy-1.4.0/puppy/machttp.m:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
- (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
                                                         ~~~~~~~~~~~~~~                                                                       ^                  ~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
        #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
                                                      ^          ~
1 error generated.
Error: execution of an external compiler program 'clang -c  -w -ferror-limit=3 -pthread -DSQLITE_ENABLE_FTS5 -DSQLITE_MULTIPLEX_CHUNK_SIZE=262144 -O3   -I/Users/moigagoo/.choosenim/toolchains/nim-1.6.2/lib -I/private/var/folders/31/blf666xd6tj0_3hf5q259mp40000gn/T/nimble_19566/githubcom_ansiwavewavecore/src -o /Users/moigagoo/.cache/nim/wavecore_r/machttp.m.o /Users/moigagoo/.nimble/pkgs/puppy-1.4.0/puppy/machttp.m' failed with exit code: 1

    Prompt: Build failed for 'wavecore@0.2.2', would you like to try installing 'wavecore@#head' (latest unstable)? [y/N]
    Answer: ^CSIGINT: Interrupted by Ctrl-C.
SIGINT: Interrupted by Ctrl-C.

Nim 1.6.2.

oakes commented 2 years ago

Ah strange, this seems to be a common problem, for example: https://stackoverflow.com/questions/70287733/sdl2-doesnt-compile-on-macos-big-sur

It sounds like a problem with SDK version, but i don't even know how to determine which SDK i'm using :D I only installed the command line tools, not the full Xcode app. I will keep looking around.

moigagoo commented 2 years ago

No idea what exactly fixed it, but updating macOS to Monterey and reinstalling xcode (because git wouldn't work after the update 😒) stuff fixed the issue.

I think you can safely close the issue. The next person to face it will see this comment.

oakes commented 2 years ago

OK cool. My mac is at least two versions behind and i'm afraid to update it because of stuff like this.