Stuart, thanks very much for helping out. I have not been working on this issue today, but will return to it in the morning and see if I can get some more details to help sort it out. Peter
-----Original Message----- From: Stuart Monteith [mailto:stuart.monteith@linaro.org] Sent: 01 February 2017 15:30 To: SMITH Peter T peter.t.smith@alstom.com; Riku Voipio riku.voipio@linaro.org Cc: linaro-openjdk@lists.linaro.org Subject: Re: [Linaro-openjdk] Problem building openjdk-8 (1609)
Hello Peter, I've tried reproducing the issue, but without any luck. I tried checking out the morty branch of "poky"
To give you some idea:
$ bitbake -v openjdk-8 -c Usage: bitbake [options] [recipename/target recipe:do_task ...]
Executes the specified task (default is 'build') for a given set of target recipes (.bb files). It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which will provide the layer, BBFILES and other configuration information.
bitbake: error: -c option requires 1 argument stumon01@e109365:~/repos/poky/build$ bitbake -v openjdk-8 -c compile WARNING: Host distribution "Ubuntu-16.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution. Loading cache: 100% |####################################################################### |#################################################################| Time: 0:00:00 Loaded 1335 entries from dependency cache. Parsing recipes: 100% |####################################################################### |###############################################################| Time: 0:00:00 Parsing of 880 .bb files complete (879 cached, 1 parsed). 1336 targets, 76 skipped, 0 masked, 0 errors. ERROR: Nothing PROVIDES 'openjdk-8'
Summary: There was 1 WARNING message shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Looking at the recipe, it seems reasonable, if the overrides for LD, etc, are reasonable. I'd guess there may be more going on than what you've presented - I don't know the contents of the other files that define the LDFLAGS property would be.
I've put Riku on CC as apparently he has worked with Yocto.
BR, Stuart
On 31 January 2017 at 16:11, SMITH Peter T peter.t.smith@alstom.com wrote:
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/aarch 64-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://urldefense.proofpoint.com/v2/url?u=https-3A__bug s.linaro.org&d=DQIFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r= -0xOp6WEUxZEZ28IafXrMa3oLhGTFvyj7y8nzyNrgGo&m=S--kZSSBtdZNYBDpt7pOQbOm P1J60TqS4RVl9-cgt34&s=nb_H--oPJ_pek3gHD_sff9PvNWp9iAUbKLOCziJZ0Qg&e= --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-linu x/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/aar ch64-linux/builds/destdir/x86_64-unknown-linux-gnu/aarch64-linux-gnu/l ibc --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-l inux/builds/destdir/x86_64-unknown-linux-gnu/aarch64-linux-gnu/libc --enable-languages=c,c++,lto --enable-checking=yes --disable-bootstrap --with-bugurl=https://urldefense.proofpoint.com/v2/url?u=https-3A__bug s.linaro.org&d=DQIFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r= -0xOp6WEUxZEZ28IafXrMa3oLhGTFvyj7y8nzyNrgGo&m=S--kZSSBtdZNYBDpt7pOQbOm P1J60TqS4RVl9-cgt34&s=nb_H--oPJ_pek3gHD_sff9PvNWp9iAUbKLOCziJZ0Qg&e= --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/b uilds/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/includ e -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/includ e /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-jr e /0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/objs/lib u npack/bands.d -o /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 u npack/bands.o /sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jr e /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-j r e/0.1-r16.0/git/build/linux-aarch64-normal-server-release/jdk/objs/li b 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_clAzoPDE253xZdHuilRgz t yh_RiV3wUrLrDQYWSI&r=-0xOp6WEUxZEZ28IafXrMa3oLhGTFvyj7y8nzyNrgGo&m=j1 w IUaCCtyV6pMQ2CxxgYC3fKHJeLgEkzgeYabv5emo&s=yorBAqzyWy48Ti4gANfeOs0DjZ v 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.
________________________________ 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.