gaston
gaston

Reputation: 51

MUSL C library does not work yocto project

I'm using yocto project 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://github.com/kraj/meta-musl.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/systemd_237.bb:do_compile) failed with exit code '1'

Could you please help me out ?

Upvotes: 0

Views: 2143

Answers (1)

Oleksandr Kravchuk
Oleksandr Kravchuk

Reputation: 6319

I might be wrong, but it looks like meta-musl is something that was made for Yocto before musl was integrated into the project.

You can see the meta-layer has not been updated in 4 years. Just add TCLIBC = "musl" to your project's config and use what is available in Yocto now.

Upvotes: 4

Related Questions