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

Project fails on Apple Silicone (aarch64) #1999

Open
lvitaly opened this issue May 21, 2022 · 0 comments
Open

Project fails on Apple Silicone (aarch64) #1999

lvitaly opened this issue May 21, 2022 · 0 comments

Comments

@lvitaly
Copy link
Contributor

lvitaly commented May 21, 2022

The Lift SBT project fails on Apple Silicone and aarch64 java.

➜  lift-framework git:(master) ✗ /Users/vl/dev/env/jvm/zulu11.54.23-ca-jdk11.0.14-macosx_aarch64/bin/java -jar /Users/vl/Library/Application\ Support/Coursier/bin/sbt
[info] welcome to sbt 1.3.12 (Azul Systems, Inc. Java 11.0.14)
[info] loading settings for project root from plugins.sbt ...
Cloning into '/Users/vl/.sbt/1.0/staging/a6a77c219d2001172bee/sbt-lift-build'...
[info] loading project definition from /Users/vl/.sbt/1.0/staging/a6a77c219d2001172bee/sbt-lift-build/project
[info] loading settings for project sbt-lift-build from build.sbt ...
[info] loading project definition from /Users/vl/dev/git/oss/lift-framework/project
[info] Updating
...
[info] Resolved  dependencies
[info] Fetching artifacts of
...
[info] Fetched artifacts of
[info] Compiling 1 Scala source to /Users/vl/.sbt/1.0/staging/a6a77c219d2001172bee/sbt-lift-build/target/scala-2.12/sbt-1.0/classes ...
https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.12/1.3.5/compiler-bridge_2.12-1.3.5-sources.jar
  100.0% [##########] 47.7 KiB (1.1 MiB / s)
https://repo1.maven.org/maven2/org/scala-sbt/util-interface/1.3.0/util-interface-1.3.0.jar
  100.0% [##########] 2.5 KiB (57.1 KiB / s)
[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.10. Compiling...
[info]   Compilation completed in 3.332s.
[info] Compiling 4 Scala sources to /Users/vl/dev/git/oss/lift-framework/project/target/scala-2.12/sbt-1.0/classes ...
[info] loading settings for project lift-framework from build.sbt ...
[info] resolving key references (11697 settings) ...
   ___,__      _     _   __  _
  |  / \  \   | |   (_)/  _|| |_    lift-framework
  |  | |  |   | |__ | ||  _||  _|   3.6.0-SNAPSHOT for Scala 2.12.12
   \__\_\_.   |____||_||_|   \__|

[info] set current project to lift-framework (in build file:/Users/vl/dev/git/oss/lift-framework/)
Exception in thread "sbt-socket-server" java.lang.UnsatisfiedLinkError: /Users/vl/Library/Caches/JNA/temp/jna8854190848474645223.tmp: dlopen(/Users/vl/Library/Caches/JNA/temp/jna8854190848474645223.tmp, 0x0001): tried: '/Users/vl/Library/Caches/JNA/temp/jna8854190848474645223.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e'))
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1837)
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
	at com.sun.jna.Native.<clinit>(Native.java:195)
	at com.sun.jna.Structure.setAlignType(Structure.java:280)
	at com.sun.jna.Structure.<init>(Structure.java:197)
	at com.sun.jna.Structure.<init>(Structure.java:193)
	at com.sun.jna.Structure.<init>(Structure.java:180)
	at com.sun.jna.Structure.<init>(Structure.java:172)
	at org.scalasbt.ipcsocket.UnixDomainSocketLibrary$SockaddrUn.<init>(UnixDomainSocketLibrary.java:83)
	at sbt.internal.server.Server$$anon$1$$anon$2.$anonfun$run$1(Server.scala:65)
	at scala.util.Try$.apply(Try.scala:213)
	at sbt.internal.server.Server$$anon$1$$anon$2.run(Server.scala:60)
[warn] sbt server could not start in 10s
sbt:lift-framework> exit
[INFO] [05/09/2022 01:52:01.398] [Thread-13] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
This was referenced May 21, 2022
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

1 participant