On Tue, May 14, 2024 at 12:01:23PM +0200, Alyssa Ross wrote: > Since updating from util-linux 2.39.3 to 2.40.1 in Nixpkgs, we've been > seeing intermittent parallel build failures like the following: What does it mean "parallel build"? make -j ? > libtool: warning(B: relinking 'pam_lastlog2.la'(B libtool: install: > (cd /build/util-linux-2.40.1; > /nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash > "/build/util-linux-2.40.1/libtool" --silent --tag CC --mode=relink > gcc -fsigned-char -fno-common -Wall -Wextra > -Waddress-of-packed-member -Wdiscarded-qualifiers -Wformat-security > -Wimplicit-function-declaration -Wmissing-declarations > -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs > -Wno-missing-field-initializers -Wold-style-definition > -Wpointer-arith -Wredundant-decls -Wsign-compare -Wstrict-prototypes > -Wtype-limits -Wuninitialized -Wunused-but-set-parameter > -Wunused-but-set-variable -Wunused-parameter -Wunused-result > -Wunused-variable -Wvla -Walloca -Werror=sequence-point > -I./liblastlog2/src -g -O2 -module -avoid-version -shared > pam_lastlog2_la_LDFLAGS += I'm not sure, but it seems like you're being affected by an extra "+=" in the LDFLAGS. This should be fixed by... https://github.com/util-linux/util-linux/commit/290748729dc3edf9ea1c680c8954441a5e367a44 https://github.com/util-linux/util-linux/commit/597e8b246ae31366514ead6cca240a09fe5e1528 Can you try your use case with the latest git tree? Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com