Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build a release on Apple Silicon (Mac M3 Pro) #9

Closed
pietroppeter opened this issue Jul 21, 2024 · 2 comments
Closed

cannot build a release on Apple Silicon (Mac M3 Pro) #9

pietroppeter opened this issue Jul 21, 2024 · 2 comments

Comments

@pietroppeter
Copy link

I tried building (with nimble release) on a Mac M3 Pro and it errors out. Seeing the state of the original fork this is not unexpected (see e.g. dom96/choosenim#301). Adding the error I get below.

I am not sure what is the current state of this fork, would be happy to help and try test fixes if there are some ready.

I noticed also choosenim depends on a fixed nimble commit.

error message

➜  choosenim git:(v0.8.4) ✗ nimble release
  Verifying dependencies for [email protected]
     Info:  Dependency on nimble@#8f7af86 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on libcurl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on analytics@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on uuids@>= 0.1.7 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on isaac@>= 0.1.3 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on osinfo@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on puppy@>= 1.2.1 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on libcurl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on zippy@>= 0.10.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on webby@>= 0.2.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on osinfo@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on zippy@>= 0.7.2 already satisfied
  Verifying dependencies for [email protected]
  Executing task release in /Users/pietropeterlongo/recursing/choosenim/choosenim.nimble
  Verifying dependencies for [email protected]
     Info:  Dependency on nimble@#8f7af86 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on libcurl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on analytics@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on uuids@>= 0.1.7 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on isaac@>= 0.1.3 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on osinfo@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on puppy@>= 1.2.1 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on libcurl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on zippy@>= 0.10.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on webby@>= 0.2.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on osinfo@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on zippy@>= 0.7.2 already satisfied
  Verifying dependencies for [email protected]
   Building choosenim/choosenim using c backend
/Users/pietropeterlongo/.nimble/pkgs2/nimble-0.12.0-7aa4f8f5d3b79013b9aa93f3069f4eaaebd24a48/nimblepkg/options.nim(165, 14) Warning: Couldn't determine GIT hash: fatal: not a git repository (or any of the parent directories): .git [User]
/Users/pietropeterlongo/recursing/choosenim/src/choosenimpkg/download.nim(72, 26) Warning: See corresponding Defect; AssertionError is deprecated [Deprecated]
/Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected]:77:10: error: incompatible function pointer types assigning to 'tyProc__ELDcQK9cgdUyzj5KMs6i3sA' (aka 'long long (*)(long long, long long)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-pointer-types]
        msgSend = Dl_3741319184_;
                ^ ~~~~~~~~~~~~~~
/Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected]:129:10: error: incompatible function pointer types assigning to 'tyProc__GzHItWOV8mXMIORHhW0e0Q' (aka 'long long (*)(long long, long long, char *)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-pointer-types]
        msgSend = Dl_3741319184_;
                ^ ~~~~~~~~~~~~~~
/Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected]:145:10: error: incompatible function pointer types assigning to 'tyProc__RgKKSNSZBwbKmv4OT9c1inQ' (aka 'char *(*)(long long, long long)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-pointer-types]
        msgSend = Dl_3741319184_;
                ^ ~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 errors generated.
/Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected]:208:10: error: incompatible function pointer types assigning to 'tyProc__I9bK10SEvRG6xAbMkITEqZA' (aka 'long long (*)(long long, long long, long long, long long, double)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-pointer-types]
        msgSend = Dl_3741319184_;
                ^ ~~~~~~~~~~~~~~
/Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected]:219:10: error: incompatible function pointer types assigning to 'tyProc__DB8G6BUgjI9c1JzPVrFJpUg' (aka 'long long (*)(long long, long long, long long)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-pointer-types]
        msgSend = Dl_3741319184_;
                ^ ~~~~~~~~~~~~~~
/Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected]:229:10: error: incompatible function pointer types assigning to 'tyProc__mV9cvtvcTvdBpTeuL8riRFQ' (aka 'void (*)(long long, long long, long long)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-pointer-types]
        msgSend = Dl_3741319184_;
                ^ ~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Error: execution of an external compiler program 'clang -c  -w -ferror-limit=3 -pthread -O3   -I/Users/pietropeterlongo/recursing/Nim/lib -I/Users/pietropeterlongo/recursing/choosenim/src -o /Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected] /Users/pietropeterlongo/.cache/nim/choosenim_r/@m..@s..@[email protected]@[email protected]@spuppy@splatforms@[email protected]' failed with exit code: 1


4 errors generated.
       Tip: 26 messages have been suppressed, use --verbose to show them.
nimble.nim(304)          buildFromDir

    Error:  Build failed for the package: choosenim
stack trace: (most recent call last)
/private/var/folders/tj/11x919296w32rbj015qwdl4c0000gn/T/nimblecache-1314761008/nimscriptapi_3146622833.nim(212, 16)
/Users/pietropeterlongo/recursing/choosenim/choosenim.nimble(27, 3) releaseTask
/Users/pietropeterlongo/recursing/Nim/lib/system/nimscript.nim(265, 7) exec
/Users/pietropeterlongo/recursing/Nim/lib/system/nimscript.nim(265, 7) Error: unhandled exception: FAILED: nimble build -d:release [OSError]
       Tip: 26 messages have been suppressed, use --verbose to show them.
nimscriptwrapper.nim(161) execScript

    Error:  Exception raised during nimble script execution

details

nim -v (Nim built from sources):

Nim Compiler Version 2.0.8 [MacOSX: arm64]
Compiled at 2024-07-21
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: 5935c3bfa9fec6505394867b23510eb5cbab3dbf
active boot switches: -d:release

nimble -v:

nimble v0.14.2 compiled at 2024-07-21 16:13:07
git hash: be2f1309b35a6189ff5eb34a007793e6d3f94157
@ringabout
Copy link
Member

I suppose it was fixed by #10

@ringabout
Copy link
Member

for the record, the root cause is treeform/puppy#118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants