[oe] [meta-java] gcc6 support breaks build for gcc < 6

Jacopo Malvestio jacopo.malvestio at gmail.com
Tue Jul 12 16:48:25 UTC 2016


On 12/07/2016 13:56, Winfried wrote:
>>>> | ERROR: Function failed: do_configure (log file is located at /home/jacopo/yjp/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.2980
>>>>
>>>> I'm running on ubuntu 14.04 with gcc4.8 and openjdk 1.8, i don't think it's a side effect of the gcc6 patch,  but in your opinion, i forgot something?
>>>>
>>>
>>> this is building openjdk-8-native package. So you need to add a
>>> bbappend for openjdk-8-native_72b05.bb as well
>>
>> already done:
>>
>> ➜  openjdk git:(develop) cat openjdk-8-native_72b05.bbappend
>> CFLAGS_remove = "-fno-lifetime-dse"
>> CXXFLAGS_remove = "-fno-lifetime-dse"
>>
>> openjdk-8 is not a recipe, correct? any suggestion?
>>
>> thank you. jacob
> 
> Here is the .bbappend that works for me:
> 
> 
> wdobbe at tc-linux-build2:~/yocto/peek-krogoth/sources/meta-peek/recipes-core/openjdk> cat openjdk-8-native_%.bbappend
> 
> CFLAGS_remove = "-fno-lifetime-dse"
> CXXFLAGS_remove = "-fno-lifetime-dse"

new clean poky clone, with meta-openembedded, openembedded-core, and meta-java:master but the issue persit, what can i check?

➜  build git:(krogoth) ✗ MACHINE="qemux86" bitbake core-image-minimal
Parsing recipes: 100% |##################################################################################################################################| Time: 00:00:08
Parsing of 2453 .bb files complete (0 cached, 2453 parsed). 3435 targets, 157 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.1.1"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-poky
meta-yocto-bsp    = "krogoth:98c57bb512ea6790db8604fcf0b88c81651d2ab4"
meta-oe           = "krogoth:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta              = "krogoth:dd330056ace289c8a9c5d77b6bb6e860b9f0913e"
meta-java         = "master:33fbcd43cae1b9c08704792547159d27f2fdbe50"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: openjdk-8-native-72b05-r0 do_configure: configure failed
ERROR: openjdk-8-native-72b05-r0 do_configure: Function failed: do_configure (log file is located at /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.64381)
ERROR: Logfile of failure stored in: /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.64381
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: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| automake (GNU automake) 1.15
| Copyright (C) 2014 Free Software Foundation, Inc.
| License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
|
| Written by Tom Tromey <tromey at redhat.com>
|        and Alexandre Duret-Lutz <adl at gnu.org>.
| AUTOV is 1
| NOTE: Executing ACLOCAL="aclocal --system-acdir=/home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/build/aclocal-copy/" autoreconf --verbose --install --force --exclude=autopoint -I /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/ -I /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/build-aux/
| autoreconf: Entering directory `.'
| autoreconf: configure.ac: not using Gettext
| autoreconf: running: aclocal --system-acdir=/home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/build/aclocal-copy/ -I /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/ -I /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/build-aux/ -I /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/ -I /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/build-aux/ --force
| autoreconf: configure.ac: tracing
| autoreconf: configure.ac: not using Libtool
| autoreconf: running: /home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf --include=/home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/ --include=/home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/build-aux/ --force
| autoreconf: running: /home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/bin/autoheader --include=/home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/ --include=/home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/common/autoconf/build-aux/ --force
| autoreconf: configure.ac: not using Automake
| autoreconf: running: gnu-configize
| autoreconf: Leaving directory `.'
| NOTE: Running ../jdk8u-e8bed1496ff2/common/autoconf/configure  --build=x86_64-linux             --host=x86_64-linux             --target=x86_64-linux                   --prefix=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr              --exec_prefix=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr              --bindir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/bin                  --sbindir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/sbin       --libexecdir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/libexec                --datadir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/share               --sysconfdir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/etc               --sharedstatedir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/com              --localstatedir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/var
--libdir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/lib                  --includedir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/include               --oldincludedir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/include               --infodir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/share/info               --mandir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/share/man            --disable-silent-rules                  --disable-dependency-tracking                     --disable-static    --with-jobs=40         --with-sys-root=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux     --with-tools-dir=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux     --with-boot-jdk=/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/lib/jvm/icedtea7-native     --with-extra-cflags='-isystem/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -fno-lifetime-dse
-fno-delete-null-pointer-checks  -DHEADLESS=true'     --with-extra-cxxflags='-isystem/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -fno-lifetime-dse -fno-delete-null-pointer-checks  -DHEADLESS=true'     --with-extra-ldflags='-L/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/xyz/test_java/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1'     --with-stdc++lib=dynamic     --disable-ccache --disable-headful  --disable-nls        --with-build-number=b05         --with-update-version=72
| configure: WARNING: unrecognized options: --disable-silent-rules, --disable-dependency-tracking, --disable-static, --disable-nls
| configure: loading site script /home/xyz/test_java/poky/meta/site/endian-little
| configure: loading site script /home/xyz/test_java/poky/meta/site/common-linux
| configure: loading site script /home/xyz/test_java/poky/meta/site/common-glibc
| configure: loading site script /home/xyz/test_java/poky/meta/site/x86_64-linux
| configure: loading site script /home/xyz/test_java/poky/meta/site/common
| configure: loading site script /home/xyz/test_java/poky/meta-openembedded/meta-oe/site/endian-little
| configure: loading site script /home/xyz/test_java/poky/openembedded-core/meta/site/endian-little
| configure: loading site script /home/xyz/test_java/poky/openembedded-core/meta/site/common-linux
| configure: loading site script /home/xyz/test_java/poky/openembedded-core/meta/site/common-glibc
| configure: loading site script /home/xyz/test_java/poky/openembedded-core/meta/site/x86_64-linux
| configure: loading site script /home/xyz/test_java/poky/openembedded-core/meta/site/common
| configure: loading site script /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/build/aclocal-copy/ncurses_config
| configure: Configuration created at Tue Jul 12 18:23:22 CEST 2016.
| configure: configure script generated at timestamp @DATE_WHEN_GENERATED at .
| checking for basename... /usr/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... /usr/bin/sort
| checking for tail... /usr/bin/tail
| checking for tar... /bin/tar
| checking for tee... /usr/bin/tee
| checking for touch... /usr/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... (cached) sed
| checking for nawk... /usr/bin/nawk
| checking for cygpath... no
| checking for readlink... /bin/readlink
| checking for df... /bin/df
| checking for SetFile... no
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... x86_64-pc-linux-gnu
| checking target system type... x86_64-pc-linux-gnu
| checking openjdk-build os-cpu... linux-x86_64
| checking openjdk-target os-cpu... linux-x86_64
| checking compilation type... native
| checking for presence of closed sources... no
| checking if closed source is suppressed (openjdk-only)... no
| checking which variant of the JDK to build... normal
| checking which interpreter of the JVM to build... template
| checking which variants of the JVM to build... server
| checking which debug level to use... release
| configure: Current directory is /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/build.
| configure: Since this is not the source root, configure will output the configuration here
| configure: (as opposed to creating a configuration in <src_root>/build/<conf-name>).
| configure: However, this directory is not empty. This is not allowed, since it could
| configure: seriously mess up just about everything.
| configure: Try 'cd /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2' and restart configure
| configure: (or create a new empty directory and cd to it).
| configure: error: Will not continue creating configuration in /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/build
| NOTE: The following config.log files may provide further information.
| NOTE: /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/build/config.log
| ERROR: configure failed
| ERROR: Function failed: do_configure (log file is located at /home/xyz/test_java/poky/build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/temp/log.do_configure.64381)
ERROR: Task 679 (/home/xyz/test_java/poky/meta-java/recipes-core/openjdk/openjdk-8-native_72b05.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2684 tasks of which 2683 didn't need to be rerun and 1 failed.
No currently running tasks (1902 of 2703)

Summary: 1 task failed:
  /home/xyz/test_java/poky/meta-java/recipes-core/openjdk/openjdk-8-native_72b05.bb, do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.





More information about the Openembedded-devel mailing list