Subject: [meta-oe] [meta-java] openjdk-14 do_configure failed #error #oe
To: openembedded-devel@lists.openembedded.org
From: konstantin.kletschke@inside-m2m.de
X-Originating-Location: Mannheim, Baden-Württemberg, DE (217.91.183.55)
X-Originating-Platform: Unknown Chrome 89
User-Agent: GROUPS.IO Web Poster
MIME-Version: 1.0
Date: Wed, 17 Mar 2021 05:25:04 -0700
Message-ID: <5wG7.1615983904169009383.LMiQ@lists.openembedded.org>
Content-Type: multipart/alternative; boundary="pdZERQiVLSaE4fLsZCIo"
--pdZERQiVLSaE4fLsZCIo
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hello guys,
I have a core-image-base for a beaglebone black compiled and running, I am=
very happy with the yocto framework I am trying to get flying in our proje=
ct. On top of my current image I am trying to put a openjre into my image w=
ith the meta-java layer.
In bblayers.conf I added
/home/insidem2m/poky/meta-openembedded/meta-oe
/home/insidem2m/poky/meta-java
and in my local.conf I added
IMAGE_INSTALL_append =3D " e2fsprogs-resize2fs dropbear i2c-tools docker-c=
e openjre-14"
OPENJDK14_BOOT_JDK=3D"/home/insidem2m/buildroot-2021.02-rc3/output/host/us=
r/lib/jvm"
PREFERRED_PROVIDER_virtual/java-initial-native =3D "cacao-initial-native"
PREFERRED_PROVIDER_virtual/java-native =3D "jamvm-native"
PREFERRED_PROVIDER_virtual/javac-native =3D "ecj-bootstrap-native"
Nevertheless if I try to pull in openjdk-8, openjre-8 or openjre-14 (from =
the meta-java g0hl1n/jdk14 branch), my build breaks this way:
| AUTOV is 1.16
| NOTE: Executing ACLOCAL=3D"aclocal --system-acdir=3D/home/insidem2m/poky=
/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-nat=
ive/usr/share/aclocal/ --automake-acdir=3D/home/insidem2m/poky/build/tmp/wo=
rk/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share=
/aclocal-1.16" autoreconf -Wcross --verbose --install --force --exclude=3Da=
utopoint --exclude=3Dgtkdocize -I /home/insidem2m/poky/build/tmp/work/x86_6=
4-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/ -I =
/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r=
0/jdk14u-jdk-14.0.1-ga/make/autoconf/build-aux/
| autoreconf: export WARNINGS=3Dcross,no-obsolete
| autoreconf: Entering directory '.'
| autoreconf: configure.ac: not using Gettext
| autoreconf: running: aclocal --system-acdir=3D/home/insidem2m/poky/build=
/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/us=
r/share/aclocal/ --automake-acdir=3D/home/insidem2m/poky/build/tmp/work/x86=
_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/acloc=
al-1.16 -I /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-nati=
ve/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/ -I /home/insidem2m/poky/bu=
ild/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/=
make/autoconf/build-aux/ --force
| basics.m4:52: warning: underquoted definition of $1
| basics.m4:52: run info Automake 'Extending aclocal'
| basics.m4:52: or see https://www.gnu.org/software/automake/manual/automa=
ke.html#Extending-aclocal
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
[...] very much millions of those lines snipped
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
| configure.ac:225: warning: AC_CHECK_HEADERS($HEADERS_TO_CHECK): you shou=
ld use literals
| ../autoconf-2.71/lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expand=
ed from...
| libraries.m4:85: LIB_SETUP_LIBRARIES is expanded from...
| configure.ac:225: the top level
| autoreconf: configure.ac: tracing
| autoreconf: configure.ac: creating directory $TOPDIR/make/autoconf/build=
-aux
| autoreconf: error: cannot create $TOPDIR/make/autoconf/build-aux: No suc=
h file or directory
| autoreconf: configure.ac: not using Libtool
| autoreconf: configure.ac: not using Intltool
| autoreconf: configure.ac: not using Gtkdoc
| autoreconf: running: /home/insidem2m/poky/build/tmp/work/x86_64-linux/op=
enjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/bin/autoconf --include=
=3D/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0=
.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/ --include=3D/home/insidem2m/poky/=
build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-g=
a/make/autoconf/build-aux/ --force
| configure.ac:225: warning: AC_CHECK_HEADERS($HEADERS_TO_CHECK): you shou=
ld use literals
| ../autoconf-2.71/lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expand=
ed from...
| libraries.m4:85: LIB_SETUP_LIBRARIES is expanded from...
| configure.ac:225: the top level
| autoreconf: configure.ac: not using Autoheader
| autoreconf: configure.ac: not using Automake
| Error in tempfile() using template $TOPDIR/make/autoconf/build-aux/XXXXX=
XXXXX: Parent directory ($TOPDIR/make/autoconf/build-aux/) does not exist a=
t /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1=
-r0/recipe-sysroot-native/usr/bin/autoreconf line 411.
| WARNING: /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-nat=
ive/14.0.1-r0/temp/run.do_configure.27035:293 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjd=
k-14-native/14.0.1-r0/temp/run.do_configure.27035, line 293
| #2: die, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-nat=
ive/14.0.1-r0/temp/run.do_configure.27035, line 273
| #3: autotools_do_configure, /home/insidem2m/poky/build/tmp/work/x86_64-l=
inux/openjdk-14-native/14.0.1-r0/temp/run.do_configure.27035, line 235
| #4: do_configure, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openj=
dk-14-native/14.0.1-r0/temp/run.do_configure.27035, line 159
| #5: main, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-na=
tive/14.0.1-r0/temp/run.do_configure.27035, line 297
|
| Backtrace (metadata-relative locations):
| #1: bbfatal_log, /home/insidem2m/poky/meta/classes/logging.bbclass, line=
72
| #2: die, /home/insidem2m/poky/meta/classes/base.bbclass, line 56
| #3: autotools_do_configure, /home/insidem2m/poky/meta/classes/autotools.=
bbclass, line 224
| #4: do_configure, autogenerated, line 5
*ERROR* : Task (virtual:native:/home/insidem2m/poky/meta-java/recipes-core=
/openjdk/openjdk-14_14.0.1.bb:do_configure) failed with exit code '1'
*NOTE* : Tasks Summary: Attempted 5311 tasks of which 5219 didn't need to =
be rerun and 1 failed.
Summary: 1 task failed:
virtual:native:/home/insidem2m/poky/meta-java/recipes-core/openjdk/openjdk=
-14_14.0.1.bb:do_configure
Summary: There were 7 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code=
.
Can somebody experienced help me to find out what is breaking my build? It=
looks like there is a variable missing or generally something missing the =
build is referring to.
I found something similair in this list at
[oe] OpenJdk9 (openembedded.org) ( https://www.openembedded.org/pipermail/=
openembedded-devel/2017-July/113896.html )
with the suggestion to skip the autoconf stuff. But this is not helpful be=
cause then I am missing the patch applied before configuring
0002-make-autoconf-toolchain-remove-invalid-compiler-chec.patch
which looks introduced into the openjdk-14 branch. At this place my openjd=
k-8 build attempts breaks (BASENAME invalid argument stuff) also, this is w=
hy I tested the openjre-14 branch.
Kind Regards
Konsti
--pdZERQiVLSaE4fLsZCIo
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hello guys,
I have a core-image-base for a beaglebone black compiled a=
nd running, I am very happy with the yocto framework I am trying to get fly=
ing in our project. On top of my current image I am trying to put a openjre=
into my image with the meta-java layer.
In bblayers.conf =
I added
/home/insidem2m/poky=
/meta-openembedded/meta-oe
/home/insidem2m/poky=
/meta-java
and in my local.conf I added
IMAGE_INSTALL_append= =3D " e2fsprogs-resize2fs dropbear i2c-tools docker-ce openjre-14"<= /p>
OPENJDK14_BOOT_JDK= =3D"/home/insidem2m/buildroot-2021.02-rc3/output/host/usr/lib/jvm"<= /p>
PREFERRED_PROVIDER_v= irtual/java-initial-native =3D "cacao-initial-native"
PREFERRED_PROVIDER_v= irtual/java-native =3D "jamvm-native"
PREFERRED_PROVIDER_v= irtual/javac-native =3D "ecj-bootstrap-native"
<=
span class=3D"s1" style=3D"font-variant-ligatures: no-common-ligatures;">
Nevertheless if I try to pull in openjdk-8, openjre-8 or openjre-=
14 (from the meta-java g0hl1n/jdk14 branch), my build breaks this way:
| AUTOV is 1.16
| NOTE: Executing AC= LOCAL=3D"aclocal --system-acdir=3D/home/insidem2m/poky/build/tmp/work/x86_6= 4-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal= / --automake-acdir=3D/home/insidem2m/poky/build/tmp/work/x86_64-linux/openj= dk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal-1.16" autore= conf -Wcross --verbose --install --force --exclude=3Dautopoint --exclude=3D= gtkdocize -I /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-na= tive/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/ -I /home/insidem2m/poky/= build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-g= a/make/autoconf/build-aux/
| autoreconf: export= WARNINGS=3Dcross,no-obsolete
| autoreconf: Enteri= ng directory '.'
| autoreconf: config= ure.ac: not using Gettext
| autoreconf: runnin= g: aclocal --system-acdir=3D/home/insidem2m/poky/build/tmp/work/x86_64-linu= x/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal/ --au= tomake-acdir=3D/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-= native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /home/insi= dem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-j= dk-14.0.1-ga/make/autoconf/ -I /home/insidem2m/poky/build/tmp/work/x86_64-l= inux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/build-a= ux/ --force
| basics.m4:52: warn= ing: underquoted definition of $1
| basics.m4:52:
| basics.m4:52:
| Use of uninitializ= ed value $1 in quotemeta at (eval 16) line 470.
| Use of uninitializ= ed value $1 in string at (eval 16) line 470.
| Use of uninitializ= ed value $1 in quotemeta at (eval 16) line 470.
| Use of uninitializ= ed value $1 in string at (eval 16) line 470.
| Use of uninitializ= ed value $1 in quotemeta at (eval 16) line 470.
| Use of uninitializ=
ed value $1 in string at (eval 16) line 470.
[...] very much mil=
lions of those lines snipped
| Use of uninitializ= ed value $1 in quotemeta at (eval 16) line 470.
| Use of uninitializ= ed value $1 in string at (eval 16) line 470.
| configure.ac:225: = warning: AC_CHECK_HEADERS($HEADERS_TO_CHECK): you should use literals
| ../autoconf-2.71/l= ib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
| libraries.m4:85: L= IB_SETUP_LIBRARIES is expanded from...
| configure.ac:225: = the top level
| autoreconf: config= ure.ac: tracing
| autoreconf: config= ure.ac: creating directory $TOPDIR/make/autoconf/build-aux
| autoreconf: error:= cannot create $TOPDIR/make/autoconf/build-aux: No such file or directory= span>
| autoreconf: config= ure.ac: not using Libtool
| autoreconf: config= ure.ac: not using Intltool
| autoreconf: config= ure.ac: not using Gtkdoc
| autoreconf: runnin= g: /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.= 1-r0/recipe-sysroot-native/usr/bin/autoconf --include=3D/home/insidem2m/pok= y/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1= -ga/make/autoconf/ --include=3D/home/insidem2m/poky/build/tmp/work/x86_64-l= inux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/build-a= ux/ --force
| configure.ac:225: = warning: AC_CHECK_HEADERS($HEADERS_TO_CHECK): you should use literals
| ../autoconf-2.71/l= ib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
| libraries.m4:85: L= IB_SETUP_LIBRARIES is expanded from...
| configure.ac:225: = the top level
| autoreconf: config= ure.ac: not using Autoheader
| autoreconf: config= ure.ac: not using Automake
| Error in tempfile(= ) using template $TOPDIR/make/autoconf/build-aux/XXXXXXXXXX: Parent directo= ry ($TOPDIR/make/autoconf/build-aux/) does not exist at /home/insidem2m/pok= y/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-na= tive/usr/bin/autoreconf line 411.
| WARNING: /home/ins= idem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/ru= n.do_configure.27035:293 exit 1 from 'exit 1'
| WARNING: Backtrace= (BB generated script):
| #1: bbfatal_log, /home/ins= idem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/ru= n.do_configure.27035, line 293
| #2: die, /home/insidem2m/p= oky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_con= figure.27035, line 273
| #3: autotools_do_configure= , /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1= -r0/temp/run.do_configure.27035, line 235
| #4: do_configure, /home/in= sidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/r= un.do_configure.27035, line 159
| #5: main, /home/insidem2m/= poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_co= nfigure.27035, line 297
|
| Backtrace (metadat= a-relative locations):
| #1: bbfatal_log, /home/ins= idem2m/poky/meta/classes/logging.bbclass, line 72
| #2: die, /home/insidem2m/p= oky/meta/classes/base.bbclass, line 56
| #3: autotools_do_configure= , /home/insidem2m/poky/meta/classes/autotools.bbclass, line 224
| #4: do_configure, autogene= rated, line 5
ERROR: Task (virtual:native:/home/insidem2m/poky/m= eta-java/recipes-core/openjdk/openjdk-14_14.0.1.bb:do_configure) failed wit= h exit code '1'
NOTE: Tasks Summary: Attempted 5311 tasks of which 5219 didn't need to be reru= n and 1 failed.
&= nbsp;
Summary: 1 task fail= ed:
virtual:native:/home/insidem2m/poky/meta-ja= va/recipes-core/openjdk/openjdk-14_14.0.1.bb:do_configure
Summary: There were = 7 WARNING messages shown.
Summary: There were =
2 ERROR messages shown, returning a non-zero exit code.
Can some=
body experienced help me to find out what is breaking my build? It looks li=
ke there is a variable missing or generally something missing the build is =
referring to.
I found something similair in this list at
[oe] OpenJdk9 (openembedded.org)
=
with the suggestion to skip the autoconf stuff. But this is not helpful bec=
ause then I am missing the patch applied before configuring
0002-make-autoconf-t=
oolchain-remove-invalid-compiler-chec.patch
which looks introduc=
ed into the openjdk-14 branch. At this place my openjdk-8 build attempts br=
eaks (BASENAME invalid argument stuff) also, this is why I tested the openj=
re-14 branch.
Kind Regards
Konsti
=
span>
<=
span class=3D"s1" style=3D"font-variant-ligatures: no-common-ligatures;">
<= span class=3D"s1" style=3D"font-variant-ligatures: no-common-ligatures;">
=
span>