graal icon indicating copy to clipboard operation
graal copied to clipboard

Allow language interpreter to run on z/OS and s390x architecture

Open kiwi1969 opened this issue 8 months ago • 3 comments

Allow the language interpreter to function for z/OS platform ie osname="z/OS" arch="s390x" I am guessing that will also allow osname="linux" arch="s390x" also

kiwi1969 avatar Apr 06 '25 02:04 kiwi1969

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA). The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

Thank you for signing the OCA.

I’m importing this pull request into the Graal internal repository by cherry-picking your commits. You can track the corresponding internal PR via the GitHub mirror: https://github.com/oracle/graal/pull/11390.

In the meantime, you can use the following system properties as a workaround for the issue:

System.setProperty("truffle.UseFallbackRuntime", "true");
System.setProperty("polyglot.engine.userResourceCache", "<path to cache folder>");
System.setProperty("truffle.attach.library", "");

tzezula avatar Jun 11 '25 13:06 tzezula

Thanks.

I had a look at your newer implementation and I think it is much more robust and a better solution to what I was proposing.

Good work šŸ‘

kiwi1969 avatar Jun 26 '25 02:06 kiwi1969

We added -Dpolyglot.engine.allowUnsupportedPlatform=true system property to enable execution on an unsupported platform. In addition to this you will need to set -Dpolyglot.engine.userResourceCache=<cache_folder system property to point to cache folder. For details see InternalResourceTest#testUnsupportedPlatformEnabledWithExplicitCacheFolder

tzezula avatar Jun 30 '25 10:06 tzezula

Fixed by https://github.com/oracle/graal/pull/11390

tzezula avatar Jun 30 '25 10:06 tzezula