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

Error after building & installing on macOS #168

Open
cap10morgan opened this issue Jan 17, 2025 · 1 comment
Open

Error after building & installing on macOS #168

cap10morgan opened this issue Jan 17, 2025 · 1 comment

Comments

@cap10morgan
Copy link

Environment:

macOS 15.2 arm64
fish shell 3.7.1
Xcode 16.2

Steps to reproduce:

  1. brew install curl git git-lfs zip entr openssl double-conversion pkg-config ninja python cmake gnupg zlib doctest boost libzip lbzip2 llvm@19
  2. set -gx SDKROOT (xcrun --sdk macosx --show-sdk-path) (the fish equivalent of export SDKROOT=$(xcrun --sdk macosx --show-sdk-path))
  3. fish_add_path /opt/homebrew/opt/llvm/bin (fish equivalent of export PATH="/opt/homebrew/opt/llvm/bin:${PATH}")
  4. set -gx LDFLAGS "-L/opt/homebrew/opt/llvm/lib ${LDFLAGS}" (fish equivalent of export LDFLAGS="-L/opt/homebrew/opt/llvm/lib ${LDFLAGS}"`)
  5. set -gx CPPFLAGS "-I/opt/homebrew/opt/llvm/include ${CPPFLAGS}" (fish equivalent of export CPPFLAGS="-I/opt/homebrew/opt/llvm/include ${CPPFLAGS}")
  6. git clone --recurse-submodules https://github.com/jank-lang/jank.git
  7. ./bin/configure -GNinja -DCMAKE_BUILD_TYPE=Release
  8. ./bin/compile
  9. ./bin/install
  10. jank repl

Expected:

Jank REPL starts up like it does when run as ./build/jank repl.

Observed:

This error is printed in the terminal:

dyld[50323]: Library not loaded: @rpath/libgccpp.1.dylib
  Referenced from: <61BA10A9-E65C-33EB-836C-0366A3E89BA2> /usr/local/bin/jank
  Reason: tried: '$ORIGIN/../lib/libgccpp.1.dylib' (no such file), '$ORIGIN/../lib/libgccpp.1.dylib' (no such file)
fish: Job 1, 'jank repl' terminated by signal SIGABRT (Abort)
@jeaye
Copy link
Member

jeaye commented Jan 17, 2025

Hey! We've updated our homebrew build. Would you try installing jank by following these steps? https://github.com/jank-lang/homebrew-jank

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