Re: ./build.sh -O ../obj tools producing error

Michael Cheponis <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <CAOaX04OqfR=Pct=g7qCXev3aH3ahS7Otv+tiN83kAzFbr-j7Bw@mail.gmail.com>
Thank you, uwe, I should have looked for a more appropriate list.


$ nm -D /lib/libc.so | grep sigaction


 ~/July.2023
0000000000099c18 T __libc_sigaction14
0000000000099c18 W __sigaction14
0000000000099dd4 T __sigaction_sigtramp
0000000000084dbc T sigaction

for completeness

# nm -D /lib/libc.so | grep sigaction


 /usr/crap/src.old/sys/arch/evbarm/conf
0000000000099c18 T __libc_sigaction14
0000000000099c18 W __sigaction14
0000000000099dd4 T __sigaction_sigtramp
0000000000084dbc T sigaction



It is *missing* __sigaction_siginfo          (!)

I have no idea what gives (how that happened), nor how to fix it.


Thanks much,
Mike


On Thu, Jul 27, 2023 at 8:41 AM Valery Ushakov <[email protected]> wrote:

> [...redirected to tech-toolchain...]
>
> On Mon, Jul 24, 2023 at 12:46:59 -0700, Michael Cheponis wrote:
>
> > # ./build.sh -O ../obj tools
> >
> > gives me:
> >
> > << stuff  >>
> > cc -o nbmake arch.o buf.o compat.o cond.o dir.o for.o hash.o job.o lst.o
> > main.o make.o make_malloc.o meta.o metachar.o parse.o str.o suff.o targ.o
> > trace.o util.o var.o
> > ld: job.o: in function `JobPassSig_suspend':
> > job.c:(.text+0xd04): undefined reference to `__sigaction_siginfo'
> > job.c:(.text+0xd04): relocation truncated to fit: R_AARCH64_CALL26
> against
> > undefined symbol `__sigaction_siginfo'
> [...]
> > $ uname -a
> > NetBSD arm64 10.99.4 NetBSD 10.99.4 (MIKE64) #0: Wed May 24 16:54:43 UTC
> > 2023  mac@arm64:/usr/obj/sys/arch/evbarm/compile/MIKE64 evbarm
>
> What does nm -D /lib/libc.so | grep sigaction say on the host?
>
> E.g. for the cross-built arm64 libc in distdir I get:
>
> 0000000000092400 T __libc_sigaction14
> 0000000000092400 W __sigaction14
> 000000000018d0a0 T __sigaction_siginfo
> 000000000018d134 T __sigaction_sigtramp
> 000000000008e688 T sigaction
>
> -uwe
>
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.