#yocto #meta-java #yocto #meta-java


Andrey Zhizhikin
 

On Tue, Nov 10, 2020 at 8:30 PM Richard Leitner
<richard.leitner@skidata.com> wrote:

Hi,

On Tue, Nov 10, 2020 at 08:47:46AM -0800, feki.ayman94@gmail.com wrote:
[Edited Message Follows]

Hello;
I'm working on a Ubuntu 18.04 machine. and NXP release L5.4.24 for IMX8M Mini.
I did successfully "bitbake" my custom image.
Then I am trying to add support for openjdk-8.
Referred " How to add openjdk to Yocto Layers ( https://community.nxp.com/docs/DOC-345333 ) "
I did " git checkout -b *zeus* origin/zueus"
I guess that should read "origin/zeus"?

Is there a specific reason why you're using zeus? I'm asking because I'm
currently not maintaining the zeus branch of meta-java (as it's EOL).
I believe the reason is NXP provides their vendor BSP based on zeus,
hence the author opted to checkout corresponding branch in meta-java.

Therefore I would recommend to switch to dunfell or gatesgarth if
possible.
This is a good suggestion that I would follow!

There was a blog post [1] on how to build a "poky" upstream distro and
not using NXP-specific BSP. This should assist in switching from NXP
BSP to community one. It already provides dunfell compatibility, and
has NXP release 5.4.24-2.1.0 integrated.


regards;rl

I did modify bblayers.conf and local.conf as per the guide.

But when I tried to do "bitbake openjdk-8", got following error:

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 122 Found 87 Missed 35 Current 368 (71% match, 92% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
*ERROR: ecj-bootstrap-native-1.0-r1 do_prepare_recipe_sysroot: The file /usr/include/gc.h is installed by both bdwgc-native and cacao-native, aborting*
*ERROR: Logfile of failure stored in: /home/ayman/YOCTO/imx_repo/menzu/tmp/work/x86_64-linux/ecj-bootstrap-native/1.0-r1/temp/log.do_prepare_recipe_sysroot.14496*
*ERROR: Task (/home/ayman/YOCTO/imx_repo/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb:do_prepare_recipe_sysroot) failed with exit code '1'*
NOTE: Tasks Summary: Attempted 1032 tasks of which 1029 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ayman/YOCTO/imx_repo/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb:do_prepare_recipe_sysroot
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Would you please provide some pointers to resolve this issue?

Thanks and regards.




[1]: https://yoctoproject.blogspot.com/2020/09/how-to-build-core-image-minimal-with.html

--
Regards,
Andrey.


Richard Leitner
 

Hi,

On Tue, Nov 10, 2020 at 08:47:46AM -0800, feki.ayman94@gmail.com wrote:
[Edited Message Follows]

Hello;
I'm working on a Ubuntu 18.04 machine. and NXP release L5.4.24 for IMX8M Mini.
I did successfully "bitbake" my custom image.
Then I am trying to add support for openjdk-8.
Referred " How to add openjdk to Yocto Layers ( https://community.nxp.com/docs/DOC-345333 ) "
I did " git checkout -b *zeus* origin/zueus"
I guess that should read "origin/zeus"? ūüėČ

Is there a specific reason why you're using zeus? I'm asking because I'm
currently not maintaining the zeus branch of meta-java (as it's EOL).
Therefore I would recommend to switch to dunfell or gatesgarth if
possible.

regards;rl

I did modify bblayers.conf and local.conf as per the guide.

But when I tried to do "bitbake openjdk-8", got following error:

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 122 Found 87 Missed 35 Current 368 (71% match, 92% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
*ERROR: ecj-bootstrap-native-1.0-r1 do_prepare_recipe_sysroot: The file /usr/include/gc.h is installed by both bdwgc-native and cacao-native, aborting*
*ERROR: Logfile of failure stored in: /home/ayman/YOCTO/imx_repo/menzu/tmp/work/x86_64-linux/ecj-bootstrap-native/1.0-r1/temp/log.do_prepare_recipe_sysroot.14496*
*ERROR: Task (/home/ayman/YOCTO/imx_repo/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb:do_prepare_recipe_sysroot) failed with exit code '1'*
NOTE: Tasks Summary: Attempted 1032 tasks of which 1029 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ayman/YOCTO/imx_repo/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb:do_prepare_recipe_sysroot
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Would you please provide some pointers to resolve this issue?

Thanks and regards.



feki.ayman94@...
 
Edited

Hello;
I'm working on a Ubuntu 18.04 machine. and NXP release L5.4.24 for IMX8M Mini.
I did successfully "bitbake" my custom image.
Then I am trying to add support for openjdk-8.
Referred "How to add openjdk to Yocto Layers "
I did "git checkout -b zeus origin/zueus"
I did modify bblayers.conf and local.conf as per the guide.

But when I tried to do "bitbake openjdk-8", got following error:

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 122 Found 87 Missed 35 Current 368 (71% match, 92% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
ERROR: ecj-bootstrap-native-1.0-r1 do_prepare_recipe_sysroot: The file /usr/include/gc.h is installed by both bdwgc-native and cacao-native, aborting
ERROR: Logfile of failure stored in: /home/ayman/YOCTO/imx_repo/menzu/tmp/work/x86_64-linux/ecj-bootstrap-native/1.0-r1/temp/log.do_prepare_recipe_sysroot.14496
ERROR: Task (/home/ayman/YOCTO/imx_repo/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb:do_prepare_recipe_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1032 tasks of which 1029 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/ayman/YOCTO/imx_repo/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb:do_prepare_recipe_sysroot
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Would you please provide some pointers to resolve this issue?

Thanks and regards.