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

Issue with not detecting gcc when ccache is enabled in the adoptopenjdk+openj9 builds #2567

Closed
sxa opened this issue May 21, 2018 · 19 comments
Closed

Comments

@sxa
Copy link

sxa commented May 21, 2018

Ref eclipse-openj9/openj9#1919 (comment) which shows where this is set up.

It appears that if the C compiler (although in this case it's ccache) is set to have environment variables preceding it then the OMR component then configure gets confused. Haven't checked the logic but it could be that openj9 are only setting it up like that on s390x:

Failing job on Linux/s390x: https://ci.adoptopenjdk.net/job/openjdk10_openj9_build_s390x_linux/58/consoleFull
Successful job on Linux/x86-64 where compiler is showing as cc: https://ci.adoptopenjdk.net/job/openjdk10_openj9_build_x86-64_linux/54/consoleFull

@sxa
Copy link
Author

sxa commented Jun 7, 2018

./make/autoconf/generated-configure.sh and ./make/autoconf/build-performance.m4 in the main openjdk repository both appear to add the extra variables to the start of the CCACHE

@smlambert
Copy link
Contributor

I'd like to raise the priority of this issue, is someone working on it presently?

@DanHeidinga
Copy link
Contributor

@keithc-ca Are you handling this as part of eclipse-openj9/openj9#1919?

@keithc-ca
Copy link
Contributor

No, I expect this is unrelated to that, but I'd be happy to be wrong.

@DanHeidinga
Copy link
Contributor

Thanks Keith for checking.

@dnakamura Can you take a look at this?

@dnakamura
Copy link
Contributor

This root issue is that dash (default /bin/sh on ubuntu), does not properly handle setting variables when included from an expansion inside of eval.
Boiled down code:

CC="var=1 true"
ac_compiler=\$CC
eval "$ac_compiler"

^ works in bash but not dash. Currently working on a fix

@sxa
Copy link
Author

sxa commented Jun 19, 2018

Fix doesn't appear to be resolving the problem based on the last attempt to build with the fix

@irinarada
Copy link

@dnakamura - any new updates - this is blocking the 090 binaries testing.

@dnakamura
Copy link
Contributor

Opened a PR for JDK9. working on porting to other versions now

@sxa
Copy link
Author

sxa commented Jun 26, 2018

Any update @dnakamura ? It's JDK10 that's first in our priority list.

@keithc-ca
Copy link
Contributor

Devin's new fix is merged for JDK10: ibmruntimes/openj9-openjdk-jdk10#44.

@sxa
Copy link
Author

sxa commented Jun 28, 2018

Thanks @pshipton - looks like you pulled this across to openj9-0.9 yesterday :-) Will kick off a build and close this off if successful.

@sxa
Copy link
Author

sxa commented Jun 28, 2018

Looks happy on the latest build 100 at https://ci.adoptopenjdk.net/job/openjdk10_openj9_build_s390x_linux :-)

@sxa sxa closed this as completed Jun 28, 2018
@DanHeidinga
Copy link
Contributor

@sxa555 The change hasn't been applied to JDK8 but the build appears to be passing at Adopt. Are there any other JDK levels that you are aware of that need this change?

@sxa
Copy link
Author

sxa commented Jun 28, 2018

@DanHeidinga Yeah 8 was never a problem. 9 is though - we haven't built that off the openj9-0.9 branch yet (assuming there is one) but the latest build off the main openj9 branch in there passed ok, so I guess the fix was applied there too.

@pshipton
Copy link
Contributor

The fix is applied to jdk9 and the openj9-0.9 branch of jdk9, which does exist.

@sxa
Copy link
Author

sxa commented Aug 1, 2018

Seeing something that looks very similar to this on my zlinux build with JDK11 at the moment

@keithc-ca
Copy link
Contributor

ibmruntimes/openj9-openjdk-jdk11#9 should fix JDK11.

@pshipton
Copy link
Contributor

pshipton commented Aug 1, 2018

ibmruntimes/openj9-openjdk-jdk11#9 is merged.

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

8 participants