[Pkg-electronics-devel] Bug#1098791: kicad: Please include patch to link against libatomic on powerpc

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Mon Feb 24 11:02:15 GMT 2025


On Mon, 2025-02-24 at 19:37 +0900, Simon Richter wrote:
> Hi,
> 
> On 2/24/25 18:02, John Paul Adrian Glaubitz wrote:
> 
> > +export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
> 
> That smells wrong, there should be no need for --no-as-needed, and 
> without that, this can just be linked unconditionally everywhere.

It's commonly used across Debian like that. But feel free to adjust the
flags to suit your own preferences. I'm just suggesting a patch that is
known to work and that I have verified on powerpc (perotto.debian.net).

> It should be fixed upstream though, by making libatomic a PUBLIC 
> dependency of libcommon.

I fully agree.

> > Please see the attached patch. I have also included armel, m68k and sh4 in the
> > architecture list as this should also be necessary on these architectures.
> 
> Probably also riscv.
> 
> > PS: Would be nice if kicad could be built for any architecture.
> 
> The main problem would probably be below "thirdparty/libcontext", which 
> has some assembler code.

Okay, fair enough. I will look into adding sparc64 in the future then as it's
actually supported even by Kicad's libcontext fork [1].

Adrian

> [1] https://github.com/twlostow/libcontext

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-electronics-devel mailing list