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

Maven build does not allow for aarch64 architecture and crashes on tests #79

Open
minnoroth opened this issue Feb 16, 2023 · 2 comments

Comments

@minnoroth
Copy link
Contributor

minnoroth commented Feb 16, 2023

At the moment, docker has no emulation for aarch64 architecture running Apple Silicon chips.
When i try to run Wren:AM via docker, build fails.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project openam-installtools: There are test failures.

[ERROR] com.sun.identity.install.tools.util.OSCheckerTest.testArchitecture Time elapsed: 0.005 s <<< FAILURE! #12 175.6 java.lang.AssertionError: Expected aarch64 to be one of [i386, i686, x86, x86_64, amd64, PowerPC, ppc, ppc64, sparc] expected [1] but found [0]

@pavelhoral
Copy link
Member

pavelhoral commented Feb 16, 2023

Is this really docker related? To me it seems that this should fail even when being built by maven directly.

@minnoroth minnoroth changed the title Docker run does not allow for OSX architecture Docker run does not allow for Apple Sillicon (arm) architecture Feb 20, 2023
@minnoroth
Copy link
Contributor Author

As @pavelhoral truthfully mentioned above, this is not docker related.

The maven build crashes on:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project openam-installtools: There are test failures

The most probable cause is that my aarch64 (linux/arm64/v8) architecture is not registered in the project and therefore the com.sun.identity.install.tools.util.OSCheckerTest.testArchitecture causes the build to crash.

@minnoroth minnoroth changed the title Docker run does not allow for Apple Sillicon (arm) architecture Maven build does not allow for aarch64 architecture and crashes on tests Apr 17, 2023
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

2 participants