[Buildroot] [PATCH 1/1] package/numactl: link with -latomic if needed

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Nov 2 20:02:16 UTC 2022


On Wed,  2 Nov 2022 13:35:00 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure raised since bump to version 2.0.16 in
> commit e9bc980d93a189a16e7320bd254b906c87ca9f87:
> 
> /nvmedata/autobuild/instance-7/output-1/per-package/numactl/host/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: ./.libs/libnuma.a(libnuma.o): in function `numa_police_memory':
> libnuma.c:(.text+0xe28): undefined reference to `__atomic_fetch_and_1'
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/a92c1c60518d3fe08f3f808f9cc812031e85a4e9
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  ...01-link-with-latomic-if-needed-again.patch | 41 +++++++++++++++++++
>  package/numactl/numactl.mk                    |  2 +
>  2 files changed, 43 insertions(+)
>  create mode 100644 package/numactl/0001-link-with-latomic-if-needed-again.patch

Also related to numactl and libatomic, we also have this pending patch:
https://patchwork.ozlabs.org/project/buildroot/patch/20221024174911.75444-1-abrodkin@synopsys.com/,
which still seems weird to me.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list