Stuart, here are the details of the tool chain, sorry for not including them in the last e-mail
peter@peter-VirtualBox:/sdd/peter$ aarch64-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=aarch64-linux-gnu-gcc COLLECT_LTO_WRAPPER=/sdd/peter/Xilinx/SDK/2016.4/gnu/aarch64/lin/aarch64-linux/bin/../libexec/gcc/aarch64-linux-gnu/5.2.1/lto-wrapper Target: aarch64-linux-gnu Configured with: /proj/esdt_sdk/gnu_abe/ABE/builds/lin/aarch64/aarch64-linux/snapshots/gcc-linaro-5.2-2015.11-2/configure SHELL=/bin/sh --with-bugurl=https://bugs.linaro.org --with-mpc=/proj/esdt_sdk/gnu_abe/ABE/builds/lin/aarch64/aarch64-linux/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/proj/esdt_sdk/gnu_abe/ABE/builds/lin/aarch64/aarch64-linux/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/proj/esdt_sdk/gnu_abe/ABE/builds/lin/aarch64/aarch64-linux/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libstdcxx-pch --disable-libmudflap --with-cloog=no --with-ppl=no --with-isl=no --disable-nls --enable-c99 --with-arch=armv8-a --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419 --enable-multiarch --with-build-sysroot=/proj/esdt_sdk/gnu_abe/ABE/builds/lin/aarch64/aarch64-linux/builds/destdir/x86_64-unknown-linux-gnu/aarch64-linux-gnu/libc --enable-lto --enable-plugins --enable-linker-build-id --enable-long-long --enable-shared --with-sysroot=/proj/esdt_sdk/gnu_abe/ABE/builds/lin/aarch64/aarch64-linux/builds/destdir/x86_64-unknown-linux-gnu/aarch64-linux-gnu/libc --enable-languages=c,c++,lto --enable-checking=yes --disable-bootstrap --with-bugurl=https://bugs.linaro.org --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=aarch64-linux-gnu --prefix=/proj/esdt_sdk/gnu_abe/ABE/builds/lin/aarch64/aarch64-linux/builds/destdir/x86_64-unknown-linux-gnu Thread model: posix gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2)
Peter
-----Original Message----- From: Stuart Monteith [mailto:stuart.monteith@linaro.org] Sent: 31 January 2017 15:26 To: SMITH Peter T peter.t.smith@alstom.com Cc: linaro-openjdk@lists.linaro.org Subject: Re: [Linaro-openjdk] Problem building openjdk-8 (1609)
Hello Peter, Could you elaborate a bit more? I've never come across Yocto, and would need to know what toolchains, librarieis, binutils, etc, you are using. Knowing what OS/platform is being used is also important.
BR, Stuart
On 31 January 2017 at 11:26, SMITH Peter T peter.t.smith@alstom.com wrote:
New to openjdk, apologies if this is obvious. I am trying to build the above as downloaded in source form from https://urldefense.proofpoint.com/v2/url?u=http-3A__openjdk.linaro.org_&... for Linux aarch64 as part of a Yocto distribution i.e. “bitbake -v openjdk-8 -c compile” and am getting the compile error shown below, I’m guessing that this is something to do with a Makefile somewhere (not sure) as -Wl appears to be passed to the compiler without the usual , and option. Any ideas how to fix?
| echo "Compiling bands.cpp (for libunpack.so)"
| Compiling bands.cpp (for libunpack.so)
| aarch64-linux-gnu-g++ -Wl -W -Wall -Wno-unused -Wno-parentheses | aarch64-linux-gnu-g++ -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -fno-omit-frame-pointer -D_LP64=1 -D_LITTLE_ENDIAN -DLINUX -DNDEBUG -DARCH='"aarch64"' -Daarch64 -DRELEASE='"1.8.0-internal"' -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-j re/0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/include -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-j re/0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/include /linux -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-j re/0.1-r16.0/git/jdk/src/share/javavm/export -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-j re/0.1-r16.0/git/jdk/src/solaris/javavm/export -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-j re/0.1-r16.0/git/jdk/src/share/native/common -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-j re/0.1-r16.0/git/jdk/src/solaris/native/common -fPIC -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/gensrc_headers -DNO_ZLIB -DUNPACK_JNI -DFULL -DPRODUCT -g -O2 -DTHIS_FILE='"bands.cpp"' -c -MMD -MF /sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre /0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/objs/libu npack/bands.d -o /sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre /0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/objs/libu npack/bands.o /sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre /0.1-r16.0/git/jdk/src/share/native/com/sun/java/util/jar/pack/bands.c pp
| aarch64-linux-gnu-g++: error: unrecognized command line option '-Wl'
| make[2]: *** [/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jr e/0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/objs/lib unpack/bands.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| lib/CoreLibraries.gmk:289: recipe for target '/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/objs/libunpack/bands.o' failed
| make[2]: Leaving directory '/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/0.1-r16.0/git/jdk/make'
| make[1]: *** [libs-only] Error 2
| BuildJdk.gmk:70: recipe for target 'libs-only' failed
| make[1]: Leaving directory '/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/0.1-r16.0/git/jdk/make'
| /sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/0.1-r16.0/git//make/Main.gmk:115: recipe for target 'jdk-only' failed
| make: *** [jdk-only] Error 2
Peter Smith
Principal Engineer, Chief Engineering, Grid Solutions
T +44 1785 786406
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.
Linaro-openjdk mailing list Linaro-openjdk@lists.linaro.org https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.linaro.org_ mailman_listinfo_linaro-2Dopenjdk&d=DQIFaQ&c=IV_clAzoPDE253xZdHuilRgzt yh_RiV3wUrLrDQYWSI&r=-0xOp6WEUxZEZ28IafXrMa3oLhGTFvyj7y8nzyNrgGo&m=j1w IUaCCtyV6pMQ2CxxgYC3fKHJeLgEkzgeYabv5emo&s=yorBAqzyWy48Ti4gANfeOs0DjZv h7zPEK5f0t8A9oh4&e=
________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.