Giter Club home page Giter Club logo

obuildfactory's Introduction

OBuildFactory

Join the chat at https://gitter.im/hgomez/obuildfactory

OBuildFactory Logo

This GitHub project provides build scripts for OpenJDK 7, 8, 8+Lambda, 8+Jigsaw.

These scripts add goodies like :

  • ROOT CA generation, update and inclusion
  • FreeType build and embedding on platform where minimal requirements are not met.
  • Native packages support, aka Linux RPMs up to trusted Yum repository population.
  • OSX DMG for easy install via drag&drop.

You could use these scripts from a Jenkins Powered environment to setup a Continuous Integration chain or standalone for one shot builds.

Initialy planned for Linux, this project also include Mac OSX scripts from openjdk-osx-build

Documentation

Wiki

Linux

Build and packages are tested on CentOS 5, 6, Fedora 18, openSUSE 12.2 and Ubuntu 12.10 weekly on my home package factory (motorized by Jenkins). Binary packages will be uploaded to Bintray really soon on a weekly basis.

How to build and package OpenJDK 7 on Linux

How to build and package OpenJDK 8 on Linux

How to build and package OpenJDK 9 on Linux

### Yum repositories

Thanks to JFrog Bintray, OpenJDKs for Linux are available for major Linux distributions in yum repositories, install repositories like :

CentOS 5 32bits

curl -L https://bintray.com/hgomez/obuildfactory-centos5-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

CentOS 5 64bits

curl -L https://bintray.com/hgomez/obuildfactory-centos5-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

CentOS 6 32bits

curl -L https://bintray.com/hgomez/obuildfactory-centos6-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

CentOS 6 64bits

curl -L https://bintray.com/hgomez/obuildfactory-centos6-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 17/18 32bits

curl -L https://bintray.com/hgomez/obuildfactory-fedora18-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 17/18 64bits

curl -L https://bintray.com/hgomez/obuildfactory-fedora18-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 19 32bits

curl -L https://bintray.com/hgomez/obuildfactory-fedora19-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 19 64bits

curl -L https://bintray.com/hgomez/obuildfactory-fedora19-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 20 32bits

curl -L https://bintray.com/hgomez/obuildfactory-fedora20-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 20 64bits

curl -L https://bintray.com/hgomez/obuildfactory-fedora20-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

openSUSE 12.x 32bits

curl -L https://bintray.com/hgomez/obuildfactory-opensuse122-i386/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/zypp/repos.d/

openSUSE 12.x 64bits

curl -L  https://bintray.com/hgomez/obuildfactory-opensuse122-x86-64/rpm -o bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/zypp/repos.d/

Then you could install rpm like this :

# install openjdk8 lambda on CentOS/Fedora 32bits
sudo yum install jdk-1.8.0-lambda-openjdk-i686
# install openjdk8 on CentOS/Fedora 64bits
sudo yum install jdk-1.8.0-openjdk-x86_64
# install openjdk7 on SLES/openSUSE 64bits
sudo zypper install jdk-1.7.0-openjdk-x86_64

And then update then with yum/zypper :

# update obuildfactory package on CentOS/Fedora
sudo yum update
# update obuildfactory package on SLES/openSUSE
sudo zypper update

OSX

There is some wiki pages who detailed how to build, but there is no guaranty about success. I don't have OSX machines anymore so I cannot help anymore on this OS

Building and packaging OpenJDK7 for OSX

Building and packaging OpenJDK8 for OSX

Building and packaging OpenJDK9 for OSX

Licence

These scripts are provided under Apache Software Licence 2.0.

obuildfactory's People

Contributors

andcoope avatar clevertension avatar gagern avatar ggtools avatar gitter-badger avatar hgomez avatar jeffmaury avatar jirutka avatar loganbruns avatar matthiasblaesing avatar mkorszun avatar unix-junkie avatar vorburger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

obuildfactory's Issues

fastdebug build errors out with a `no such file or directoy` error under OS/X

Henri,
I know you don't run OS/X any more and cannot support the OS/X side of things, but you might be able to provide a hint as to the source of this error:

########################################################################
##### Entering install for target(s) binaries-jdk-debug            #####
########################################################################

(cd  ./install/make/installer/binaries/macosx && \
    make binaries-jdk-debug JDK_TOPDIR=/Users/mathias/Documents/forks/openjdkathome/sources/openjdk7/jdk JDK_MAKE_SHARED_DIR=/Users/mathias/Documents/forks/openjdkathome/sources/openjdk7/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=u14-b22 BUILD_NUMBER=20130429 JDK_BUILD_NUMBER=20130429 FULL_VERSION=1.7.0-u14-b22-fastdebug-20130429 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=64 VARIANT=DBG FASTDEBUG=true DEBUG_CLASSFILES=true COOKED_BUILD_NUMBER=20130429 ALT_OUTPUTDIR=/Users/mathias/Documents/forks/openjdkathome/sources/openjdk7/build/macosx-x86_64/../macosx-x86_64-fastdebug ALT_RTPATCH_DIR= ALT_BASE_IMAGE_ZIP= ALT_BASE_IMAGE_DIR= ALT_NEW_IMAGE_DIR= ALT_BUNDLE_DATE=29_apr_2013 INSTALL_DEBUG_NAME=fastdebug ALT_LANGTOOLS_DIST=/Users/mathias/Documents/forks/openjdkathome/sources/openjdk7/build/macosx-x86_64/../macosx-x86_64-fastdebug/langtools/dist)
/bin/sh: line 0: cd: ./install/make/installer/binaries/macosx: No such file or directory
make[2]: *** [install-binaries-jdk-debug] Error 1
make[1]: *** [generic_debug_build] Error 2
make: *** [build_fastdebug_image] Error 2

Normal builds work fine for me under Mountain Lion, but for some reason the build process cannot find the ./install/make/installer/binaries/macosx directory if I enable the XDEBUG=true flag. Looking at the directory structure underneath my openjdkathome dir I can't see what it is actually trying to access.

Do you have any idea on what could be going on?

freetype internal can't find during build OpenJDK7 on MacOS EL Capitan

I use these instructions to build OpenJDK7 with Mac OS EL Capitan and XCode 7.2.1 line tools.

But it occur some errors when build:

rm -f /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/cache/*
rmdir /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/cache
rm -f /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/internal/*
rmdir /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/internal
rmdir: /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/internal: No such file or directory
make: [install] Error 1 (ignored)
/usr/bin/install -c -m 644 ./builds/unix/ft2unix.h \
          /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/ft2build.h
/usr/bin/install -c -m 644 ./builds/unix/ftconfig.h                        \
          /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/config/ftconfig.h
/usr/bin/install -c -m 644 /Users/haolin/Envir/myjdk/freetype-2.4.10/objs/ftmodule.h                          \
          /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/config/ftmodule.h
/usr/bin/install -c -m 755 ./builds/unix/freetype-config \
          /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/bin/freetype-config
/usr/bin/install -c -m 644 ./builds/unix/freetype2.m4 \
          /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/share/aclocal/freetype2.m4
/usr/bin/install -c -m 644 ./builds/unix/freetype2.pc \
          /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/lib/pkgconfig/freetype2.pc
cp: /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/lib/libfreetype.dylib and /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/lib/libfreetype.6.dylib are identical (not copied).

It's sure that the directory /Users/haolin/Envir/myjdk/OBF_DROP_DIR/freetype/include/freetype2/freetype/internal doesn't exist?

Could some help me? I want to build fast-debug openjdk7 for learning.

Thanks & Regards.

Not able to build on Ubuntu 14.04

Hi,

I tried to build in a fresh docker container with ubuntu:14.04 image according to https://github.com/hgomez/obuildfactory/wiki/How-to-build-and-package-OpenJDK-8-on-Linux, but got stuck on libfreetype6-dev not being recognized. I have also got to the same error trying to build in a debootstrap environment according to http://blog2.vorburger.ch/2014/06/build-your-own-jdk-at-home.html .

sudo apt-get update
sudo apt-get install git mercurial zip bzip2 unzip tar curl
sudo apt-get install ccache make gcc g++ ca-certificates ca-certificates-java
sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev
sudo apt-get install libasound2-dev libcups2-dev libfreetype6-dev
sudo apt-get install build-essential ruby ruby-dev
sudo apt-get install openjdk-7-jdk
sudo gem install fpm
mkdir ~/openjdkathome
cd ~/openjdkathome
git clone https://github.com/hgomez/obuildfactory.git

#  the above commands did their work, then:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
XUSE_NEW_BUILD_SYSTEM=true XBUILD=true ./obuildfactory/openjdk8/linux/standalone-job.sh
.....
.....
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
configure: error: Could not find freetype! You might be able to fix this by running 'sudo apt-get install libfreetype6-dev'.
configure exiting with result code 1
make: *** No rule to make target `images'.  Stop.
can't find java into JDK /root/openjdkathome/sources/openjdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image, build failed

Provides section

Hi there, great project, so it seems. Just one thing I am wondering though: any reason why the Provides are not set? Say I have a package which depends on java-runtime-headless, if I install openjdk from the result of the build of this project:

root@647262d44332:/tmp# grep-status -FProvides,Package -sPackage,Provides,Status java-runtime-headless
root@647262d44332:/tmp#

Installing openjdk-8-jdk from openjdk-r/ppa, the same command:

root@647262d44332:/tmp# grep-status -FProvides,Package -sPackage,Provides,Status java-runtime-headless
Package: openjdk-8-jre-headless
Provides: java-runtime-headless, java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless
Status: install ok installed

Integration with update-java-alternatives

It would be really nice if the deb would behave more like the existing openjdk packages in the standard repos with respect to update-java-alternatives and setting defaults. Is there any interest in making this happen or is this intentionally not done?

Have better font rendering on Linux

Font rendering on Linux JDK is not good and can be improved using a patch that can be found here https://gist.github.com/trustin/2893461. This patch is for OpenJdk7.

There is one guy that is building OpenJdk with this patch. But it's old and don't seem to be maintained: https://launchpad.net/~no1wantdthisname/+archive/openjdk-fontfix. Here is an article that speaks on it http://www.webupd8.org/2013/06/install-openjdk-patched-with-font-fixes.html.

I have attached two screenshots that I did using the OpenJdk built with the obuildfactory/openjdk7/linux/standalone-job.sh script. I compiled two versions of the OpenJdk7, one without any modification and one with the patch. The version that I made is 1.7.0-u60-b03.
In order to take advantage of the new font rendering you need to set the following JVM options:

  • -Dawt.useSystemAAFontSettings=lcd
  • -Dsun.java2d.xrender=true

Based on that I ran NetBeans with the following command line:

/bin/sh "~/java/netbeans/bin/netbeans" --laf Nimbus -J-Dswing.aatext=true \
-J-Dawt.useSystemAAFontSettings=lcd -J-Dsun.java2d.xrender=true \
--jdkhome ~/java/openjdk7-u60-b03-fontfix

And I took some screenshots.
We can see clearly the difference. Fonts are drawn more precisely and are easier to read. To see the differences you can either save the images or see them one by one in Firefox. Chrome does not help to see the differences easily.

with openjdk7-u60_part
Netbeans with openjdk7-u60

with openjdk7-u60-fontfix_part
Netbeans with openjdk7-u60 and the Font-fix patch applied

Could it be possible to integrate this patch to your build?

Full screenshots

with openjdk7-u60
Netbeans with openjdk7-u60

with openjdk7-u60-fontfix
Netbeans with openjdk7-u60 and the Font-fix patch applied

Add Rhino Javascript engine installation steps

Rhino Javascript engine does not come with OpenJDK, but some projects, such as Ant, require the JDK used to have it installed as seen here. Any chance of adding steps to add Rhino to the built JDK for OSX?

JavaFX moved output directory

Hey, I build openjdk8-javafx today and the javafx files are not correctly copied - the linux-sdk directory was changed to sdk:

diff --git a/openjdk8-javafx/linux/build.sh b/openjdk8-javafx/linux/build.sh
index 26903c2..681c572 100755
--- a/openjdk8-javafx/linux/build.sh
+++ b/openjdk8-javafx/linux/build.sh
@@ -313,11 +313,11 @@ function buildJFX()
     # Overriding jdkRuntimeVersion is a hack here, but the openjfx build expects the format to end with the Buildnumber -bXXXX
     # when openjdk is build with an additional build number this fails
     $GRADLE -PBUILD_NATIVES=true -PCOMPILE_WEBKIT=true -PCOMPILE_MEDIA=true -PjdkRuntimeVersion=1.8.0-b140
-    cp -rv build/linux-sdk/bin/* $IMAGE_BUILD_DIR/j2sdk-image/bin
-    cp -rv build/linux-sdk/lib/* $IMAGE_BUILD_DIR/j2sdk-image/lib
-    cp -rv build/linux-sdk/man/* $IMAGE_BUILD_DIR/j2sdk-image/man
-    cp -rv build/linux-sdk/rt/* $IMAGE_BUILD_DIR/j2sdk-image/jre
-    cp -rv build/linux-sdk/rt/* $IMAGE_BUILD_DIR/j2re-image
+    cp -rv build/sdk/bin/* $IMAGE_BUILD_DIR/j2sdk-image/bin
+    cp -rv build/sdk/lib/* $IMAGE_BUILD_DIR/j2sdk-image/lib
+    cp -rv build/sdk/man/* $IMAGE_BUILD_DIR/j2sdk-image/man
+    cp -rv build/sdk/rt/* $IMAGE_BUILD_DIR/j2sdk-image/jre
+    cp -rv build/sdk/rt/* $IMAGE_BUILD_DIR/j2re-image
     cd $DIR
     export PATH=$ORIG_PATH
     export JAVA_HOME=$ORIG_JAVA_HOME

OpenJDK 7 building fails to build on mountain lion (10.8.2)

error message is"

make[4]: *** [/Users/liuxinhua/openjdk_home/sources/openjdk7/build/macosx-x86_64/JObjC.build/JObjC.jar] Error 1
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [jdk-build] Error 2
make: *** [build_product_image] Error 2
can't find java into JDK /Users/liuxinhua/openjdk_home/sources/openjdk7/build/macosx-x86_64/j2sdk-image, build failed
liudeMacBook-Pro:openjdk_home liuxinhua$ /Users/liuxinhua/openjdk_home/sources/openjdk7/build/macosx-x86_64/JObjC.build/JObjC.jar

I see the "/Users/liuxinhua/openjdk_home/sources/openjdk7/build/macosx-x86_64/JObjC.build/" not JObjC.jar ,and see the folder bin & src

OpenJDK 7 fails to build on mountain lion (10.8.2)

I have the latest XCode (4.6) and command line tools. Any pointers how to fix the build?

Here is the point were it fails:

 [exec] === BUILD NATIVE TARGET build-core-native OF PROJECT JObjC WITH CONFIGURATION Debug ===
 [exec] Check dependencies
 [exec] 
 [exec] CompileC /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.o src/core/native/SEL.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
 [exec]     cd /Users/egisj/dev/jdk7/sources/openjdk7/jdk/src/macosx/native/jobjc
 [exec]     setenv LANG en_US.US-ASCII
 [exec]     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fobjc-gc -Wno-trigraphs -fpascal-strings -Os -Werror -Werror-implicit-function-declaration -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/JObjC.hmap -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Debug/include -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Debug/src/jni_headers/core -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.build/src/jni_headers/core -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/DerivedSources/i386 -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -Wformat -Wformat-security -Wcast-align -Wwrite-strings -Wuninitialized -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wpointer-arith -Wall -F/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Debug -F/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks -MMD -MT dependencies -MF /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.d --serialize-diagnostics /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.dia -c /Users/egisj/dev/jdk7/sources/openjdk7/jdk/src/macosx/native/jobjc/src/core/native/SEL.m -o /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.o
 [exec] ** BUILD FAILED **
 [exec] 
 [exec] 
 [exec] The following build commands failed:
 [exec]     CompileC /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.o src/core/native/SEL.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
 [exec]     CompileC /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.o src/core/native/SEL.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
 [exec] (2 failures)
 [exec] /Users/egisj/dev/jdk7/sources/openjdk7/jdk/src/macosx/native/jobjc/src/core/native/SEL.m:37:12: error: cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead [-Werror,-Wcast-of-sel-type]
 [exec]     return ptr_to_jlong(sel);
 [exec]            ^~~~~~~~~~~~~~~~~
 [exec] /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Headers/JNFJNI.h:42:44: note: expanded from macro 'ptr_to_jlong'
 [exec] #define ptr_to_jlong(a) ((jlong)(uintptr_t)(a))
 [exec]                                            ^~~
 [exec] 1 error generated.
 [exec] 
 [exec] CompileC /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.o src/core/native/SEL.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
 [exec]     cd /Users/egisj/dev/jdk7/sources/openjdk7/jdk/src/macosx/native/jobjc
 [exec]     setenv LANG en_US.US-ASCII
 [exec]     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fobjc-gc -Wno-trigraphs -fpascal-strings -Os -Werror -Werror-implicit-function-declaration -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/JObjC.hmap -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Debug/include -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Debug/src/jni_headers/core -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.build/src/jni_headers/core -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/DerivedSources/x86_64 -I/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -Wformat -Wformat-security -Wcast-align -Wwrite-strings -Wuninitialized -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wpointer-arith -Wall -F/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Debug -F/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks -MMD -MT dependencies -MF /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.d --serialize-diagnostics /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.dia -c /Users/egisj/dev/jdk7/sources/openjdk7/jdk/src/macosx/native/jobjc/src/core/native/SEL.m -o /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.o
 [exec] /Users/egisj/dev/jdk7/sources/openjdk7/jdk/src/macosx/native/jobjc/src/core/native/SEL.m:37:12: error: cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead [-Werror,-Wcast-of-sel-type]
 [exec]     return ptr_to_jlong(sel);
 [exec]            ^~~~~~~~~~~~~~~~~
 [exec] /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Headers/JNFJNI.h:42:44: note: expanded from macro 'ptr_to_jlong'
 [exec] #define ptr_to_jlong(a) ((jlong)(uintptr_t)(a))
 [exec]                                            ^~~
 [exec] 1 error generated.
 [exec] 
 [exec] 

BUILD FAILED
/Users/egisj/dev/jdk7/sources/openjdk7/jdk/src/macosx/native/jobjc/build.xml:158: exec returned: 65
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 6 seconds
make[4]: *** [/Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/JObjC.build/JObjC.jar] Error 1
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [jdk-build] Error 2
make: *** [build_product_image] Error 2
can't find java into JDK /Users/egisj/dev/jdk7/sources/openjdk7/build/macosx-x86_64/j2sdk-image, build failed

Limit size of the build

I have been using in the past my own script for jdk7 and recently switched to obuildfactory. I have noticed quite big difference in size of this directory:

Old build system for jdk7 with my own script:
19M ./jre/lib/amd64

New build system with obuildfactory:
118M ./jre/lib/amd64

Any idea why this differs so much and is it possible to limit size of this directory?

RPM issue

Hello, it seems that the .rpm tool is adding this path on installation "/opt/obuildfactory/jdk-1.9.0-openjdk-x86_64/" and maybe it should have been something like this "/usr/lib/jvm/openjdk-9" - "/usr/lib64/jvm/openjdk-9", since you can't modify the path of the .rpm installation. I tried adding --prefix before installation, but it only adds an additionl path before "/opt/...". Another possibility would have been to only have the path without "/opt/obuildfactory/" and then when using rpm -i -prefix=/usr/lib/jvm it would install in the right place. Also, this kind of approach would add more weight on the end user.

OpenJDK 7 build fails on OS X

I am following the instructions https://github.com/hgomez/obuildfactory/wiki/Building-and-Packaging-OpenJDK7-for-OSX

My system is OS X El Capitain, Version 10.11.5 (15F34).

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

When I run XBUILD=true ./obuildfactory/openjdk7/macosx/standalone-job.sh then I eventually end up with this error output:

llvm-g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/prims -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/precompiled -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/cpu/x86/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/os_cpu/bsd_x86/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/os/bsd/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/os/posix/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc -I../generated -DASSERT -fsanitize=address -fno-omit-frame-pointer -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -Werror -g -c -o ../generated/adfiles/forms.o /Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/forms.cpp 
llvm-g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/prims -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/precompiled -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/cpu/x86/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/os_cpu/bsd_x86/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/os/bsd/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/os/posix/vm -I/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc -I../generated -DASSERT -fsanitize=address -fno-omit-frame-pointer -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -Werror -g -c -o ../generated/adfiles/formsopt.o /Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/formsopt.cpp 
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/filebuff.cpp:109:8: error: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to
      true [-Werror,-Wundefined-bool-conversion]
  if( !this ) return NULL;      // The empty buffer region
      ~^~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/filebuff.cpp:122:8: error: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to
      true [-Werror,-Wundefined-bool-conversion]
  if( !this ) return br;        // Merging into nothing
      ~^~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/archDesc.cpp:335:35: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
    if ( instr->is_ideal_branch() && instr->label_position() == -1 ||
         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/filebuff.cpp:228:8: error: reference cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be
      assumed to always evaluate to false [-Werror,-Wtautological-undefined-compare]
  if( &br == NULL ) return os;  // The empty buffer region
       ^~    ~~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/filebuff.cpp:244:8: error: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to
      true [-Werror,-Wundefined-bool-conversion]
  if( !this ) return;           // Nothing to print
      ~^~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/archDesc.cpp:335:35: note: place parentheses around the '&&' expression to silence this warning
    if ( instr->is_ideal_branch() && instr->label_position() == -1 ||
                                  ^
         (                                                        )
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/archDesc.cpp:336:35: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
        !instr->is_ideal_branch() && instr->label_position() != -1) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/archDesc.cpp:336:35: note: place parentheses around the '&&' expression to silence this warning
        !instr->is_ideal_branch() && instr->label_position() != -1) {
                                  ^
        (                                                         )
4 errors generated.
2 errors generated.
make[8]: *** [../generated/adfiles/filebuff.o] Error 1
make[8]: *** Waiting for unfinished jobs....
make[8]: *** [../generated/adfiles/archDesc.o] Error 1
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3217:71: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
    if ( ((primary = get_ident_or_literal_constant("primary opcode")) == NULL) ) {
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3217:71: note: remove extraneous parentheses around the comparison to silence this warning
    if ( ((primary = get_ident_or_literal_constant("primary opcode")) == NULL) ) {
         ~                                                            ^      ~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3217:71: note: use '=' to turn this equality comparison into an assignment
    if ( ((primary = get_ident_or_literal_constant("primary opcode")) == NULL) ) {
                                                                      ^~
                                                                      =
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3226:77: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
      if ( ((secondary = get_ident_or_literal_constant("secondary opcode")) == NULL) ) {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3226:77: note: remove extraneous parentheses around the comparison to silence this warning
      if ( ((secondary = get_ident_or_literal_constant("secondary opcode")) == NULL) ) {
           ~                                                                ^      ~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3226:77: note: use '=' to turn this equality comparison into an assignment
      if ( ((secondary = get_ident_or_literal_constant("secondary opcode")) == NULL) ) {
                                                                            ^~
                                                                            =
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3235:77: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
        if ( ((tertiary = get_ident_or_literal_constant("tertiary opcode")) == NULL) ) {
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3235:77: note: remove extraneous parentheses around the comparison to silence this warning
        if ( ((tertiary = get_ident_or_literal_constant("tertiary opcode")) == NULL) ) {
             ~                                                              ^      ~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:3235:77: note: use '=' to turn this equality comparison into an assignment
        if ( ((tertiary = get_ident_or_literal_constant("tertiary opcode")) == NULL) ) {
                                                                            ^~
                                                                            =
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:4476:21: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
  while ((c >= '0') && (c <= '9')
         ~~~~~~~~~~~^~~~~~~~~~~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:4476:21: note: place parentheses around the '&&' expression to silence this warning
  while ((c >= '0') && (c <= '9')
                    ^
         (                       )
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:4515:17: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
    if( (second == '=') ) {
         ~~~~~~~^~~~~~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:4515:17: note: remove extraneous parentheses around the comparison to silence this warning
    if( (second == '=') ) {
        ~       ^     ~
/Users/aretter/code/openjdkathome/sources/openjdk7/hotspot/src/share/vm/adlc/adlparse.cpp:4515:17: note: use '=' to turn this equality comparison into an assignment
    if( (second == '=') ) {
                ^~
                =
5 errors generated.
make[8]: *** [../generated/adfiles/adlparse.o] Error 1
make[7]: *** [ad_stuff] Error 2
make[6]: *** [product] Error 2
make[5]: *** [generic_build2] Error 2
make[4]: *** [product] Error 2
make[3]: *** [all_product_universal] Error 2
make[2]: *** [universal_product] Error 2
make[1]: *** [hotspot-build] Error 2
make: *** [build_product_image] Error 2

Feature Request: JDK11 support

Any chance for JDK11 support?

Looking for linux/macOS support as well but will settle for simply CENTOS first.

Willing to help if someone has even started this work, just I'm brand new to this and not sure where to even start.

Better font rendering / Fix problems non-latin hotkeys in gui java applications

Better font rendering for java:

Simple javaagent to fix problems in linux with non latin hotkeys in gui java applications:

Build fails complaining that SPEC and CONF cannot be used at the same time

I'm trying to run the build on Mac OS X 10.10 with the following command:
sudo XCLEAN=true XUSE_NEW_BUILD_SYSTEM=true XBUILD=true ./obuildfactory/openjdk8/macosx/standalone-job.sh

However the build is not able to continue due to the following exception. Any clues as to why this is happening?

The output I'm seeing is this:

====================================================
A new configuration has been successfully created in
/Users/myuser/openjdkathome/sources/openjdk8/common/makefiles
using configure arguments '--with-boot-jdk=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home --with-cacerts-file=/Users/myuser/openjdkathome/OBF_DROP_DIR/cacerts --with-ccache-dir=/Users/myuser/openjdkathome/.ccache'.

Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64

Tools summary:
* Boot JDK:       java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)  (at /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home)
* C Compiler:     gcc-4.9 (Homebrew gcc 4.9.1) version 4.9.1 (at /usr/local/Cellar/gcc/4.9.1/bin/gcc-4.9)
* C++ Compiler:   g++-4.9 (Homebrew gcc 4.9.1) version 4.9.1 (at /usr/local/Cellar/gcc/4.9.1/bin/g++-4.9)

Build performance summary:
* Cores to use:   2
* Memory limit:   8192 MB
* ccache status:  installed and in use

Cannot use CONF=macosx-x86_64-normal-server-release and SPEC=/Users/myuser/openjdkathome/sources/openjdk8/common/makefiles/spec.gmk at the same time. Choose one.
/Users/myuser/openjdkathome/sources/openjdk8/Makefile:55: *** Cannot continue.  Stop.

Does not build on Arch Linux

Running javah:

/Application/Binaries/jdk/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -Xmx512m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m "-Xbootclasspath/p:/run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/langtools/dist/bootstrap/lib/javah.jar:/run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/langtools/dist/bootstrap/lib/javac.jar" -jar /run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/langtools/dist/bootstrap/lib/javah.jar -bootclasspath "/run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/classes" -d /run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/tmp/sun/java.net/net/CClassHeaders/
java.net.Socket java.net.SocketOptions java.net.SocketImpl java.net.AbstractPlainSocketImpl java.net.PlainSocketImpl java.net.ServerSocket java.net.InetAddress java.net.Inet4Address java.net.Inet6Address java.net.InetAddressImpl java.net.Inet4AddressImpl java.net.Inet6AddressImpl java.net.NetworkInterface java.net.SocketInputStream java.net.SocketOutputStream java.net.DefaultDatagramSocketImplFactory java.net.DatagramPacket java.net.DatagramSocket java.net.DatagramSocketImpl java.net.AbstractPlainDatagramSocketImpl java.net.MulticastSocket java.net.UnknownHostException java.net.ProtocolException sun.net.spi.DefaultProxySelector java.net.PlainDatagramSocketImpl java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
Error: Could not find class file for 'java.net.InetAddressImplFactory'.
/run/shm/openjdkathome/sources/openjdk7/jdk/make/common/Rules.gmk:320: recipe for target '/run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/tmp/sun/java.net/net/obj64/.class.headers.amd64' failed
make[4]: *** [/run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/tmp/sun/java.net/net/obj64/.class.headers.amd64] Error 1
make[4]: Leaving directory '/run/shm/openjdkathome/sources/openjdk7/jdk/make/java/net'
Makefile:63: recipe for target 'all' failed
make[3]: *** [all] Error 1
make[3]: Leaving directory '/run/shm/openjdkathome/sources/openjdk7/jdk/make/java'
Makefile:253: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/run/shm/openjdkathome/sources/openjdk7/jdk/make'
make/jdk-rules.gmk:88: recipe for target 'jdk-build' failed
make[1]: *** [jdk-build] Error 2
make[1]: Leaving directory '/run/shm/openjdkathome/sources/openjdk7'
Makefile:251: recipe for target 'build_product_image' failed
make: *** [build_product_image] Error 2
can't find java into JDK /run/shm/openjdkathome/sources/openjdk7/build/linux-amd64/j2sdk-image, build failed

configure fails for openjdk9 on MacOSX

XUSE_NEW_BUILD_SYSTEM=true XBUILD=true ./obuildfactory/openjdk9/macosx/standalone-job.sh

fails after building freetype with following errors:

### using new build system ###
WARNING: Calling the wrapper script directly is deprecated and unsupported.
Not all features of configure will be available.
Use the 'configure' script in the top-level directory instead.
Configure source code has been updated, checking time stamps
Running generated-configure.sh
configure: error: unrecognized options: --with-xcode-path
configure exiting with result code 1
Note: Command line contains non-control variables:
* DEBUG_BINARIES=false
Make sure it is not mistyped, and that you intend to override this variable.
'make help' will list known control variables.

Error: No configurations found for /Users/cit/Projects/openjdk/openjdkathome/sources/openjdk9.
Please run 'bash configure' to create a configuration.

/Users/cit/Projects/openjdk/openjdkathome/sources/openjdk9/make/Init.gmk:124: *** Cannot continue.  Stop.
can't find java into JDK /Users/cit/Projects/openjdk/openjdkathome/sources/openjdk9/build/x86_64/images/jdk/bin, build failed

Incorrect path

I'm not getting very far with this:
Xcode Developer path does not exist: /Application/Xcode.app/Contents/Developer
Now, Xcode and command line utils are installed and the path correctly set but note the missing s in Application the path in the exception.

Not able to build 8u25 on Ubuntu 14.04

My build command:

XUSE_NEW_BUILD_SYSTEM=true XBUILD=true XUSE_TAG=jdk8-b25 XUSE_JFX_TAG=8u25-b18 XGRADLE=~/gradle-2.2.1/bin/gradle ./obuildfactory/openjdk8-javafx/linux/standalone-job.sh

The end of the build output:

Calculated MILESTONE=jdk8-b25, BUILD_NUMBER=b25
### using new build system ###
bash: /home/ubuntu/openjdkathome/sources/openjdk8-javafx/common/autoconf/configure: No such file or directory
make: *** No rule to make target `images'.  Stop.
can't find java into JDK /home/ubuntu/openjdkathome/sources/openjdk8-javafx/build/linux-x86_64-normal-server-release/images/j2sdk-image, build failed

A fatal error has been detected by the Java Runtime Environment on intel Quark Soc based board.

Dear Sir/madam;
I have been compile the openJDK 9 from my Host PC (i686 platform) then i have load the compile JDK on my intel x1000 based board. i will try to run the java binary and it will give below error.
root@quark:/mnt/jdk/bin# ./java

A fatal error has been detected by the Java Runtime Environment:

SIGILL (0x4) at pc=0xb67e731b, pid=1201, tid=1202

JRE version: (9.0) (build )

Java VM: OpenJDK Server VM (9-internal+0-adhoc.root.openjdk9, mixed mode, tiered, serial gc, linux-x86)

Problematic frame:

C [libjimage.so+0x431b] [error occurred during error reporting (printing problematic frame), id 0x4]

Core dump will be written. Default location: /mnt/jdk/bin/core.1201

An error report file with more information is saved as:

/mnt/jdk/bin/hs_err_pid1201.log

If you would like to submit a bug report, please visit:

http://bugreport.java.com/bugreport/crash.jsp

Aborted (core dumped)
root@quark:/mnt/jdk/bin#

Please find attached crash.jsp
crash.jsp.zip

.

Fastdebug build broken ?

On CentOS 6.4, I can't get fastdebug build to work (it works fine without XDEBUG=true):

$ XUSE_NEW_BUILD_SYSTEM=true XCLEAN=true XBUILD=true XDEBUG=true ~/obuildfactory/openjdk8/linux/standalone-job.sh
# Repositories:  . ./corba ./hotspot ./jaxp ./jaxws ./jdk ./langtools ./nashorn 

                    .:   cd . && hg pull -u
              ./corba:   cd ./corba && hg pull -u
            ./hotspot:   cd ./hotspot && hg pull -u
               ./jaxp:   cd ./jaxp && hg pull -u
                ./jdk:   cd ./jdk && hg pull -u
              ./jaxws:   cd ./jaxws && hg pull -u
          ./langtools:   cd ./langtools && hg pull -u
            ./nashorn:   cd ./nashorn && hg pull -u
              ./corba:   pulling from http://hg.openjdk.java.net/jdk8/jdk8/corba
                    .:   pulling from http://hg.openjdk.java.net/jdk8/jdk8
              ./jaxws:   pulling from http://hg.openjdk.java.net/jdk8/jdk8/jaxws
            ./nashorn:   pulling from http://hg.openjdk.java.net/jdk8/jdk8/nashorn
          ./langtools:   pulling from http://hg.openjdk.java.net/jdk8/jdk8/langtools
               ./jaxp:   pulling from http://hg.openjdk.java.net/jdk8/jdk8/jaxp
              ./corba:   searching for changes
              ./corba:   no changes found
                    .:   searching for changes
                    .:   no changes found
              ./jaxws:   searching for changes
              ./jaxws:   no changes found
                ./jdk:   pulling from http://hg.openjdk.java.net/jdk8/jdk8/jdk
            ./hotspot:   pulling from http://hg.openjdk.java.net/jdk8/jdk8/hotspot
          ./langtools:   searching for changes
          ./langtools:   no changes found
               ./jaxp:   searching for changes
               ./jaxp:   no changes found
            ./nashorn:   searching for changes
            ./nashorn:   no changes found
            ./hotspot:   searching for changes
            ./hotspot:   no changes found
                ./jdk:   searching for changes
                ./jdk:   no changes found
Waiting 5 secs before spawning next background command.
Calculated MILESTONE=jdk8-b132, BUILD_NUMBER=b132
### using new build system ###
Running generated-configure.sh
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  
configure: Configuration created at Mon Mar 31 18:43:27 CEST 2014.
configure: configure script generated at timestamp 1389186094.
checking for basename... /bin/basename
checking for bash... /bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cpio... /bin/cpio
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /usr/bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /bin/mktemp
checking for mv... /bin/mv
checking for printf... /usr/bin/printf
checking for rm... /bin/rm
checking for sh... /bin/sh
checking for sort... /bin/sort
checking for tail... /usr/bin/tail
checking for tar... /bin/tar
checking for tee... /usr/bin/tee
checking for touch... /bin/touch
checking for tr... /usr/bin/tr
checking for uname... /bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for a sed that does not truncate output... /bin/sed
checking for nawk... no
checking for gawk... /usr/bin/gawk
checking for cygpath... no
checking for readlink... /usr/bin/readlink
checking for df... /bin/df
checking for SetFile... no
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh /home/jnicoulaud/openjdkathome/sources/openjdk8/common/autoconf/build-aux/config.sub   failed
configure exiting with result code 1
/home/jnicoulaud/openjdkathome/obuildfactory/openjdk8/linux/build.sh: line 230: --with-build-number=20140331: command not found
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `images'.  Stop.
can't find java into JDK /home/jnicoulaud/openjdkathome/sources/openjdk8/build/linux-x86_64-normal-server-fastdebug/images/j2sdk-image, build failed

Any idea ?

Problem with freetype internal headers during build OpenJDK7 on MacOS X

I use this instruction to build OpenJDK7 with Mac OS Yosemite and XCode 6.1.1 + command line tools.

During first build I got

rmdir: /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/include/freetype2/freetype/internal: No such file or directory
make: [install] Error 1 (ignored)
/usr/bin/install -c -m 644 ./builds/unix/ft2unix.h \
          /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/include/ft2build.h
/usr/bin/install -c -m 644 ./builds/unix/ftconfig.h                        \
          /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/include/freetype2/freetype/config/ftconfig.h
/usr/bin/install -c -m 644 /Users/dmitry/Projects/jdk/obuildfactory/freetype-2.4.10/objs/ftmodule.h                          \
          /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/include/freetype2/freetype/config/ftmodule.h
/usr/bin/install -c -m 755 ./builds/unix/freetype-config \
          /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/bin/freetype-config
/usr/bin/install -c -m 644 ./builds/unix/freetype2.m4 \
          /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/share/aclocal/freetype2.m4
/usr/bin/install -c -m 644 ./builds/unix/freetype2.pc \
          /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/lib/pkgconfig/freetype2.pc
cp: /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/lib/libfreetype.dylib and /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/lib/libfreetype.6.dylib are identical (not copied).

error and that's all.

Directory /Users/dmitry/Projects/jdk/obuildfactory/OBF_DROP_DIR/freetype/include/freetype2/freetype/internal doesn't exists, it's right.

If try build once more without any clean, I get

ERROR: The Compiler version is undefined. 

ERROR: FreeType version  2.3.0  or higher is required. 
 /bin/mkdir -p /Users/dmitry/Projects/jdk/obuildfactory/sources/openjdk7/build/macosx-x86_64/btbins
rm -f /Users/dmitry/Projects/jdk/obuildfactory/sources/openjdk7/build/macosx-x86_64/btbins/freetype_versioncheck
Failed to build freetypecheck.

OpenJDK 7 fails to build on macOS Mojava version 10.14.2 (18C54)

I followed the instructions here:

https://github.com/hgomez/obuildfactory/wiki/Building-and-Packaging-OpenJDK7-for-OSX

The gcc version:

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Xcode is Version 10.1 (10B61).

$ xcode-select --version
xcode-select version 2354.

The build invocation:

$ COMPILER_WARNINGS_FATAL=false JAVAC_WARNINGS_FATAL=false XBUILD=true ./obuildfactory/openjdk7/macosx/standalone-job.sh
...
FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    cc
  configuration directory     ./builds/unix
  configuration rules         ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `/Applications/Xcode.app/Contents/Developer/usr/bin/make' again to build the library,
or `/Applications/Xcode.app/Contents/Developer/usr/bin/make refdoc' to build the API reference (the latter needs python).

Generating modules list in ./objs/ftmodule.h...
* module: truetype  (Windows/Mac font files with extension *.ttf or *.ttc)
* module: type1     (Postscript font files with extension *.pfa or *.pfb)
* module: cff       (OpenType fonts with extension *.otf)
* module: cid       (Postscript CID-keyed fonts, no known extension)
* module: pfr       (PFR/TrueDoc font files with extension *.pfr)
* module: type42    (Type 42 font files with no known extension)
* module: winfnt    (Windows bitmap fonts with extension *.fnt or *.fon)
* module: pcf       (pcf bitmap fonts)
* module: bdf       (bdf bitmap fonts)
* module: sfnt      (helper module for TrueType & OpenType formats)
* module: autofit   (automatic hinting module)
* module: pshinter  (Postscript hinter module)
* module: raster    (monochrome bitmap renderer)
* module: smooth    (anti-aliased bitmap renderer)
* module: smooth    (anti-aliased bitmap renderer for LCDs)
* module: smooth    (anti-aliased bitmap renderer for vertical LCDs)
* module: otvalid   (OpenType validation module)
* module: psaux     (Postscript Type 1 & Type 2 helper module)
* module: psnames   (Postscript & Unicode Glyph name handling)
done.
cd builds/unix; ./configure  '--prefix=/Users/nels.nelson/Documents/code/openjdkathome/OBF_DROP_DIR/freetype' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch i386 -arch x86_64' 'LDFLAGS=-arch i386 -arch x86_64' 'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -Os -arch i386 -arch x86_64' '--disable-static' '--with-old-mac-fonts'
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking for gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in `/Users/nels.nelson/Documents/code/openjdkathome/freetype-2.4.10/builds/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [setup] Error 77

Java version mismatch when building JFX 8u122

I'm trying to build 8u122 but I get an error that the minimum version needs to be 1.8.0_40.
How do I fix this?

XUSE_NEW_BUILD_SYSTEM=true XBUILD=true XGRADLE=~/gradle-1.8/bin/gradle ./obuildfactory/openjdk8-javafx/linux/standalone-job.sh

Execution failed for task ':verifyJava'.

FAIL: java version mismatch: JDK version (1.8.0) < minimum version (1.8.0_40)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.543 secs

Build not working with XUSE_TAG if commit has multiple tags

For instance jdk8u40-b19 is set at commit ae4980d195b6 which is also tagged as jdk8u60-b00. During build, we got:

Calculated MILESTONE=jdk8u40-b19/jdk8u60-b00, BUILD_NUMBER=u40-b19/jdk8u60-b00

The milestone is passed to configure and this causes the build to fail later:

Generating sun/misc/Version.java
/bin/sed: -e expression #2, char 38: unknown option to `s'

Provide Debian / Ubuntu binary packages too

This is the only project I could find that packages openjdk 8.

However Debian packages are missing. Sorry if this is not the right place to ask for it. Any pointers would be appreciated.

Bring back 10.6 builds?

Part of the draw for using the pre-built OpenJDK builds was that I could use JDK 7 on OSX 10.6 (Since Oracle doesn't support it).

Now that the downloads are gone, and the build instructions require Lion or Mountain Lion, I cannot use JDK 7.

Would it be possible to publish instructions for building on 10.6?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.