make -j1 LDLIBS= x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -std=gnu99 -W -Wall -Waggregate-return -Wcast-align -Wconversion -Wdisabled-optimization -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -DLIBEXECDIR=\/usr/lib/misc\ -Wl,-O1 -Wl,--as-needed -Wl,-z,now utempter.c -o utempter utempter.c:42:3: error: #error Unsupported platform 42 | # error Unsupported platform | ^~~~~ utempter.c: In function write_uwtmp_record: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200311-204810 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.2.0 * [2] x86_64-gentoo-linux-musl-9.3.0 clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-bin-1.41.1 [2] rust-1.41.1 * The following VMs are available for generation-2: repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Sun, 15 Mar 2020 22:38:22 +0000 emerge -qpvO sys-libs/libutempter [ebuild N ] sys-libs/libutempter-1.1.6-r2 USE="-static-libs"
Created attachment 620214 [details] emerge-info.txt
Created attachment 620216 [details] emerge-history.txt
Created attachment 620218 [details] environment
Created attachment 620220 [details] etc.portage.tbz2
Created attachment 620222 [details] sys-libs:libutempter-1.1.6-r2:20200315-235101.log
Created attachment 620224 [details] temp.tbz2
The first attempt to tinderbox a musl image failed at all. I'll mass close therefore all filed bug reports of the last days related to this tinderbox image. Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Created attachment 636038 [details, diff] Remove-GLIBC-Defines.patch Attached is a patch that fixes the build for musl based systems. There is nothing GLIBC specific here, and libutempter does not actually use any definitions from pty.h. I've sent the patch upstream too.
The upstream maintainer has accepted the proposed patch, Changes made their way into 1.2.0. I believe fixing this bug would be as simple as bumping the package version, The upstream source tarball is now available here: ftp://ftp.altlinux.org/pub/people/ldv/libutempter-1.2.0.tar.gz
Seems fixed, as 1.2.1 is in tree. Closing.