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

Can't open In M3 mac #1595

Open
wizard-lgtm opened this issue Nov 1, 2024 · 9 comments
Open

Can't open In M3 mac #1595

wizard-lgtm opened this issue Nov 1, 2024 · 9 comments
Milestone

Comments

@wizard-lgtm
Copy link

❯ c3c
dyld[53358]: Library not loaded: /opt/homebrew/opt/llvm@17/lib/libunwind.1.dylib
Referenced from: <2D50C22A-0492-3DC4-9738-F08EE7CF712B> /Users/hootie/Documents/c3c/c3c
Reason: tried: '/opt/homebrew/opt/llvm@17/lib/libunwind.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/llvm@17/lib/libunwind.1.dylib' (no such file), '/opt/homebrew/opt/llvm@17/lib/libunwind.1.dylib' (no such file)
[1] 53358 abort c3c

@lerno
Copy link
Collaborator

lerno commented Nov 1, 2024

Sadly a known issue Homebrew producing non-standalone static libraries. One can really ask oneself what the point is of static libraries when the libraries retain dependencies on dynamic libraries.

@lerno
Copy link
Collaborator

lerno commented Nov 1, 2024

For now, using Homebrew to get c3c, grab LLVM from homebrew just to get the dependencies or building it yourself are the available solutions. I am very sorry about this.

@wizard-lgtm
Copy link
Author

Sorry to hear that, is there anything i can help to you?

@lerno
Copy link
Collaborator

lerno commented Nov 6, 2024

What we need is a CI similar to https://github.com/c3lang/win-llvm but for MacOS which creates builds for Aarch64 and x64. Then we could use those to build C3 instead.

@nmsobri
Copy link

nmsobri commented Nov 13, 2024

yeah im experiencing this on M3 too.. missing a lot dylib

@lerno lerno added this to the 0.6.5 milestone Nov 13, 2024
@ZGA2519
Copy link

ZGA2519 commented Nov 15, 2024

I has this problem too.

The temporary fix is make a symlink '/opt/homebrew/opt/llvm@17/lib/libunwind.1.dylib' refer to the original 'libunwind.1.dylib' in unwind folder (I have libunwind.1.dylib but inside unwind folder in lib)

@xvln
Copy link

xvln commented Dec 7, 2024

Why not bundle a version of libunwind? It's not a huge library...

@lerno
Copy link
Collaborator

lerno commented Dec 7, 2024

This is what building a custom version of LLVM could do.

@lerno lerno modified the milestones: 0.6.5, 0.6.6 Dec 13, 2024
@rodgomesc
Copy link

Temp Fix

c3c it's looking for libunwind from LLVM 17 and some Homebrew stuff.

➜  otool -L c3c | grep libunwind
	/opt/homebrew/opt/llvm@17/lib/libunwind.1.dylib (compatibility version 1.0.0, current version 1.0.0)

a quick fix is run:

brew install llvm@17

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

6 participants