[yocto] Error building meta-java openjdk-7 for ARM cortex-a7

Darcy Watkins dwatkins at sierrawireless.com
Fri Jan 9 09:46:37 PST 2015


Hello,

I have switched my git remote for meta-java from github.com/woglinde to
the one at yoctoproject.org to get the fix for the currency time expiry
issue along with other fixes and improvements.

I am encountering a problem building meta-java (openjdk-7) for
cortexa7hf-vfp-neon-poky-linux-gnueabi (Freescale Layerscape LS1021A)

It appears to be blowing up inside a task step that is run under QEMU
for ARM.  Furthermore, it appears to be running QEMU as cortex-a8
whereas the Layerscape is a cortex-a7 (actually a dual core a7).


Generating assembler offsets
qemu-arm -cpu cortex-a8 -s 2097152 -L /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr -E LD_LIBRARY_PATH=/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/lib ./mkoffsets > offsets_arm.s
Generating ARM assembler bytecode sequences
arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr -DLINUX -D_GNU_SOURCE -DCC_INTERP -DZERO -DTARGET_ARCH_NYI_6939861=1 -DARM -DZERO_LIBARCH=\"arm\" -DPRODUCT -I. -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/share/vm/prims -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/share/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/share/vm/precompiled -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/cpu/zero/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/os_cpu/linux_zero/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/os/linux/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"23.7-b01\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"dwatkins at sierrawireless.local\"" -DHOTSPOT_LIB_ARCH=\"arm\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -g -feliminate-unused-debug-types -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero -DTARGET_OS_ARCH_linux_zero -DTARGET_OS_ARCH_MODEL_linux_zero -DTARGET_COMPILER_gcc -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/usr/lib/libffi-3.0.13/include   -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden  -pipe -g -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero -DTARGET_OS_ARCH_linux_zero -DTARGET_OS_ARCH_MODEL_linux_zero -DTARGET_COMPILER_gcc -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/usr/lib/libffi-3.0.13/include  -fpic -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden  -pipe -g -O2 -pipe -g -feliminate-unused-debug-types -fno-strict-aliasing -DHOTSPOT_ASM -DVM_LITTLE_ENDIAN -DINCLUDE_TRACE  -Wpointer-arith -Wsign-compare    -E -x c++ - < /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/cpu/zero/vm/bytecodes_arm.def | qemu-arm -cpu cortex-a8 -s 2097152 -L /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr -E LD_LIBRARY_PATH=/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/lib ./mkbc - bytecodes_arm.s 
[ -f libjsig.so ] || { ln -s libjsig.so libjsig.so; }
/bin/sh: line 1: 29022 Done(2)                 arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr -DLINUX -D_GNU_SOURCE -DCC_INTERP -DZERO -DTARGET_ARCH_NYI_6939861=1 -DARM -DZERO_LIBARCH=\"arm\" -DPRODUCT -I. -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/share/vm/prims -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/share/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/share/vm/precompiled -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/cpu/zero/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/os_cpu/linux_zero/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/os/linux/vm -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"23.7-b01\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"dwatkins at sierrawireless.local\"" -DHOTSPOT_LIB_ARCH=\"arm\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -g -feliminate-unused-debug-types -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero -DTARGET_OS_ARCH_linux_zero -DTARGET_OS_ARCH_MODEL_linux_zero -DTARGET_COMPILER_gcc -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/usr/lib/libffi-3.0.13/include -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -pipe -g -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero -DTARGET_OS_ARCH_linux_zero -DTARGET_OS_ARCH_MODEL_linux_zero -DTARGET_COMPILER_gcc -I/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/usr/lib/libffi-3.0.13/include -fpic -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -pipe -g -O2 -pipe -g -feliminate-unused-debug-types -fno-strict-aliasing -DHOTSPOT_ASM -DVM_LITTLE_ENDIAN -DINCLUDE_TRACE -Wpointer-arith -Wsign-compare -E -x c++ - < /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/cpu/zero/vm/bytecodes_arm.def
     29023 Killed                  | qemu-arm -cpu cortex-a8 -s 2097152 -L /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr -E LD_LIBRARY_PATH=/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/lib ./mkbc - bytecodes_arm.s
make[7]: *** [bytecodes_arm.s] Error 137
make[7]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 29016 Killed                  qemu-arm -cpu cortex-a8 -s 2097152 -L /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr -E LD_LIBRARY_PATH=/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/sysroots/omg-zeta-ls1021atwr/lib ./mkoffsets > offsets_arm.s
make[7]: *** [offsets_arm.s] Error 137
make[7]: Leaving directory `/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk.build/hotspot/outputdir/linux_arm_zero/product'
make[6]: *** [the_vm] Error 2
make[6]: Leaving directory `/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk.build/hotspot/outputdir/linux_arm_zero/product'
make[5]: *** [productzero] Error 2
make[5]: Leaving directory `/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk.build/hotspot/outputdir'
make[4]: *** [generic_buildzero] Error 2
make[4]: Leaving directory `/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/make'
make[3]: *** [productzero] Error 2
make[3]: Leaving directory `/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/make'
make[2]: *** [hotspot-build] Error 2
make[2]: Leaving directory `/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk'
make[1]: *** [build_product_image] Error 2
make[1]: Leaving directory `/home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk'
make: *** [stamps/icedtea.stamp] Error 2
ERROR: oe_runmake failed
WARNING: /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/temp/run.do_compile.25395:1 exit 1 from
  exit 1
ERROR: Function failed: do_compile (log file is located at /home/sierrawireless.local/dwatkins/workspace/epsilon/zeta_MG-os/build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/temp/log.do_compile.25395)


If I rerun the bitbake -c compile, the above error doesn't recur, but
the build breaks later in thumb2.cpp with a number of errors of the
form...

..../build/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/icedtea-2.3.12/build/openjdk/hotspot/src/cpu/zero/vm/thumb2.cpp:3698:41: error: 'FRAME_SIZE' was not declared in this scope
     ldr_imm(jinfo->codebuf, r, Ristate, FRAME_SIZE + (nlocals-1-local) * 4, 1, 0);
                                         ^
I think this is a symptom of cross toolchain mixup.

If I bitbake -c clean, then try again, I get back to the first errors I
quoted earlier.

---

Before changing the git remotes, I was able to build and run openjdk-7
for an x86 (i586 geode LX) case, i.MX6 (ARM cortex-a9) case and for the
Layerscape.  I even had tomcat8 running on these embedded boards.  But
when I had to do a fresh rebuild, I encountered the currency time expiry
issue.  On investigating, I found the new home for meta-java with fix
and additional updates.  Got past that and now I run into this.

Any insights, especially from any familiar with the other changes that
have been put in since the last commit that went into the old git remote
repo?

Thanks in advance!


-- 

Regards,

Darcy

Darcy Watkins ::  Staff Engineer, Firmware

SIERRA WIRELESS
Direct +1 604 233 7989 :: Fax +1 604 231 1109 :: Main +1 604 231 1100
13811 Wireless Way  :: Richmond, BC Canada V6V 3A4
[P4]
dwatkins at sierrawireless.com :: www.sierrawireless.com :: www.inmotiontechnology.com




More information about the yocto mailing list