Re: lib/60535: 32-bit libpthread lacks __libc_thr_join
"RVP via gnats" <[email protected]> Mon, 3 Aug 2026 23:00:02 +0000 (UTC)
| Newsgroups | gmane.os.netbsd.bugs |
|---|---|
| Message-ID | <[email protected]> |
The following reply was made to PR lib/60535; it has been noted by GNATS. From: RVP <[email protected]> To: [email protected] Cc: Subject: Re: lib/60535: 32-bit libpthread lacks __libc_thr_join Date: Mon, 3 Aug 2026 22:58:44 +0000 (UTC) On Mon, 3 Aug 2026, Rainer Orth via gnats wrote: > > Is the base32 set[1] installed? Due to space constraints, the amd64 ISO images > > don't have the 32-bit compat sets. (The DVD images do have them.) > > Sure, otherwise there would be no /usr/lib/i386/libpthread.so (or > libc.so for that matter) at all. > Ah, that's true, but, I see that the *.a files exist in /usr/lib/i386/. (Prolly should be removed.) > Btw., I just noticed that this is only an issue on NetBSD/amd64 11.0. > On NetBSD/i386 11.0, libpthread contains e.g. __libc_thr_join just fine. > Without the base32 set, I see: ``` qemu$ uname -a NetBSD qemu.local 11.0_STABLE NetBSD 11.0_STABLE (GENERIC) #0: Sun Aug 2 14:10:41 UTC 2026 [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64 qemu$ gcc -m32 -pthread -o pt pt.c -lpthread ld: cannot find -lgcc_s: No such file or directory ld: cannot find -lgcc_s: No such file or directory qemu$ `` After unpacking the base32 set: ``` qemu$ gcc -m32 -pthread -o pt pt.c -lpthread qemu$ ls -l pt -rwxr-xr-x 1 rvp wheel 20496 Aug 3 22:57 pt qemu$ ./pt [1] Segmentation fault (core dumped) ./pt qemu$ ``` -RVP