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

Build fails on OpenIndiana #6

Open
3eka opened this issue Feb 16, 2022 · 4 comments
Open

Build fails on OpenIndiana #6

3eka opened this issue Feb 16, 2022 · 4 comments

Comments

@3eka
Copy link

3eka commented Feb 16, 2022

Hi,

This is great idea, so I could not resist to test it.
Since OI does not have SunStudio available, I have tried with GCC 10, and Oracle (former Sun) JDK 1.8 package:

:; java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

:; cd oraclesolaris-contrib/OracleSolaris_OpenJDK_Builder
:; ./build-all.sh
Building Openjdk 9...
Build error. See: ./oraclesolaris-contrib/OracleSolaris_OpenJDK_Builder/logs/jdk-9.log

That error file shows:

configure: Found potential Boot JDK using configure arguments
configure: Potential Boot JDK found at /usr/jdk/instances/jdk1.8.0 did not contain bin/java; ignoring
configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK
configure exiting with result code 1

So, what has to be done here, to proceed?

Best regards

P.S: I get same error when trying to use OpenJDK package from OI:

:; pkg list '*openjdk8*'
NAME (PUBLISHER)                                  VERSION                    IFO
developer/java/openjdk8                           1.8.232-2020.0.1.2         i--
runtime/java/openjdk8                             1.8.232-2020.0.1.2         i--
@psumbera
Copy link
Contributor

Thank you for trying!

I'm afraid you won't be able to build OpenJDK 9 to 12 without Studio 12.4 compiler. It is availble here:

https://www.oracle.com/tools/developerstudio/downloads/solaris-studio-v124-downloads.html

(of course one could try to backport Solaris GCC build patches to OpenJDK 9 to 12).

But your problem is that it cannot find JDK 8. Can you check whether you have:

/usr/jdk/instances/jdk1.8.0/bin/java ?

If not you might need to modify jdk9.sh file with correct location on your system.

@3eka
Copy link
Author

3eka commented Feb 17, 2022 via email

@jimhall
Copy link

jimhall commented Feb 17, 2022

It seems that Peter Tribble talks to this: https://ptribble.blogspot.com/2021/12/keeping-java-alive-on-illumos.html

He states:

_At which point I simply carried on building OpenJDK. All I did was take the patch from the commit that removed Solaris support, applied that backwards, and added on top the pkgsrc patches that Jonathan Perkin had originally developed to support a gcc port on Solaris and illumos - patches we had already been using extensively from JDK11 onwards.

Along the way, I've been cleaning up the patches to eliminate the SPARC code (you could put it back, but it's not a focus of this project) and most of the code to support the Studio toolchain (the version of Studio to build current Java isn't compatible with illumos anyway). So what we're left with is a straightforward Solaris/illumos+gcc port._

@psumbera
Copy link
Contributor

I think he doesn't mean Studio 12.4 compiler. I belive that OpenJDK 13 was first version which reqired more modern Studio version (12.5 or 12.6). Therefore this project also switched to GCC with OpenJDK 13.

This unfortunatelly caused problem for SPARC build. Now SPARC will fail to build version 13. If we used Studio 12.6 we should be still able to build verison 13 and 14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants