Link failures of ArcticFox on PPC

Riccardo Mottola <[email protected]> Thu, 18 Apr 2024 13:38:38 +0200
Newsgroups gmane.os.netbsd.ports.macppc
Message-ID <[email protected]>
Hi!

now that my iBook G4 is roughly working (still some issues... but enough 
to login also remotely and build and compile) I started to compile ArcticFox

I have 1.4GB is ram, which is tight, but enough on intel or linux, with 
enough swap. First attempt failed to link for out of swap, I added swap 
and got further.

It builds for... almost 10 hours but then fails:

<...snip>
617:32.80 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3d0): 
undefined reference to `nsXPTCStubBase::Stub242()'
617:32.80 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3d4): 
undefined reference to `nsXPTCStubBase::Stub243()'
617:32.80 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3d8): 
undefined reference to `nsXPTCStubBase::Stub244()'
617:32.80 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3dc): 
undefined reference to `nsXPTCStubBase::Stub245()'
617:32.81 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3e0): 
undefined reference to `nsXPTCStubBase::Stub246()'
617:32.81 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3e4): 
undefined reference to `nsXPTCStubBase::Stub247()'
617:32.81 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3e8): 
undefined reference to `nsXPTCStubBase::Stub248()'
617:32.81 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3ec): 
undefined reference to `nsXPTCStubBase::Stub249()'
617:32.81 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3f0): 
undefined reference to `nsXPTCStubBase::Sentinel0()'
617:32.82 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3f4): 
undefined reference to `nsXPTCStubBase::Sentinel1()'
617:32.82 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3f8): 
undefined reference to `nsXPTCStubBase::Sentinel2()'
617:32.82 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x3fc): 
undefined reference to `nsXPTCStubBase::Sentinel3()'
617:32.82 ld: 
../../xpcom/reflect/xptcall/xptcall.o:(.data.rel.ro.local._ZTV14nsXPTCStubBase[_ZTV14nsXPTCStubBase]+0x400): 
undefined reference to `nsXPTCStubBase::Sentinel4()'
617:32.82 ld: libxul.so: hidden symbol `_ZN14nsXPTCStubBase7Stub234Ev' 
isn't defined
617:32.83 ld: final link failed: bad value
617:32.83 gmake[5]: *** 
[/home/multix/code/Arctic-Fox/config/rules.mk:819: libxul.so] Error 1
617:32.83 gmake[4]: *** 
[/home/multix/code/Arctic-Fox/config/recurse.mk:71: 
toolkit/library/target] Error 2


do you have an idea where these symbols come from? what's wrong? On 
NetBSD amd64 all builds fine, on Linux PPC again builds so I wonder if 
something is strange in NetBSD/PPC here? a bell rings? I don't know 
these Stub and Sentinel symbols.

Riccardo