Skip to content

Conversation

jerboaa
Copy link
Collaborator

@jerboaa jerboaa commented Sep 13, 2021

Add jdk.scripting.nashorn modules for module look-up on JDK 11.
Target_jdk_nashorn_api_scripting_ClassFilter substitution needs nashorn
target class loaded.

cc11ae1 re-ordered arguments passed to
the native image generator. Add -XX:+UnlockExperimentalVMOptions before
actually using any one of those experimental options as that's needed
for some JVMs.

Add relevant modules to the upgraded module path list since for
non-jlinked-builds they are either not there or too old.

Closes #3778

@olpaw olpaw self-assigned this Sep 14, 2021
@jerboaa jerboaa force-pushed the build_break_ni_agent_3778 branch from 5e4b8fa to df8e8e3 Compare September 15, 2021 14:14
Only perform nashorn substitutions if that module is actulally loaded as
it would otherwise affect JDK 9+ builds.

cc11ae1 re-ordered arguments passed to
the native image generator. Move code to after compiler specific flags
get added, which includes -XX:+UnlockExperimentalVMOptions.

Add relevant modules to the module path for module-based builds like
'native-image --macro:native-image-agent-library' as not all JDKs have
truffle and sdk modules in the default module path.

Closes oracle#3778
@jerboaa jerboaa force-pushed the build_break_ni_agent_3778 branch from df8e8e3 to c17a8f4 Compare September 16, 2021 09:32
@jerboaa
Copy link
Collaborator Author

jerboaa commented Sep 16, 2021

I believe I've fixed the checkstyle warning now. Lets see what the gates tell us. It's now also rebased on latest master, which should fix the gate's failures on debuginfo tests.

@olpaw olpaw self-requested a review September 16, 2021 09:37
@olpaw olpaw changed the title Non-jlinked-build fixes for breakage after cc11ae1 [GR-33796] Non-jlinked-build fixes for breakage after cc11ae1 Sep 16, 2021
@olpaw olpaw closed this Sep 16, 2021
@olpaw olpaw force-pushed the build_break_ni_agent_3778 branch from c17a8f4 to d9fb0b7 Compare September 16, 2021 12:32
@olpaw
Copy link
Member

olpaw commented Sep 16, 2021

@jerboaa I accidentally force-pushed to https://github.com/jerboaa/graal.git instead of our internal repo 😬 . Please ignore that (and the strange side effect of this PR getting closed). I add a comment once your PR ran though our CI.

@jerboaa
Copy link
Collaborator Author

jerboaa commented Sep 16, 2021

@jerboaa I accidentally force-pushed to https://github.com/jerboaa/graal.git instead of our internal repo grimacing . Please ignore that (and the strange side effect of this PR getting closed). I add a comment once your PR ran though our CI.

OK, thanks.

@jerboaa
Copy link
Collaborator Author

jerboaa commented Sep 16, 2021

jerboaa@c17a8f4 is the commit which is intended to be pushed to graal master with this PR.

@olpaw
Copy link
Member

olpaw commented Sep 16, 2021

jerboaa@c17a8f4 is the commit which is intended to be pushed to graal master with this PR.

Yes that's the one that is currently running in our CI.

@olpaw olpaw reopened this Sep 16, 2021
@olpaw
Copy link
Member

olpaw commented Sep 16, 2021

The PR is in the merge queue.

@graalvmbot graalvmbot merged commit ae7f2a8 into oracle:master Sep 16, 2021
jerboaa added a commit to jerboaa/mandrel-packaging that referenced this pull request Oct 1, 2021
jerboaa added a commit to graalvm/mandrel-packaging that referenced this pull request Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build break with OpenJDK 11/17
4 participants