Page 1 of 1

failed to use musl C library yocto project

Posted: Sat May 25, 2019 8:08 pm
by Gaston
I'm using yocto project sumo branch to build linux kernel for my sama5d27 som1 board. I'm trying to reduce the size of the released kernel so I replaced sysVinit to busybox init and now I am trying to replace gClibrary with musl C library.

Under my Poky directory I cloned meta-musl layer using:

git clone git://

I added the layer to bblayers.conf and also added TCLIBC = "musl" to local.conf I initialized the environment and then run bitbake core-image-minimal

I got these errors:

ERROR: systemd-1_237-r0 do_compile: Function failed: do_compile (log file is located at /home/gaston/linux4sam/poky/build-microchip/tmp/work/cortexa5t2hf-neon-poky-linux-musleabi/systemd/1_237-r0/temp/log.do_compile.6846)

ERROR: Logfile of failure stored in: /home/gaston/linux4sam/poky/build-microchip/tmp/work/cortexa5t2hf-neon-poky-linux-musleabi/systemd/1_237-r0/temp/log.do_compile.6846

ERROR: Task (/home/gaston/linux4sam/poky/meta/recipes-core/systemd/ failed with exit code '1'

How can i fix this please ?