too long lines were shrinked: x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed- x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed- x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed- x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed- x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed- restripe.c: In function 'restore_stripes': restripe.c:758:43: error: 'off64_t' undeclared (first use in this function); did you mean 'off_t'? 758 | (off64_t)read_offset) { | ^~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-j5-20230521-051504 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-13 * clang/llvm (if any): clang version 16.0.4 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/16 16.0.4 Python 3.11.3 Available Ruby profiles: [1] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.69.0 * php cli (if any): go version go1.20.4 linux/amd64 HEAD of ::gentoo commit 40dbd3b3dbb7503f02986009a2b619f3ecb084af Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue May 23 21:32:01 2023 +0000 2023-05-23 21:32:00 UTC emerge -qpvO sys-fs/mdadm [ebuild N ] sys-fs/mdadm-4.2-r1 USE="udev -static (-systemd)"
Created attachment 862384 [details] emerge-info.txt
Created attachment 862385 [details] emerge-history.txt
Created attachment 862386 [details] environment
Created attachment 862387 [details] etc.clang.tar.bz2
Created attachment 862388 [details] etc.portage.tar.bz2
Created attachment 862389 [details] sys-fs:mdadm-4.2-r1:20230523-224206.log
Created attachment 862390 [details] temp.tar.bz2
Created attachment 872995 [details, diff] lfs64.patch (from Alpine Linux) The patch taken from Alpine Linux fixes the issue. https://git.alpinelinux.org/aports/tree/main/mdadm/lfs64.patch
Created attachment 874140 [details, diff] off64_t fix for musl Alternate fix using different FTM
I'm not sure which impact resorting to off_t exactly has, esp. on non 64-Bit systems.
(In reply to Sven E. from comment #9) > Created attachment 874140 [details, diff] [details, diff] > off64_t fix for musl > > Alternate fix using different FTM As per the tracker, that is not a valid fix and will break with the next musl release.