Closed jacekschae closed 4 years ago
Cloesd by cryogen-project/cryogen-core#144
Thanks!
@jacekschae @sankara I will push out an update to clojars sometime this week! Waiting on another PR first.
I started getting this error again on MacOS Sonoma 14.6.1 with M1 processor. Here's the complete exception:
#error {
:cause "/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp: dlopen(/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp, 0x0001): tried: '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (no such file), '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64'))"
:via
[{:type java.lang.UnsatisfiedLinkError
:message "/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp: dlopen(/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp, 0x0001): tried: '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (no such file), '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64'))"
:at [jdk.internal.loader.NativeLibraries load "NativeLibraries.java" -2]}]
:trace
[[jdk.internal.loader.NativeLibraries load "NativeLibraries.java" -2]
[jdk.internal.loader.NativeLibraries$NativeLibraryImpl open "NativeLibraries.java" 331]
[jdk.internal.loader.NativeLibraries loadLibrary "NativeLibraries.java" 197]
[jdk.internal.loader.NativeLibraries loadLibrary "NativeLibraries.java" 139]
[java.lang.ClassLoader loadLibrary "ClassLoader.java" 2399]
[java.lang.Runtime load0 "Runtime.java" 852]
[java.lang.System load "System.java" 2030]
[com.sun.jna.Native loadNativeDispatchLibraryFromClasspath "Native.java" 906]
[com.sun.jna.Native loadNativeDispatchLibrary "Native.java" 881]
[com.sun.jna.Native <clinit> "Native.java" 156]
[com.barbarysoftware.jna.CarbonAPI <clinit> "CarbonAPI.java" 6]
[com.barbarysoftware.jna.CFStringRef toCFString "CFStringRef.java" 10]
[com.barbarysoftware.watchservice.MacOSXListeningWatchService register "MacOSXListeningWatchService.java" 30]
[com.barbarysoftware.watchservice.WatchableFile register "WatchableFile.java" 30]
[com.barbarysoftware.watchservice.WatchableFile register "WatchableFile.java" 39]
[hawk.watcher$fn__133 invokeStatic "watcher.clj" 102]
[hawk.watcher$fn__133 invoke "watcher.clj" 99]
[hawk.watcher$fn__38$G__29__47 invoke "watcher.clj" 24]
[hawk.core$watch_BANG_ invokeStatic "core.clj" 83]
[hawk.core$watch_BANG_ doInvoke "core.clj" 59]
[clojure.lang.RestFn applyTo "RestFn.java" 139]
[clojure.core$apply invokeStatic "core.clj" 669]
[clojure.core$apply invoke "core.clj" 662]
[cryogen_core.watcher$watch_with_fallback_BANG_ invokeStatic "watcher.clj" 36]
[cryogen_core.watcher$watch_with_fallback_BANG_ doInvoke "watcher.clj" 31]
[clojure.lang.RestFn invoke "RestFn.java" 423]
[cryogen_core.watcher$start_watcher_for_changes_BANG_ invokeStatic "watcher.clj" 52]
[cryogen_core.watcher$start_watcher_for_changes_BANG_ doInvoke "watcher.clj" 41]
[clojure.lang.RestFn invoke "RestFn.java" 445]
[cryogen_core.watcher$start_watcher_BANG_ invokeStatic "watcher.clj" 58]
[cryogen_core.watcher$start_watcher_BANG_ invoke "watcher.clj" 55]
[generator.watch$init invokeStatic "watch.clj" 16]
[generator.watch$init invoke "watch.clj" 9]
[clojure.lang.Var invoke "Var.java" 384]
[clojure.run.exec$exec invokeStatic "exec.clj" 89]
[clojure.run.exec$exec invoke "exec.clj" 78]
[clojure.run.exec$_main$fn__287 invoke "exec.clj" 228]
[clojure.run.exec$_main invokeStatic "exec.clj" 224]
[clojure.run.exec$_main doInvoke "exec.clj" 192]
[clojure.lang.RestFn invoke "RestFn.java" 397]
[clojure.lang.AFn applyToHelper "AFn.java" 152]
[clojure.lang.RestFn applyTo "RestFn.java" 132]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.main$main_opt invokeStatic "main.clj" 514]
[clojure.main$main_opt invoke "main.clj" 510]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]]} "WARN - no native fs events; falling back to polling filesystem"
#error {
:cause "Exception java.lang.UnsatisfiedLinkError: /private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp: dlopen(/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp, 0x0001): tried: '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (no such file), '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')) [in thread \"main\"]"
:via
[{:type java.lang.NoClassDefFoundError
:message "Could not initialize class com.barbarysoftware.jna.CarbonAPI"
:at [com.barbarysoftware.jna.CFStringRef toCFString "CFStringRef.java" 10]}
{:type java.lang.ExceptionInInitializerError
:message "Exception java.lang.UnsatisfiedLinkError: /private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp: dlopen(/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp, 0x0001): tried: '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (no such file), '/private/var/folders/zy/3gfxx9h1355dgvtkcyz2stc40000gn/T/jna-2996766/jna6487982472884405313.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')) [in thread \"main\"]"
:at [jdk.internal.loader.NativeLibraries load "NativeLibraries.java" -2]}]
:trace
[[jdk.internal.loader.NativeLibraries load "NativeLibraries.java" -2]
[jdk.internal.loader.NativeLibraries$NativeLibraryImpl open "NativeLibraries.java" 331]
[jdk.internal.loader.NativeLibraries loadLibrary "NativeLibraries.java" 197]
[jdk.internal.loader.NativeLibraries loadLibrary "NativeLibraries.java" 139]
[java.lang.ClassLoader loadLibrary "ClassLoader.java" 2399]
[java.lang.Runtime load0 "Runtime.java" 852]
[java.lang.System load "System.java" 2030]
[com.sun.jna.Native loadNativeDispatchLibraryFromClasspath "Native.java" 906]
[com.sun.jna.Native loadNativeDispatchLibrary "Native.java" 881]
[com.sun.jna.Native <clinit> "Native.java" 156]
[com.barbarysoftware.jna.CarbonAPI <clinit> "CarbonAPI.java" 6]
[com.barbarysoftware.jna.CFStringRef toCFString "CFStringRef.java" 10]
[com.barbarysoftware.watchservice.MacOSXListeningWatchService register "MacOSXListeningWatchService.java" 30]
[com.barbarysoftware.watchservice.WatchableFile register "WatchableFile.java" 30]
[com.barbarysoftware.watchservice.WatchableFile register "WatchableFile.java" 39]
[hawk.watcher$fn__133 invokeStatic "watcher.clj" 102]
[hawk.watcher$fn__133 invoke "watcher.clj" 99]
[hawk.watcher$fn__38$G__29__47 invoke "watcher.clj" 24]
[hawk.core$watch_BANG_ invokeStatic "core.clj" 83]
[hawk.core$watch_BANG_ doInvoke "core.clj" 59]
[clojure.lang.RestFn applyTo "RestFn.java" 139]
[clojure.core$apply invokeStatic "core.clj" 669]
[clojure.core$apply invoke "core.clj" 662]
[cryogen_core.watcher$watch_with_fallback_BANG_ invokeStatic "watcher.clj" 36]
[cryogen_core.watcher$watch_with_fallback_BANG_ doInvoke "watcher.clj" 31]
[clojure.lang.RestFn invoke "RestFn.java" 423]
[cryogen_core.watcher$start_watcher_for_changes_BANG_ invokeStatic "watcher.clj" 52]
[cryogen_core.watcher$start_watcher_for_changes_BANG_ doInvoke "watcher.clj" 41]
[clojure.lang.RestFn invoke "RestFn.java" 445]
[cryogen_core.watcher$start_watcher_BANG_ invokeStatic "watcher.clj" 58]
[cryogen_core.watcher$start_watcher_BANG_ invoke "watcher.clj" 55]
[generator.watch$init invokeStatic "watch.clj" 16]
[generator.watch$init invoke "watch.clj" 9]
[clojure.lang.Var invoke "Var.java" 384]
[clojure.run.exec$exec invokeStatic "exec.clj" 89]
[clojure.run.exec$exec invoke "exec.clj" 78]
[clojure.run.exec$_main$fn__287 invoke "exec.clj" 228]
[clojure.run.exec$_main invokeStatic "exec.clj" 224]
[clojure.run.exec$_main doInvoke "exec.clj" 192]
[clojure.lang.RestFn invoke "RestFn.java" 397]
[clojure.lang.AFn applyToHelper "AFn.java" 152]
[clojure.lang.RestFn applyTo "RestFn.java" 132]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.main$main_opt invokeStatic "main.clj" 514]
[clojure.main$main_opt invoke "main.clj" 510]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]]} "WARN - no native fs events; falling back to polling filesystem"
Seems like with update to newest macOS Big Sur the
/System/Library/Frameworks/Carbon.framework
is not working. When you start a new project:I don't know if this helps in shadow-cljs you can work around this be setting a flag in the
shadow-cljs.edn
hawk is the file watching lib used on macOS because the jvm default is "slow"
Keep in mind that this issue appears on macOS beta, and it might be different for public release.