Port-macppc archive

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

Re: atomic link failures for ArcticFox



On Wed, May 15, 2024 at 01:08:18AM +0200, Riccardo Mottola wrote:
> stub symbols now appear fine, but I end up with:
> 
> 584:20.85 ld: ../../toolkit/library/libxul.so: undefined reference to
> `__atomic_fetch_add_8'
> 584:20.85 ld: ../../toolkit/library/libxul.so: undefined reference to
> `__atomic_store_8'
> 584:20.85 ld: ../../toolkit/library/libxul.so: undefined reference to
> `__atomic_load_8'
> 584:20.86 ld: ../../toolkit/library/libxul.so: undefined reference to
> `__atomic_fetch_sub_8'
> 
> 
> do I need -latomic like on linux PPC?

You mean NetBSD? I don't know about Linux. NetBSD does not paper over the
lack of 64bit atomics in 32bit ppc userland by default, so: yes.

Unless you can compile the code (there often are #ifdef's for it)
to avoid the 64bit data type that is used atomically here.

> It appears not to exist.. do I need to install it?

Yes, many pkgs in pkgsrc add it as a dependency on i386 and ppc (and
a few more less common architectures).

Martin


Home | Main Index | Thread Index | Old Index