Opened 10 years ago

Closed 9 years ago

#3 closed task (fixed)

Create build environment

Reported by: dmik Owned by:
Priority: blocker Milestone: Core
Component: general Version:
Severity: Keywords:


This ticket is to track the OpenJDK build environment setup.

Change History (8)

comment:1 Changed 10 years ago by dmik

The existing JDK (bootstrap JDK) is necessary to build OpenJDK. According to the README-builds.html file both in OpenJDK 6 and 7 this should be JDK 6 which is kind of a problem as there is no JDK 6 for OS/2...

I suppose the bootstrap JDK is necessary to compile the sources of the JDK written in Java which means that cross-compiling these sources on another platform (Linux, Windows) should help.

comment:2 Changed 10 years ago by dmik

Another problem is that the java build system relies on the Unix environment (sh, sed, awk, etc.) on all platforms including Windows. We will have to get these utilities for OS/2 as well.

comment:3 Changed 10 years ago by dmik

I've successfully built OpenJDK 6 on Windows (I must say it takes quite a while -- 6-7 hours here), so it's more or less clear how the build process works and what we need.

There is also a way to import parts of the build from another (earlier) build via ALT_JDK_IMPORT_PATH which I think we can use on OS/2 to take pre-built parts requiring Java 6 from the Windows build.

comment:4 Changed 10 years ago by ydario

For my build tests on openjdk, I have successfully used java 1.5.07 under os2. Somewhere documentation was reporting that also jdk5 was enough for bootstrap.

comment:5 Changed 9 years ago by abwillis

Most of the Unix environment should be available as it is used to build Mozilla. There is sh (I generally use ash but some use pdksh or bash), sed, awk, etc all used there. They should be in Smedley's environment as well.

comment:6 Changed 9 years ago by dmik

The README in the sources mentions JDK 6 with no alternatives. But that's fine, if ALT_JDK_IMPORT_PATH works as expected, we will take the parts from the Windows build once (for the first OS/2 release).

comment:7 Changed 9 years ago by dmik

The latest news:

  • All necessary tools (mainly taken from the MozTools set) are stored in /tools.
  • Freetype 2.3.11 (taken prebuilt from the Lucide's SVN) is added to SVN to /libs.
  • Definitions for the new "os2" platform are added to the JDK make files.

Running make sanity (this is a check that tests for all prerequisites) now completes w/o errors.

The next step is to add Odin SDK to SVN and to makefiles. Odin SDK will be stored in SVN pre-built as well.

comment:8 Changed 9 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

Actually, placing the pre-built version of Odin SDK to SVN is not a good idea because we will be most likely patching it quite frequently. Therefore, a separate checkout of will be necessary to build OpenJDK.

I prepared the convenient environment scripts for setting up the OpenJDK build environment and a simple README file describes what's necessary. This ticket may be considered complete now.

Note: See TracTickets for help on using tickets.