Current-Users archive

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

Re: pthread_weak



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.

-RVP


Home | Main Index | Thread Index | Old Index