New to openjdk, apologies if this is obvious. I am trying to build the above as downloaded in source form from http://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 -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-jre/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-jre/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-jre/0.1-r16.0/git/jdk/src/share/javavm/export -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/0.1-r16.0/git/jdk/src/solaris/javavm/export -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/0.1-r16.0/git/jdk/src/share/native/common -I/sdd/peter/Yocto/CSPRT/build/tmp/work/aarch64-poky-linux/openjdk-8-jre/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/libunpack/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/libunpack/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.cpp
| aarch64-linux-gnu-g++: error: unrecognized command line option '-Wl'
| make[2]: *** [/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] 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.
Hi All,
I have ported openjdk-8-72b05(from Yocto) for both armv7 and aarch64
architectures. I am sharing sample code via link, which I have run to see
the crypto performance and found it is very slow compared to OpenJDK-7.
Code Location:
https://drive.google.com/open?id=0BxeL64n1TNdJMlItSWpld1lIdjg
See the output below:
root@Spider:~/Certificates# uname -a
Linux Spider 4.4.32-rt41-yocto-standard #1 SMP PREEMPT Mon Jan 9 00:24:23
PST 2017 aarch64 GNU/Linux
root@Spider:~/Certificates# time java -cp common-0.0.1-SNAPSHOT.jar:jars/*
com.ericsson.athena.common.certificate.Main
ERROR StatusLogger No log4j2 configuration file found. Using default
configuration: logging only errors to the console.
Generating KeyPair (Size 2048)...
PrivateKey: RSA Private CRT Key
modulus: cbd10bbf831335e4b9d0942ed4da06
2763caf63c3230f509ee7ce8c234bb6e6e6c1bf75c8e3a46f955227e7edc
ce1de0f6691320b1f5fa300f9f8819d0507243c264ca77cf3eac67450dd2
08b30f2e34cebc2bec1fc1aed6d2f389d5843492c19297038019c4302259
763aec26e302362ade9b7a190f1606cc0355c698f32e206c4af84032539c
3519b72feb1886ad5366a35e233942a38a32b25b25d418c0f4d452a491e1
64046b638d4b2777d743cdbb6b3a166fa413e0595414e3dd326468dad084
65fdbbb1551915645ea9d1c4783903b08327fd003590f85446315f6df73e
e64e26deac07e4fddd2e991869aac660dc489c68b989544788aeb91474258b
public exponent: 10001
private exponent: e210696a1a05b76e8d75d41112f5b5
d8557a4bc8fe1809dce231442f6433208c49a270a8b04de365af657b2355
e07dde2fc6e14dba6b37a7bc81c3811e3ff1a7f12314e49ec7728cce02ee
46729511387160358cc961c27e1f02668c9fa97b12f422468cfcb1fbd19d
a38d92069a7406db60882d7d4346631e409f65e5453fe500a49f6a04c0d9
06b7b180436f09027606db50f45c7847ce6febe01a882ffe73f9d1f15c4b
daaaa7be4ab15431e6b665ebc358a8ee55785e4157ff46052533d4b486b1
3393aae1d8d0b4fd3c7468e222506703915f10a016ce6c614e97ddc4156a
b3c42ecd4d60997924f2d5b8b2845d2f1b20a5132010f1d79dfd258cda1b1
primeP: ef0c9c674cd9134beedef5c0009784
0ed1b7fd281a0f8de837b217e447892c698b8e8deba9fd596550dd22fc79
561b5befd4659d281a44a15d56605c780eb22d809fffda7943e6f5f6dfb5
92b601502882e19478ec90c6f084afb8ba5eedf2509007869718ee82454e
54757165ca57269090fcc35bc19f6d00ce1877f0c56d3b
primeQ: da44dde77039f5405f9130dce4d1eb
a783f1c8d03657a61fb43a8e15387d566a59006abefb5ffa2cdff9b3c661
d62158da7f8d4a6b80eba4522292d9542d37350f0e48e46b0366ff65edeb
c781253518959d953e72c991581e24ebd76d92e238dae22ee2d5859ced88
c0d03d35db5b7eccd1766d7f1cb1e0859ad62db867e3f1
primeExponentP: aa05e9345be7459f4b6dcf92d998ea
b773988e79b85779d241d2ecc553d010039ddc2dbb01740de24eea8a18d2
e058a342686a41a62550cd08cb07cc9d23aebd487004954a8cee37e17869
f7c87614a24bbcd05255c7ff8750887f362790cc395ac7cf85a698f594ff
ca78a1c8096b85256bca2bd516592339605cecea1631c3
primeExponentQ: c76cdaaf064bfe37e5d97ba2a7f2e0
f43a4ae4a6d0affe99c30b291c5c73b04c14ab9bdc8942a50af14d6da359
6ad32722e41dcd1c323b9af46ca06daf4a6cc1aed2e768c419e4b67f8405
c44fcc161a33413ac6470cc21e97d43623abfae374fd1061b46150e613e5
b9fdc99f769fbf58161db567c9690072320974d6a31d91
crtCoefficient: bc841db992c7cdfa376cba7677e88d
5b81c27455db2371224aa3029179c93d638d8c6aec2d1af782647e5320da
356cb394115180296ed49841cf3adf0a2e3cff25669f172edd2c6e3ea5af
0a3c55bd1349f5c74de41333a48ec0ae0fb45f747b94897ae7ab74e7156c
5945a5833438113b6feda152b5a7190d584ff771637b4d
PublicKey: RSA Public Key
modulus: cbd10bbf831335e4b9d0942ed4da06
2763caf63c3230f509ee7ce8c234bb6e6e6c1bf75c8e3a46f955227e7edc
ce1de0f6691320b1f5fa300f9f8819d0507243c264ca77cf3eac67450dd2
08b30f2e34cebc2bec1fc1aed6d2f389d5843492c19297038019c4302259
763aec26e302362ade9b7a190f1606cc0355c698f32e206c4af84032539c
3519b72feb1886ad5366a35e233942a38a32b25b25d418c0f4d452a491e1
64046b638d4b2777d743cdbb6b3a166fa413e0595414e3dd326468dad084
65fdbbb1551915645ea9d1c4783903b08327fd003590f85446315f6df73e
e64e26deac07e4fddd2e991869aac660dc489c68b989544788aeb91474258b
public exponent: 10001
Generating Certificate...
Certificate PEM: -----BEGIN CERTIFICATE-----
MIIDfzCCAmegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgjENMAsGA1UEKQwEVGVz
dDELMAkGA1UEBhMCU0UxEjAQBgNVBAgMCVN0b2tjaG9sbTEOMAwGA1UEBwwFS2lz
dGExETAPBgNVBAoMCEhEUyA4MDAwMQwwCgYDVQQLDANDTU0xHzAdBgNVBAMMFlNl
Y3VyaXR5IFRydXN0IFNlcnZpY2UwHhcNMTcwMTI1MDMwMTI3WhcNMTgwMTI1MDMw
MTI3WjCBgjENMAsGA1UEKQwEVGVzdDELMAkGA1UEBhMCU0UxEjAQBgNVBAgMCVN0
b2tjaG9sbTEOMAwGA1UEBwwFS2lzdGExETAPBgNVBAoMCEhEUyA4MDAwMQwwCgYD
VQQLDANDTU0xHzAdBgNVBAMMFlNlY3VyaXR5IFRydXN0IFNlcnZpY2UwggEiMA0G
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDABdQWm514+56SR3TJR+bQvjztRVzN
NYXe67l0zsJfjprDf7mrSfe7NJMPjht/ltAgB4Pb8h8SlYZLtIKWF/fJ8rLRSNsZ
pxk1cvxVibPyyUoXLq+jOTTsplNBhl2LDzVMspwd66CckP/TIB46g8vr4xyQMiAt
tF6awL+ExY6V85/3btpjImBp66qhzZUiBnEOtQ5fNV6De4NQf7cLHGg7sdvcwWBv
Ngz1zIpFuBlzzyAvoYWhrUADN/KJMBPoPKdhBWTA1DSt+RT57dPqirLPUlIKNk74
t8De+XJQUf8A4bfvZDI6I1mFh6f0ujDAPxCx1VuI3nlVqovtT2P8JTDpAgMBAAEw
DQYJKoZIhvcNAQELBQADggEBAKM3/WxEDveIekL1qdBLBI6IuPRiarlrQFmKfD/F
+BNupyltBHOKpli4uS7IlO3QTQCJczk8Y6eh71fzOgavOJK9izAcJOj3wnTh6ICI
Iysb/Shh8X7C1dKHOrJe3mjzEAHbYEl/OOWae4UKrzr+p8JVrJpHucQMC/NUVMpi
f0FBNHfIMUezOloC97cSBMV+DaDkHhTYijmJ7ya1Jam++vO8Tspi3HcfslXxb3v9
jQ/sXhBMhvGNIErOHiHsOSK/BaE6DcDePixubcGJVQBIPlk2/BN7PYR+kyI8NkHZ
T+6+vvu36GPkJnuP94f1yglP2D7PsijBl+p1Qoi5hFyFJvg=
-----END CERTIFICATE-----
*real 7m3.241s*
*user 7m1.972s*
*sys 0m0.196s*
Could you please suggest any solution or patches to improve the performance?
Thanks in advance,
Srinivas