Re: pthread_weak

RVP <[email protected]>
Newsgroups gmane.os.netbsd.current
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.