linux4sam / meta-atmel

OpenEmbedded/Yocto Project layer for for Microchip SoC (aka AT91)
https://www.linux4sam.org/bin/view/Linux4SAM/YoctoProject
MIT License
91 stars 120 forks source link

[MACHINE=] bitbake microchip-headless-image | meta-atmel for yocto rootfs #258

Closed sephiroth6 closed 9 months ago

sephiroth6 commented 1 year ago

Hello there, I'm trying to compile and build by my self from source code. No problems with AT91Bootstrap, U-Boot and Kernel. During compiling yocto/poky I had some issues, but now I builded correctly these versions: MACHINE=sama5d2-xplained-sd bitbake core-image-minimal MACHINE=sama5d27-som1-ek-sd bitbake core-image-minimal

Now I'm trying to build:

I have the same error nodejs with both machine:

| collect2: fatal error: ld terminated with signal 9 [Killed] | compilation terminated. | make[1]: [tools/v8_gypfiles/mksnapshot.host.mk:196: Release/mksnapshot] Error 1 | make: [Makefile:113: node] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. ERROR: Task (./poky/../meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 5613 tasks of which 5563 didn't need to be rerun and 1 failed.

Summary: 1 task failed: ./poky/../meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_16.20.2.bb:do_compile Summary: There were 2 ERROR messages, returning a non-zero exit code.

Branch: kirkstone Dev machine: Ubuntu Server 20.04.6

Anyone with the same issue ?

Thanks

Dharma-B commented 1 year ago

Hi @sephiroth6,

npm requires at least 16GB of RAM, if it's easy then I would suggest getting more RAM, otherwise, try to reduce the number of parallel tasks that yocto is running.