-
Notifications
You must be signed in to change notification settings - Fork 391
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
Compilation failures in omr/tools when cross compiling #1955
Comments
The tools can/should be configured to be compiled for the host and not the target. @youngar can you provide some guidance here? |
The work around I used was to add OMR_ENV_DATA64=1 to toolconfigure.mk.in in the conditional section for cross compile. I have no idea if this is the 'correct' solution or not. |
Hi, i'm seeing what you describe; |
Build tools require to be configured according to the current host platform. This variable currently defaults to the target platform, which causes cross compilation issues. issue: eclipse#1955 Signed-off-by: Andrew Young <youngar17@gmail.com>
Build tools require to be configured according to the current host platform. This variable currently defaults to the target platform, which causes cross compilation issues. issue: eclipse#1955 Signed-off-by: Andrew Young <youngar17@gmail.com>
Many thanks @youngar, I believe this problem is solved now. |
In the context of attempting an OpenJDK/OpenJ9 cross compile for arm 32 bit, the compilation fails in the tools directory. It appears the makefiles are picking up the 32 bit size of the target platform and applying it to the tools which are being compiled for the host. Since the host is 64 bit and not configured for multi-arch this fails with missing include files (note the -m32 in the options)
The makefiles need to differentiate between the target and host architectures.
The text was updated successfully, but these errors were encountered: