Facing issue in compilation while adding support of openjdk-8 in yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Facing issue in compilation while adding support of openjdk-8 in yocto

1,323 Views
prashant_parmar
Contributor I

Hello,

I have imx8m version, did setup for yocto for version L5.4.24 on ubuntu 18.04 LTS system.

I am trying to add support for openjdk-8, meanwhile facing issue during build openjdk-8.

Followed below links and resolved few tool chain setup issues.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-add-openjdk-to-Yocto-Layers/ta-p/...

Switched meta-java branch to krogoth as well as zeus, faced same issue on both branch.

faced below error during compilation using gcc-8 and above version.

aarch64-poky-linux-g++: error: unrecognized command line option '-m64

tried to resolve above error by removing -m64 flag check for amd64 version check in gcc makefiles.
after resolving errors caused by -m64 flag, facing below error

error: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated [-Werror=deprecated-declarations].

as well as seen below warning during compilation, does openjdk-8 support has been added for aarch64?

WARNING: openjdk-8 does not support aarch64 yet
WARNING: openjdk-8 does not support aarch64 yet
WARNING: openjdk-8-102b14-r0 do_compile: openjdk-8 does not support aarch64 yet

Please, anyone can help me to achieve this?

Any help would be appreciated.Warning - openjdk-8 does not support.PNG

Thank You,
Prashant Parmar

0 Kudos
Reply
2 Replies

1,302 Views
prashant_parmar
Contributor I

I followed the document previously, was facing the error.

I'm able to compile it with Zeus branch, found that error were present due to gcc version

0 Kudos
Reply

1,315 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

We have add openjdk-8 to L4.1.15 and L4.19.35 successfully.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-add-openjdk-to-Yocto-Layers/ta-p/...

But failed in L5.4.24_2.1.0, the root cause seems to be caused by the compiler.

Hope this can do some help for you

Wish you have a nice day

0 Kudos
Reply