From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Yegor Yefremov <yegorslists@googlemail.com>
Cc: buildroot@buildroot.org, Boerge Struempfel <boerge.struempfel@gmail.com>
Subject: Re: [Buildroot] [PATCH] package/libgpiod2: fix static build
Date: Sun, 25 Oct 2026 18:33:53 +0100 [thread overview]
Message-ID: <at49fQaUFcnZqSAT@windsurf> (raw)
In-Reply-To: <20261024132350.3708324-1-yegorslists@googlemail.com>
On Sat, Oct 24, 2026 at 03:23:50PM +0200, Yegor Yefremov via buildroot wrote:
> libgpiod 2.3 switched to meson, and builds its libraries with
> both_libraries(), so the shared library is always built, even with
> -Ddefault_library=static. With BR2_STATIC_LIBS, linking it with -static
> then fails, e.g. on ARC:
>
> FAILED: [code=1] lib/libgpiod.so.3.1.2
> [...] crtbeginT.o: relocation R_ARC_32_ME against `__TMC_END__' can not be used when making a shared object; recompile with -fPIC
> [...] BFD (GNU Binutils) 2.47.20260726 assertion fail elf32-arc.c:1815
> collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
>
> Add a patch, sent upstream, using library() instead, so that the
> libraries follow default_library and only the static ones are built.
> As a side effect, shared builds no longer install the unused static
> libraries to staging.
>
> This issue has been present since commit 1d132d04fc0e
> ("package/libgpiod2: bump to version 2.3.1"), which switched to the
> meson build system. It therefore affects 2026.08 and later.
>
> Fixes:
> https://autobuild.buildroot.org/results/7dc84554b75a370136bfa2451f4b4c3dde0d92e8
>
> Fixes: 1d132d04fc0ecac014be003b7e1662c47672328b ("package/libgpiod2: bump to version 2.3.1")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-10-25 17:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-24 13:23 [Buildroot] [PATCH] package/libgpiod2: fix static build Yegor Yefremov via buildroot
2026-10-25 17:33 ` Thomas Petazzoni via buildroot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=at49fQaUFcnZqSAT@windsurf \
--to=buildroot@buildroot.org \
--cc=boerge.struempfel@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yegorslists@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.