Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

161.10. picolibc-arm-none-eabi-1.8.12

The C library for arm-none-eabi — newlib trimmed for a microcontroller

1.8.12-1 · BSD-3-Clause AND BSD-2-Clause · 12.4 SBU · 46.0 MiB, 846 files · 41_system, 468 of 1047 · ports/core/embedded/picolibc-arm-none-eabi

Homepage: https://github.com/picolibc/picolibc

Why it is in KDOS. The comment above the 4 ports from binutils-arm-none-eabi to libstdcxx-arm-none-eabi in script/phases/41_system/packages.d/embedded.txt:

THE ORDER IS THE DEPENDENCY. binutils first, then a gcc built --without-headers so libgcc can exist before a libc does, then the libc built WITH that gcc. One recipe cannot do the last two: the compiler has to be installed before the library it compiles can configure against it.

Cortex-M and Cortex-R. --with-multilib-list=rmprofile is what keeps this to the profiles a microcontroller actually is, rather than every ARM variant since 1985.

Depends on: meson, ninja, gcc-arm-none-eabi, binutils-arm-none-eabi.

Required by (2): libstdcxx-arm-none-eabi, picotool.

Sources: picolibc-arm-none-eabi-1.8.12.tar.xz (3.1 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install picolibc-arm-none-eabi'

build.sh:

unset CFLAGS CXXFLAGS LDFLAGS
meson setup build \
	--cross-file scripts/cross-arm-none-eabi.txt \
	--prefix=/usr/arm-none-eabi \
	-Dsysroot-install=true \
	-Dtests=false \
	--buildtype=release
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Directories: /usr/arm-none-eabi/include/arpa, /usr/arm-none-eabi/include/bits, /usr/arm-none-eabi/include/machine, /usr/arm-none-eabi/include/rpc, /usr/arm-none-eabi/include/ssp, /usr/arm-none-eabi/include/sys, /usr/share/licenses/picolibc-arm-none-eabi.