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

64.2. libunwind-nongnu-1.8.3

The libunwind library — call-chain unwinding of this process, another one over ptrace, or a core file

1.8.3-1 · MIT · 0.2 SBU · 440.1 KiB, 68 files · 40_lang, 178 of 186 · ports/core/toolchain/libunwind-nongnu

Homepage: https://www.nongnu.org/libunwind/

Why it is in KDOS. The comment above it in script/phases/40_lang/packages.d/toolchain.txt:

Stack walking of another process (libunwind-ptrace): htop's backtrace screen, GStreamer's and libcamera's traces, samba's crash report.

libunwind (the nongnu.org project) determines a program’s call chain: libunwind walks the stack of the calling process, libunwind-ptrace that of another process through ptrace, and libunwind-coredump that of a core file. htop’s backtrace screen, gstreamer’s and libcamera’s traces and samba’s crash report use it.

It is distinct from LLVM’s libunwind, the C++ unwinder of the same name, which the tree keeps under a private prefix; /usr/include/libunwind.h, libunwind.so and the libunwind*.pc files are this port’s. See A second version beside the first.

Depends on: xz, zlib.

Required by (11): gimp, glog, gnuradio, gstreamer, htop, libcamera, nextpnr, samba, sdrangel, wine, zeromq.

Sources: libunwind-nongnu-1.8.3.tar.gz (958.0 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install libunwind-nongnu'

build.sh:

./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--disable-tests \
	--disable-unwind-header \
	--enable-ptrace \
	--enable-coredump \
	--enable-setjmp \
	--enable-minidebuginfo \
	--enable-zlibdebuginfo
make
make DESTDIR=$PKG install

for _m in doc/*.man; do
	_p=${_m##*/}
	install -Dm644 "$_m" "$PKG/usr/share/man/man3/${_p%.man}.3"
done

Libraries: libunwind-coredump.so, libunwind-generic.so, libunwind-ptrace.so, libunwind-setjmp.so, libunwind-x86_64.so, libunwind.so.

Directories: /usr/share/licenses/libunwind-nongnu.

The manual pages are generated from LaTeX sources by latex2man, which is not a port, and configure then skips the documentation directory with a warning. The source carries them already rendered as doc/*.man, and the loop at the end installs each as a section 3 page.