Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pthread_weak



On Thu, 2025-10-09 11:21:38 +0000, RVP <rvp%SDF.ORG@localhost> wrote:
> On Thu, 9 Oct 2025, Patrick Welche wrote:
> 
> > Just noticed a -current/amd64 gcc14 build fail with:
> > 
> > #      link  test/t_pthread_weak_nothread
> > /usr/src/obj.amd64/tooldir.NetBSD-11.99.3-amd64/bin/x86_64--netbsd-gcc    --sysroot=/usr/export/amd64 -Wl,--warn-shared-text
> > rel -Wl,-z,relro   -pie  -shared-libgcc      -o t_pthread_weak_nothread  t_pthread_weak_nothread.o  -Wl,-rpath-link,/usr/exp
> > ort/amd64/lib  -L=/lib -L -Wl,-rpath,/usr/tests/lib/libpthread/weak -lh_pthread_weak     -latf-c
> > 
>                           ^^
> 
> The dir. is missing after the `-L' there.
> 
> In src/tests/lib/libpthread/weak/test/Makefile, there's this:
> 
> H_PTHREAD_WEAK_OBJDIR!= cd ../lib && ${PRINTOBJDIR}
> 
> If either of those commands fail, or produce no output, then `H_PTHREAD_WEAK_OBJDIR'
> will end up being blank. Most likely it's the `cd ../lib' that's failed. Is
> `/usr/export/amd64' on NFS? If it's only a transient error, you could just retry.

I see this breakage as well (building on Linux for NetBSD-VAX),
consistently on a local filesystem. (It's now covered by an even
earlier breakage due to a small issue with GCC 14.)

  Indeed, the `cd ../lib` part seems to not work, I found this in the
build log (cf.
http://toolchain.lug-owl.de/laminar/log/netbsd-vax-vax/164):

[bld rel 2025-10-09 22:28:12] + echo dependall ===> tests/lib/libpthread/weak/test
[bld rel 2025-10-09 22:28:12] dependall ===> tests/lib/libpthread/weak/test
[bld rel 2025-10-09 22:28:12] + cd /var/lib/laminar/run/netbsd-vax-vax/164/NetBSD-src/tests/lib/libpthread/weak/test
[bld rel 2025-10-09 22:28:12] + /var/lib/laminar/run/netbsd-vax-vax/164/tools-vax-vax/bin/nbmake _THISDIR_=tests/lib/libpthread/weak/test/ dependall
[bld rel 2025-10-09 22:28:12] /usr/bin/sh: 1: cd: can't cd to ../lib
[bld rel 2025-10-09 22:28:12] nbmake[9]: /var/lib/laminar/run/netbsd-vax-vax/164/NetBSD-src/tests/lib/libpthread/weak/test/Makefile:14: warning: Command "cd ../lib && /var/lib/laminar/run/netbsd-vax-vax/164/tools-vax-vax/bin/nbmake -B -V .OBJDIR" exited with status 2
[bld rel 2025-10-09 22:28:12] echo '#  ' " create " test/t_pthread_weak_nothread.d
[bld rel 2025-10-09 22:28:12] + echo #    create  test/t_pthread_weak_nothread.d
[bld rel 2025-10-09 22:28:12] #    create  test/t_pthread_weak_nothread.d

MfG, JBG

-- 

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index