openjdk-8: add recipes for openjdk-8 and openjre-8
PATCH 1/1 openjdk-8: add recipes for openjdk-8 and openjre-8
This adds openjdk-8 for native and target builds and allows a stripped openjre-8 being built as well instead of trying to cherry-pick jre components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native, move the provides to openjdk-8-native (I think everyone agrees it's a better choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
--- README | 13 +- recipes-core/cacao/cacao_1.6.1.bb | 2 +- recipes-core/ecj/ecj-bootstrap-native.bb | 2 - recipes-core/openjdk/openjdk-8-common.inc | 231 ++ recipes-core/openjdk/openjdk-8-cross.inc | 199 ++ recipes-core/openjdk/openjdk-8-native.inc | 63 + recipes-core/openjdk/openjdk-8-native_72b05.bb | 16 + recipes-core/openjdk/openjdk-8-release-72b05.inc | 87 + recipes-core/openjdk/openjdk-8_72b05.bb | 36 + recipes-core/openjdk/openjre-8_72b05.bb | 30 + recipes-core/openjdk/patches-openjdk-8/LICENSE | 347 +++ .../dont-expect-fqpn-for-make.patch | 18 + .../filter-aclocal-copy-too.patch | 11 + recipes-core/openjdk/patches-openjdk-8/jvm.cfg | 41 + .../openjdk8-find-compiler-fix-env-respect.patch | 140 + .../openjdk8-fix-shark-build.patch | 453 ++++ .../openjdk8-fix-shark-stdc++11.patch | 2730 ++++++++++++++++++++ .../openjdk8-no-genx11-in-headless.patch | 17 + .../openjdk8-no-unused-deps.patch | 94 + ...o-in-favour-of-openembedded-package-split.patch | 120 + .../openjdk8-restrict-to-staging-dir.patch | 11 + ..._than_returning_address_of_local_variable.patch | 23 + .../remove-shell-variables-from-autoheader.patch | 31 + 23 files changed, 4703 insertions(+), 12 deletions(-) create mode 100644 recipes-core/openjdk/openjdk-8-common.inc create mode 100644 recipes-core/openjdk/openjdk-8-cross.inc create mode 100644 recipes-core/openjdk/openjdk-8-native.inc create mode 100644 recipes-core/openjdk/openjdk-8-native_72b05.bb create mode 100644 recipes-core/openjdk/openjdk-8-release-72b05.inc create mode 100644 recipes-core/openjdk/openjdk-8_72b05.bb create mode 100644 recipes-core/openjdk/openjre-8_72b05.bb create mode 100644 recipes-core/openjdk/patches-openjdk-8/LICENSE create mode 100644 recipes-core/openjdk/patches-openjdk-8/dont-expect-fqpn-for-make.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/filter-aclocal-copy-too.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/jvm.cfg create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-find-compiler-fix-env-respect.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-stdc++11.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-no-genx11-in-headless.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-no-unused-deps.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-prevent-debuginfo-in-favour-of-openembedded-package-split.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-restrict-to-staging-dir.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/remove-shell-variables-from-autoheader.patch
README +4 -9
@@ -52,15 +52,10 @@ Main layer maintainers: Usage instructions ------------------ -You should define at least the following variables in a distro include file or local.conf +Since there is a clear bootstrap of the individual java-recipes, there is +nothing to configure in conf/local.conf nor your individual distro/$name.conf. -PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" - -PREFERRED_PROVIDER_virtual/java-native = "jamvm-native" -PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native" - -#Sometimes the following is needed: -PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre" +Simply rely on openjdk-7-jre, openjdk-7, openjdk-8 or openjre-8. For conf/bblayers.conf you have to add
@@ -70,7 +65,7 @@ BBLAYERS ?= " \ path_to_source/sources/meta-java \ " -Please note that libstdc++ static is needed on your host to compile icedtea6/7-native +Please note that libstdc++ static is needed on your host to compile icedtea7-native (install libstdc++-static on a Fedora). For debian-based distributions you need the libstdc++6-$compilerversion-dev package.
recipes-core/cacao/cacao_1.6.1.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" SECTION = "interpreters" DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-native bdwgc-native" -PROVIDES_class-native = "virtual/java-native" +#PROVIDES_class-native = "virtual/java-native" DEPENDS_class-target = " virtual/javac-native "
recipes-core/ecj/ecj-bootstrap-native.bb +0 -2
@@ -14,8 +14,6 @@ PR = "r1" DEPENDS = "libecj-bootstrap-native cacao-native" -PROVIDES = "virtual/javac-native" - SRC_URI = "file://ecj.in" S = "${WORKDIR}"
recipes-core/openjdk/openjdk-8-common.inc new file +231 -0
231 lines not on this page · raw message
recipes-core/openjdk/openjdk-8-cross.inc new file +199 -0
199 lines not on this page · raw message
recipes-core/openjdk/openjdk-8-native.inc new file +63 -0
63 lines not on this page · raw message
recipes-core/openjdk/openjdk-8-native_72b05.bb new file +16 -0
@@ -0,0 +1,16 @@ +require openjdk-8-release-72b05.inc +require openjdk-8-native.inc + +PROVIDES = "virtual/java-native virtual/javac-native" + +inherit update-alternatives + +ALTERNATIVE_${PN} = "java javac" +ALTERNATIVE_LINK[java] = "${bindir}/java" +ALTERNATIVE_TARGET[java] = "${JDK_HOME}/bin/java" +ALTERNATIVE_PRIORITY[java] = "100" +ALTERNATIVE_LINK[javac] = "${bindir}/javac" +ALTERNATIVE_TARGET[javac] = "${JDK_HOME}/bin/javac" +ALTERNATIVE_PRIORITY[javac] = "100" + +# PR = "${INC_PR}.1"
recipes-core/openjdk/openjdk-8-release-72b05.inc new file +87 -0
87 lines not on this page · raw message
recipes-core/openjdk/openjdk-8_72b05.bb new file +36 -0
@@ -0,0 +1,36 @@ +require openjdk-8-release-72b05.inc +require openjdk-8-cross.inc + +# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch +# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html +# by Roman Kennke (rkennke at redhat.com) +PATCHES_URI_append = "\ + file://openjdk8-restrict-to-staging-dir.patch;apply=no \ + file://openjdk8-fix-shark-build.patch;apply=no \ + file://openjdk8-fix-shark-stdc++11.patch;apply=no \ + file://openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch;apply=no \ +" + +do_install() { + do_install_jdk +} + +PACKAGES_append = " \ + ${JDKPN}-demo-dbg \ + ${JDKPN}-demo \ + ${JDKPN}-source \ +" + +RPROVIDES_${JDKPN} = "java2-vm" +PROVIDES_${JDKPN} = "java2-vm" +RPROVIDES_${JDKPN} = "java2-runtime" +PROVIDES_${JDKPN} = "java2-runtime" + +inherit update-alternatives + +ALTERNATIVE_${PN} = "java" +ALTERNATIVE_LINK = "${bindir}/java" +ALTERNATIVE_TARGET = "${JDK_HOME}/bin/java" +ALTERNATIVE_PRIORITY = "100" + +# PR = "${INC_PR}.1"
recipes-core/openjdk/openjre-8_72b05.bb new file +30 -0
@@ -0,0 +1,30 @@ +require openjdk-8-release-72b05.inc +require openjdk-8-cross.inc + +# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch +# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html +# by Roman Kennke (rkennke at redhat.com) +PATCHES_URI_append = "\ + file://openjdk8-restrict-to-staging-dir.patch;apply=no \ + file://openjdk8-fix-shark-build.patch;apply=no \ + file://openjdk8-fix-shark-stdc++11.patch;apply=no \ + file://openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch;apply=no \ +" + +do_install() { + do_install_jre +} + +RPROVIDES_${JREPN} = "java2-vm" +PROVIDES_${JREPN} = "java2-vm" +RPROVIDES_${JREPN} = "java2-runtime" +PROVIDES_${JREPN} = "java2-runtime" + +inherit update-alternatives + +ALTERNATIVE_${PN} = "java" +ALTERNATIVE_LINK = "${bindir}/java" +ALTERNATIVE_TARGET = "${JRE_HOME}/bin/java" +ALTERNATIVE_PRIORITY = "100" + +# PR = "${INC_PR}.1"
recipes-core/openjdk/patches-openjdk-8/LICENSE new file +347 -0
347 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/dont-expect-fqpn-for-make.patch new file +18 -0
@@ -0,0 +1,18 @@ +--- common/autoconf/basics.m4.orig 2015-08-17 19:05:13.122672019 +0200 ++++ common/autoconf/basics.m4 2015-08-17 19:13:01.482673782 +0200 +@@ -549,10 +549,12 @@ + # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. + if test "x$MAKE" != x; then + # User has supplied a make, test it. +- if test ! -f "$MAKE"; then +- AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not found.]) ++ if test -a `dirname "$MAKE"` = "." -a ! -f "$MAKE"; then ++ AC_PATH_PROGS(CHECK_MAKE, $MAKE) ++ else ++ CHECK_MAKE="${MAKE}" + fi +- BASIC_CHECK_MAKE_VERSION("$MAKE", [user supplied MAKE=$MAKE]) ++ BASIC_CHECK_MAKE_VERSION("$CHECK_MAKE", [user supplied MAKE=$MAKE]) + if test "x$FOUND_MAKE" = x; then + AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.]) + fi
recipes-core/openjdk/patches-openjdk-8/filter-aclocal-copy-too.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- common/autoconf/basics.m4.orig 2015-08-17 18:31:50.598664481 +0200 ++++ common/autoconf/basics.m4 2015-08-17 18:31:57.554664507 +0200 +@@ -442,7 +442,7 @@ + files_present=`$LS $OUTPUT_ROOT` + # Configure has already touched config.log and confdefs.h in the current dir when this check + # is performed. +- filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ ++ filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's,aclocal-copy,,g' -e 's/ //g' \ + | $TR -d '\n'` + if test "x$filtered_files" != x; then + AC_MSG_NOTICE([Current directory is $CURDIR.])
recipes-core/openjdk/patches-openjdk-8/jvm.cfg new file +41 -0
41 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-find-compiler-fix-env-respect.patch new file +140 -0
140 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build.patch new file +453 -0
453 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-stdc++11.patch new file +2730 -0
1,286 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-no-genx11-in-headless.patch new file +17 -0
Lines of this file are not shown. View the raw message.
recipes-core/openjdk/patches-openjdk-8/openjdk8-no-unused-deps.patch new file +94 -0
94 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-prevent-debuginfo-in-favour-of-openembedded-package-split.patch new file +120 -0
120 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-restrict-to-staging-dir.patch new file +11 -0
Lines of this file are not shown. View the raw message.
recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch new file +23 -0
Lines of this file are not shown. View the raw message.
recipes-core/openjdk/patches-openjdk-8/remove-shell-variables-from-autoheader.patch new file +31 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 5 lines
1.9.1 -- Jens Rehsack - [email protected]
Part of the diff is not shown here. View the raw message.
Hi Jens,
does the java8-native build do not need any javac? One goal was to build all the stuff from scratch without the need to install any java compiler on the host.
Bye Henning
Quoted 8 lines
Am 03.11.2015 um 13:23 schrieb Henning Heinold <[email protected]>:
Hi Jens,
does the java8-native build do not need any javac? One goal was to build all the stuff from scratch without the need to install any java compiler on the host.
Hi Henning,
it uses the javac from icedtea7-native.
Cheers
Signature · 1 line
Jens Rehsack - [email protected]
Quoted 10 lines · Jens Rehsack
This adds openjdk-8 for native and target builds and allows a stripped openjre-8 being built as well instead of trying to cherry-pick jre components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.
Quoted 5 lines
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native, move the provides to openjdk-8-native (I think everyone agrees it's a better choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
For me the patch fails to apply on current master:
git am patches-from-emails/openjdk-8_and_openjre-8.eml
Applying: openjdk-8: add recipes for openjdk-8 and openjre-8 /home/leri/git/meta-java/.git/rebase-apply/patch:515: trailing whitespace.
xargs -0 -n1
${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/bin/pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug /home/leri/git/meta-java/.git/rebase-apply/patch:1232: trailing whitespace. #/home/leri/git/meta-java/.git/rebase-apply/patch:1265: trailing whitespace.
/home/leri/git/meta-java/.git/rebase-apply/patch:1270: trailing whitespace.
/home/leri/git/meta-java/.git/rebase-apply/patch:1289: trailing whitespace.
fatal: corrupt patch at line 4592
Patch failed at 0001 openjdk-8: add recipes for openjdk-8 and openjre-8
Quoted 32 lines
Am 03.11.2015 um 15:19 schrieb Richard Leitner <[email protected]>:
Quoted 10 lines · Jens Rehsack
This adds openjdk-8 for native and target builds and allows a stripped openjre-8 being built as well instead of trying to cherry-pick jre components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.Quoted 5 lines
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native, move the provides to openjdk-8-native (I think everyone agrees it's a better choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
For me the patch fails to apply on current master:
git am patches-from-emails/openjdk-8_and_openjre-8.eml
Applying: openjdk-8: add recipes for openjdk-8 and openjre-8/home/leri/git/meta-java/.git/rebase-apply/patch:515: trailing whitespace.xargs -0 -n1${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/bin/pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug
/home/leri/git/meta-java/.git/rebase-apply/patch:1232: trailing whitespace. #/home/leri/git/meta-java/.git/rebase-apply/patch:1265: trailing whitespace.
Quoted 6 lines
/home/leri/git/meta-java/.git/rebase-apply/patch:1270: trailing whitespace.
/home/leri/git/meta-java/.git/rebase-apply/patch:1289: trailing whitespace.fatal: corrupt patch at line 4592
Patch failed at 0001 openjdk-8: add recipes for openjdk-8 and openjre-8
That's maybe because I copy the format-patch output manually into the mail.
Use this one: https://github.com/rehsack/meta-java/commit/57eba04b0f68a55b3250a692bc5834902709c903
Cheers
Signature · 1 line
Jens Rehsack - [email protected]
Quoted 34 lines · Jens Rehsack
Quoted 34 lines
Am 03.11.2015 um 15:19 schrieb Richard Leitner <[email protected]>:
Quoted 10 lines · Jens Rehsack
This adds openjdk-8 for native and target builds and allows a stripped openjre-8 being built as well instead of trying to cherry-pick jre components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.Quoted 5 lines
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native, move the provides to openjdk-8-native (I think everyone agrees it's a better choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
For me the patch fails to apply on current master:
git am patches-from-emails/openjdk-8_and_openjre-8.eml
Applying: openjdk-8: add recipes for openjdk-8 and openjre-8/home/leri/git/meta-java/.git/rebase-apply/patch:515: trailing whitespace.xargs -0 -n1${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/bin/pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug
/home/leri/git/meta-java/.git/rebase-apply/patch:1232: trailing whitespace. #/home/leri/git/meta-java/.git/rebase-apply/patch:1265: trailing whitespace.
/home/leri/git/meta-java/.git/rebase-apply/patch:1270: trailing whitespace.
Quoted 8 lines
Quoted 4 lines
/home/leri/git/meta-java/.git/rebase-apply/patch:1289: trailing whitespace.fatal: corrupt patch at line 4592
Patch failed at 0001 openjdk-8: add recipes for openjdk-8 and openjre-8That's maybe because I copy the format-patch output manually into the mail.
Use this one: https://github.com/rehsack/meta-java/commit/57eba04b0f68a55b3250a692bc5834902709c903
Same error :-(
Do I need any previous patches applied which are not yet on master?
kind regards;
Richard L
Quoted 43 lines
Am 03.11.2015 um 16:40 schrieb Richard Leitner <[email protected]>:
Quoted 39 lines · Jens Rehsack
Quoted 38 lines
Am 03.11.2015 um 15:19 schrieb Richard Leitner <[email protected]>:
Quoted 10 lines · Jens Rehsack
This adds openjdk-8 for native and target builds and allows a stripped openjre-8 being built as well instead of trying to cherry-pick jre components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.Quoted 5 lines
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native, move the provides to openjdk-8-native (I think everyone agrees it's a better choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
For me the patch fails to apply on current master:
git am patches-from-emails/openjdk-8_and_openjre-8.eml
Applying: openjdk-8: add recipes for openjdk-8 and openjre-8/home/leri/git/meta-java/.git/rebase-apply/patch:515: trailing whitespace.xargs -0 -n1${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/bin/pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug
/home/leri/git/meta-java/.git/rebase-apply/patch:1232: trailing whitespace. #/home/leri/git/meta-java/.git/rebase-apply/patch:1265: trailing whitespace.
/home/leri/git/meta-java/.git/rebase-apply/patch:1270: trailing whitespace.
/home/leri/git/meta-java/.git/rebase-apply/patch:1289: trailing whitespace.fatal: corrupt patch at line 4592
Patch failed at 0001 openjdk-8: add recipes for openjdk-8 and openjre-8
Quoted 6 lines
Quoted 3 lines
That's maybe because I copy the format-patch output manually into the mail.
Use this one: https://github.com/rehsack/meta-java/commit/57eba04b0f68a55b3250a692bc5834902709c903Same error :-(
Do I need any previous patches applied which are not yet on master?
Depends - this one comes first, because openjdk-8 supports building for distro's without x11:
https://github.com/rehsack/meta-java/commit/566f95135c9f8b8bedd1e24b2b5872177b1fdbe4
You had trouble testing it because of cacao-native re-configure ... which should now be fixed.
Cheers
Signature · 1 line
Jens Rehsack - [email protected]
Quoted 7 lines · Jens Rehsack
Am 03.11.2015 um 16:40 schrieb Richard Leitner <[email protected]>:
Quoted 5 lines · Jens Rehsack
Quoted 2 lines
That's maybe because I copy the format-patch output manually into the mail.
Use this one: https://github.com/rehsack/meta-java/commit/57eba04b0f68a55b3250a692bc5834902709c903
Quoted 6 lines
Quoted 2 lines
Same error :-(
Do I need any previous patches applied which are not yet on master?Depends - this one comes first, because openjdk-8 supports building for distro's without x11:
https://github.com/rehsack/meta-java/commit/566f95135c9f8b8bedd1e24b2b5872177b1fdbe4
Thank you for the hint! Now it applies.
But I get following error when running "bitbake openjdk-7":
ERROR: Function failed: do_configure (log file is located at /build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.31291)
ERROR: Logfile of failure stored in:
/build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.31291 Log data follows:
| DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common'] | DEBUG: Executing shell function autotools_preconfigure | DEBUG: Shell function autotools_preconfigure finished | DEBUG: Executing python function autotools_copy_aclocals | DEBUG: Python function autotools_copy_aclocals finished | DEBUG: Executing shell function do_configure | ERROR: no configure script found at
/build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/configure | WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.31291)
ERROR: Task 1074 (/opt/yocto/poky/meta-java/recipes-core/openjdk/openjdk-8-native_72b05.bb, do_configure) failed with exit code '1'
Why is openjdk-8-native built at all here? Nonetheless the same error occurs when building openjdk-8!
Furthermore following two warnings pop up:
WARNING: Variable key ALTERNATIVE_${JDKPN} (java) replaces original key ALTERNATIVE_openjdk-8 (java).
WARNING: Variable key ALTERNATIVE_${JDKPN} (java) replaces original key ALTERNATIVE_openjdk-8 (java).
Currently I have no time digging deeper into the problem, sorry for that! But if you have a hint/solution I will test it again!
Quoted 3 lines
You had trouble testing it because of cacao-native re-configure ... which should now be fixed.
Yes, seems to be fixed now ;-)
Thank you & kind regards,
Richard L
Quoted 15 lines
Am 04.11.2015 um 09:03 schrieb Richard Leitner <[email protected]>:
Quoted 10 lines · Jens Rehsack
Am 03.11.2015 um 16:40 schrieb Richard Leitner <[email protected]>:
Quoted 7 lines · Jens Rehsack
Quoted 2 lines
That's maybe because I copy the format-patch output manually into the mail.
Use this one: https://github.com/rehsack/meta-java/commit/57eba04b0f68a55b3250a692bc5834902709c903Same error :-(
Do I need any previous patches applied which are not yet on master?
Quoted 7 lines
Quoted 3 lines
Depends - this one comes first, because openjdk-8 supports building for distro's without x11:
https://github.com/rehsack/meta-java/commit/566f95135c9f8b8bedd1e24b2b5872177b1fdbe4
Thank you for the hint! Now it applies.
But I get following error when running "bitbake openjdk-7":
Sure? Didn't you "bitbake openjdk-8"? Or is it because virtual/javac-native now points to openjdk-8-native and there is no known way for me to let a user sanely pick the beloved one on his/her own?
But openjdk-7 should not depend on virtual/javac-native -- so some enlightening is required ...
Quoted 30 lines
ERROR: Function failed:
do_configure(log file is located at /build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.31291)
ERROR: Logfile of failure stored in:
/build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.31291 Log data follows:| DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common'] | DEBUG: Executing shell function autotools_preconfigure | DEBUG: Shell function autotools_preconfigure finished | DEBUG: Executing python function autotools_copy_aclocals | DEBUG: Python function autotools_copy_aclocals finished | DEBUG: Executing shell function do_configure | ERROR: no configure script found at/build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/configure | WARNING: exit code 1 from a shell command.
| ERROR: Function failed:do_configure(log file is located at /build/myTarget/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.31291)
ERROR: Task 1074 (/opt/yocto/poky/meta-java/recipes-core/openjdk/openjdk-8-native_72b05.bb,do_configure) failed with exit code '1'Why is openjdk-8-native built at all here? Nonetheless the same error occurs when building openjdk-8!
Furthermore following two warnings pop up:
Quoted 8 lines
WARNING: Variable key ALTERNATIVE_${JDKPN} (java) replaces original key ALTERNATIVE_openjdk-8 (java).
WARNING: Variable key ALTERNATIVE_${JDKPN} (java) replaces original key ALTERNATIVE_openjdk-8 (java).Currently I have no time digging deeper into the problem, sorry for that! But if you have a hint/solution I will test it again!
Otavio didn't apply the stuff, because poky has to commit https://github.com/rehsack/poky/commits/master-java-support first:
* https://github.com/rehsack/poky/commit/65cdad40f2717b85892e12c80749cd43c1e19a40 is universal, because configure of openjdk-8 will be deleted by original autotools.bbclass without any ability to recover
* https://github.com/rehsack/poky/commit/20ad5ff329a59b92b97ffad889e06b35ccad6e3f is needed for target's with ARMv5e (only the DSP versions, not all ARMv5!)
Cheers
Signature · 1 line
Jens Rehsack - [email protected]
Quoted 6 lines · Jens Rehsack
Sure? Didn't you "bitbake openjdk-8"? Or is it because virtual/javac-native now points to openjdk-8-native and there is no known way for me to let a user sanely pick the beloved one on his/her own?
But openjdk-7 should not depend on virtual/javac-native -- so some enlightening is required ...
I'm sure I built openjdk-7 ;-)
Following PREFERRED_PROVIDES were defined:
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" PREFERRED_PROVIDER_virtual/java-native = "jamvm-native" PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native" PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"
Any idea?
kind regards,
Richard L
Quoted 13 lines
Am 05.11.2015 um 14:44 schrieb Richard Leitner <[email protected]>:
Quoted 6 lines · Jens Rehsack
Sure? Didn't you "bitbake openjdk-8"? Or is it because virtual/javac-native now points to openjdk-8-native and there is no known way for me to let a user sanely pick the beloved one on his/her own?
But openjdk-7 should not depend on virtual/javac-native -- so some enlightening is required ...
I'm sure I built openjdk-7 ;-)
Quoted 7 lines
Following
PREFERRED_PROVIDESwere defined:
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" PREFERRED_PROVIDER_virtual/java-native = "jamvm-native" PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native" PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"Any idea?
Yes. Say bye to "PREFERRED_PROVIDER_virtual/java-native" - since they're insane.
1) openjdk-7 must not use such a virtual provider, but a well known bootstrap path
DEPENDS = " ... icedtea7-native ... "
do a "bitbake -g openjdk-7" to figure out which bootstrap-component requires virtual/java-native or virtual/javac-native
2) When several recipes in bootstrap path define the same provider, bitbake refuses install, because one can only one particular package satisfying such a provider
I have with such a limitation no idea how to let people choose the desired provider for virtual/javac-native between jamvm/ecj, icedtea7-native or openjdk-8-native.
But this is stated in the commit message of both patches you had applied and is mentioned in the README as well. Please read the provided documentation, no worries that you cant' debug problems later on ...
Cheers
Signature · 1 line
Jens Rehsack - [email protected]
Hi,
I have another question regarding your patch ;-)
Quoted 2 lines · Jens Rehsack
recipes-core/openjdk/openjdk-8_72b05.bb | 36 + recipes-core/openjdk/openjre-8_72b05.bb | 30 +
In OpenJDK 7 the packages were named openjdk-7-{jre,jdk}, in OpenJDK 8 you name it open{jdk,jre}-8. Shouldn't we stick to one naming scheme?
Or am I missing something?
kind regards,
Richard L