Skip to content

Build issue fix for Apple Silicon#141

Open
sguruvar wants to merge 1 commit into
aws-observability:mainfrom
sguruvar:main
Open

Build issue fix for Apple Silicon#141
sguruvar wants to merge 1 commit into
aws-observability:mainfrom
sguruvar:main

Conversation

@sguruvar

Copy link
Copy Markdown
Collaborator

Build issue fix for Apple Silicon. This is required especially with Cloud9 sunsetting.

INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.314 s
[INFO] Finished at: 2025-08-13T12:08:45-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default) on project spring-petclinic-admin-server: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider: ExceptionInInitializerError: Can't overwrite cause with java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /private/var/folders/kz/1z_592nx6r96fw52dbghg9rr0000gq/T/jffi14921921095104775902.dylib: dlopen(/private/var/folders/kz/1z_592nx6r96fw52dbghg9rr0000gq/T/jffi14921921095104775902.dylib, 0x0001): tried: '/private/var/folders/kz/1z_592nx6r96fw52dbghg9rr0000gq/T/jffi14921921095104775902.dylib' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/kz/1z_592nx6r96fw52dbghg9rr0000gq/T/jffi14921921095104775902.dylib' (no such file), '/private/var/folders/kz/1z_592nx6r96fw52dbghg9rr0000gq/T/jffi14921921095104775902.dylib' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64'))
[ERROR] 	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
[ERROR] 	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
[ERROR] 	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
[ERROR] 	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
[ERROR] 	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2402)
[ERROR] 	at java.base/java.lang.Runtime.load0(Runtime.java:852)
[ERROR] 	at java.base/java.lang.System.load(System.java:2028)
[ERROR] 	at com.kenai.jffi.internal.StubLoader.loadFromJar(StubLoader.java:371)
[ERROR] 	at com.kenai.jffi.internal.StubLoader.load(StubLoader.java:258)
[ERROR] 	at com.kenai.jffi.internal.StubLoader.<clinit>(StubLoader.java:444)

@pxaws

pxaws commented Aug 18, 2025

Copy link
Copy Markdown
Member

I think we also need to update prerequisites section in the readme: https://github.com/aws-observability/application-signals-demo/blob/main/README.md. In addition, we should remove the comments about cloud9: https://github.com/aws-observability/application-signals-demo/blob/main/README.md#deploy-via-shell-scripts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How should people to use this script? We should document it in readme

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

Successfully merging this pull request may close these issues.

2 participants