Author Topic: Compiling OpenJDK  (Read 27714 times)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #30 on: April 11, 2023, 04:16:10 am »
Working on the warnings now - another commit coming in the next few hours.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Compiling OpenJDK
« Reply #31 on: April 11, 2023, 04:25:28 am »
Zip at https://smedley.id.au/tmp/odin32-20230410.zip is not tested at all
Hi

I went the easy way. I cloned the VM and replaced the .exe on C:\usr\bin and the rest files on C:\usr\lib.
Rebooted just in case.

Java keeps working, I quickly tested PixelEditor and worked.

Regards

Martin Iturbide
OS2World NewsMaster
... just share the dream.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #32 on: April 11, 2023, 07:37:52 am »
Updated build - https://smedley.id.au/tmp/odin32-20230411.zip

I committed a bunch more changes to the gcc12 branch. There are still some warnings remaining, but I'm not sure how best to address them...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #33 on: April 11, 2023, 08:46:43 am »
Anyone else's google foo better than mine?

Trying to track down:
Code: [Select]
3b. JAXB 2.1 (http://jaxb.java.net/2.1/JAXB2_20061211.jar,
    install it with java -jar JAXB2_20061211.jar)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #34 on: April 11, 2023, 09:43:43 am »
Meanwhile, openjdk doesn't want to find gcc... ERROR: The Compiler version is undefined.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #35 on: April 11, 2023, 10:48:02 am »
Anyone else's google foo better than mine?

Trying to track down:
Code: [Select]
3b. JAXB 2.1 (http://jaxb.java.net/2.1/JAXB2_20061211.jar,
    install it with java -jar JAXB2_20061211.jar)

I'm hoping https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl/2.1 is close enough...

Tom

  • Full Member
  • ***
  • Posts: 194
  • Karma: +5/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #36 on: April 11, 2023, 12:06:47 pm »
Anyone else's google foo better than mine?

Trying to track down:
Code: [Select]
3b. JAXB 2.1 (http://jaxb.java.net/2.1/JAXB2_20061211.jar,
    install it with java -jar JAXB2_20061211.jar)

I found a reference at https://trac.netlabs.org/java/ticket/6 , but cannot find it there. Perhaps dmik knows where it is stored?

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #37 on: April 11, 2023, 01:06:36 pm »
Meanwhile, openjdk doesn't want to find gcc... ERROR: The Compiler version is undefined.

I hacked some files and changed this from an ERROR to a WARNING....

It's doing *something* now....

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #38 on: April 11, 2023, 01:57:29 pm »
Anyone else's google foo better than mine?

Trying to track down:
Code: [Select]
3b. JAXB 2.1 (http://jaxb.java.net/2.1/JAXB2_20061211.jar,
    install it with java -jar JAXB2_20061211.jar)

I found a reference at https://trac.netlabs.org/java/ticket/6 , but cannot find it there. Perhaps dmik knows where it is stored?

I was trying to avoid pestering dmik but I've sent him an email.

Cheers,

Paul

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #39 on: April 11, 2023, 02:00:58 pm »
Will investigate tomorrow, but getting the following:
Code: [Select]
-jaxp_src-url-bundle:
     [echo] Downloading from http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip
      [get] Getting: http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip
      [get] To: U:\DEV\openjdk\openjdk\build\os2-i586\jaxp\drop\bundles\jaxp144_04.zip.temp
      [get] http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip permanently moved to https://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip
      [get] Error getting http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip to U:\DEV\openjdk\openjdk\build\os2-i586\jaxp\drop\bundles\jaxp144_04.zip.temp

BUILD FAILED
U:\DEV\openjdk\openjdk\build\os2-i586\jaxp\build\xml_generated\build-drop-jaxp_src.xml:96: javax.net.ssl.SSLException: Received fatal alert: protocol_version

Java SSL certs out of date?

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #40 on: April 11, 2023, 07:08:47 pm »
Anyone else's google foo better than mine?

Trying to track down:
Code: [Select]
3b. JAXB 2.1 (http://jaxb.java.net/2.1/JAXB2_20061211.jar,
    install it with java -jar JAXB2_20061211.jar)

I found a reference at https://trac.netlabs.org/java/ticket/6 , but cannot find it there. Perhaps dmik knows where it is stored?
I was trying to avoid pestering dmik but I've sent him an email.

Cheers,

Paul
Is this the same? http://www.java2s.com/Code/Jar/j/Downloadjaxbapi21jar.htm

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #41 on: April 11, 2023, 10:58:51 pm »
Anyone else's google foo better than mine?

Trying to track down:
Code: [Select]
3b. JAXB 2.1 (http://jaxb.java.net/2.1/JAXB2_20061211.jar,
    install it with java -jar JAXB2_20061211.jar)

I found a reference at https://trac.netlabs.org/java/ticket/6 , but cannot find it there. Perhaps dmik knows where it is stored?
I was trying to avoid pestering dmik but I've sent him an email.
Is this the same? http://www.java2s.com/Code/Jar/j/Downloadjaxbapi21jar.htm

I tried installing it and got:
Code: [Select]
Failed to load Main-Class manifest attribute from
jaxb-api-2.1.jar

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #42 on: April 11, 2023, 11:35:51 pm »
Will investigate tomorrow, but getting the following:
Code: [Select]
-jaxp_src-url-bundle:
     [echo] Downloading from http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip
      [get] Getting: http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip
      [get] To: U:\DEV\openjdk\openjdk\build\os2-i586\jaxp\drop\bundles\jaxp144_04.zip.temp
      [get] http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip permanently moved to https://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip
      [get] Error getting http://download.java.net/jaxp/openjdk/jdk6/jaxp144_04.zip to U:\DEV\openjdk\openjdk\build\os2-i586\jaxp\drop\bundles\jaxp144_04.zip.temp

BUILD FAILED
U:\DEV\openjdk\openjdk\build\os2-i586\jaxp\build\xml_generated\build-drop-jaxp_src.xml:96: javax.net.ssl.SSLException: Received fatal alert: protocol_version

Java SSL certs out of date?

Nope - seems to be jdk6 not supporting modern SSL protocols.....

edit: https://stackoverflow.com/questions/33364100/how-to-use-tls-1-2-in-java-6 might be the solution
« Last Edit: April 12, 2023, 01:00:52 am by Paul Smedley »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: Compiling OpenJDK
« Reply #43 on: April 12, 2023, 01:11:26 am »
Updated build - https://smedley.id.au/tmp/odin32-20230411.zip

I committed a bunch more changes to the gcc12 branch. There are still some warnings remaining, but I'm not sure how best to address them...

These never showed up at Github, gcc12 branch still only has the first 2 commits

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Compiling OpenJDK
« Reply #44 on: April 12, 2023, 03:32:14 am »
Updated build - https://smedley.id.au/tmp/odin32-20230411.zip

I committed a bunch more changes to the gcc12 branch. There are still some warnings remaining, but I'm not sure how best to address them...

These never showed up at Github, gcc12 branch still only has the first 2 commits

Apparenty you have to 'push' the changes :P sorry about that...