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

AArch64: Create configuration for native build #5285

Closed
knn-k opened this issue Mar 28, 2019 · 7 comments
Closed

AArch64: Create configuration for native build #5285

knn-k opened this issue Mar 28, 2019 · 7 comments

Comments

@knn-k
Copy link
Contributor

knn-k commented Mar 28, 2019

Build of AArch64 Linux runtime requires cross-compilation environment in Docker on x86-64 Linux.
There is a request for building the runtime natively on AArch64 Linux.

@jdekonin
Copy link
Contributor

Trying looking at what @dsouzai and @JamesKingdon have done via #1159 and #712

@knn-k
Copy link
Contributor Author

knn-k commented Mar 29, 2019

The file runtime/jilgen/module.xml uses qemu-aarch64 for running constgen in the cross build. I have found I can build the runtime natively on AArch64 Linux by changing that file.
Now my question is: How can you detect the native/cross-building environment in module.xml? Is there any flag that can be used for that purpose?

The AArch64 build does not support DDR at the moment (#5221). When we support it, runtime/ddr/module.xml also needs to be modified because it uses qemu-aarch64.

@hangshao0
Copy link
Contributor

It seems that we do not have an existing flag for this purpose. You might need to add a new flag. Not sure if it is worth the effort, as uma is going to be replaced by cmake shortly. Adding a new spec might be an easier solution for now.

@knn-k
Copy link
Contributor Author

knn-k commented Apr 1, 2019

@hangshao0 Thank you for your suggestion. What is the plan for moving to cmake?

@hangshao0
Copy link
Contributor

What is the plan for moving to cmake?

@dnakamura

@pshipton
Copy link
Member

pshipton commented Apr 1, 2019

Note there is a cmake plan of sorts in #90

@knn-k
Copy link
Contributor Author

knn-k commented Apr 2, 2019

I opened #5321 and ibmruntimes/openj9-openjdk-jdk11#149 adding a new flag to j9.flags as a short-term solution.

knn-k added a commit to knn-k/openj9 that referenced this issue Apr 2, 2019
This commit adds a new flag for cross build in j9.flags, and new spec
files that use the flag for cross build of AArch64 runtime.

Fixes: eclipse-openj9#5285

Signed-off-by: knn-k <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants