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

MacOS Big Sur: libcarbon linker error on shadow-cljs server startup #774

Closed
solussd opened this issue Aug 10, 2020 · 5 comments
Closed

MacOS Big Sur: libcarbon linker error on shadow-cljs server startup #774

solussd opened this issue Aug 10, 2020 · 5 comments

Comments

@solussd
Copy link

solussd commented Aug 10, 2020

Workaround: add :fs-watch {:hawk false} to shadow-cljs.edn config.

Error upon running npx shadow-cljs server:

INFO  org.xnio - XNIO version 3.7.3.Final
INFO  org.xnio.nio - XNIO NIO Implementation Version 3.7.3.Final
INFO  org.jboss.threads - JBoss Threads version 2.3.2.Final
Execution error (UnsatisfiedLinkError) at com.sun.jna.NativeLibrary/loadLibrary (NativeLibrary.java:271).
Unable to load library 'Carbon': Native library (darwin/libCarbon.dylib) not found in resource path 
@solussd solussd changed the title libcarbon linker error on shadow-cljs server startup MacOS Big Sur: libcarbon linker error on shadow-cljs server startup Aug 10, 2020
@tekacs
Copy link

tekacs commented Dec 17, 2020

Related to:

There doesn't yet appear to be a corresponding PR in hawk itself, although bhauman said they'll get it into hawk when it's ready.

@thheller
Copy link
Owner

Others have reported that it seems work fine with macOS release? See #767

@bpringe
Copy link

bpringe commented Sep 4, 2021

I'm not sure if this is very related, but I came across a similar issue (does not mention Carbon) running npx shadow-cljs server in this fulcro template.

shadow-cljs - config: /Users/brandon/development/fulcro-template/shadow-cljs.edn
shadow-cljs - starting via "clojure"
Execution error (UnsatisfiedLinkError) at java.lang.ClassLoader$NativeLibrary/load0 (ClassLoader.java:-2).
/private/var/folders/9g/s52593k52h7g6r6jc54g_p7m0000gn/T/jna10647446640918170874.tmp: dlopen(/private/var/folders/9g/s52593k52h7g6r6jc54g_p7m0000gn/T/jna10647446640918170874.tmp, 1): no suitable image found.  Did find:
        /private/var/folders/9g/s52593k52h7g6r6jc54g_p7m0000gn/T/jna10647446640918170874.tmp: no matching architecture in universal wrapper
        /private/var/folders/9g/s52593k52h7g6r6jc54g_p7m0000gn/T/jna10647446640918170874.tmp: no matching architecture in universal wrapper

Full report at:
/var/folders/9g/s52593k52h7g6r6jc54g_p7m0000gn/T/clojure-17548977299906079807.edn

Adding :fs-watch {:hawk false} to the shadow-cljs config fixed it, but is that supposed to be necessary?

Big Sur 11.5.2
shadow-cljs:

=== Version
jar:            2.15.8
cli:            2.15.8
deps:           1.3.2
config-version: 2.15.8

This machine has the M1 chip, though I don't know if that matters in this case.

@thheller
Copy link
Owner

thheller commented Sep 5, 2021

:fs-watch {:hawk false} is not an option anymore so it will do nothing, unless you are still on an older version? Which thheller/shadow-cljs version do you have in your deps.edn?

@bpringe
Copy link

bpringe commented Sep 5, 2021

I see. In deps.edn the version is 2.11.8, so maybe that's why that option worked for me.

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

4 participants