Hi,
I just send a patch to the mailing list, that correctly fixes this issue.
The real issue is that before 020d5f0, a baremetal gcc-cross was built
without proper sysroot paths and the libgcc (and maybe also other
builds) used headers from the host.
I guess this could lead to more built errors in other recipes, that rely
on the availability of libc headers, but theses recipes must be fixed then.
IMHO the bug I fixed with 020d5f0 has far greater reach than I expected,
because it has the potential to poison a lot of builds with host headers
and could have hid a lot of problems in the past.
PLEASE do not merge the revert, but merge the fix to libgcc instead.
Jörg
On 06.10.2026 23:42, Denys Dmytriyenko wrote:
From: Denys Dmytriyenko <[email protected]>
While this change has good intentions, unfortunaly, it completely
breaks baremetal setup (at least for ARM arch).
The line this change removes seems to mask an underlying issue,
but until that issue is fully understood and resolved, let's
revert it and restore the working baremetal behavior.
For more details please see the following discussion:
https://lists.openembedded.org/g/openembedded-core/topic/121486589
This reverts commit 020d5f018616bc48eae3a23d5498dec3c78a1386.
Signed-off-by: Denys Dmytriyenko <[email protected]>
---
meta/conf/distro/include/tclibc-baremetal.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/conf/distro/include/tclibc-baremetal.inc
b/meta/conf/distro/include/tclibc-baremetal.inc
index 6043cb6654..abea5a7162 100644
--- a/meta/conf/distro/include/tclibc-baremetal.inc
+++ b/meta/conf/distro/include/tclibc-baremetal.inc
@@ -18,6 +18,7 @@ USE_NLS ?= "no"
IMAGE_LINGUAS = ""
LIBC_DEPENDENCIES = ""
+EXTRA_OECONF:pn-gcc-cross-${TARGET_ARCH}:append = " --without-headers"
DEPENDS:remove:pn-meta-toolchain = "virtual/libc virtual/compilerlibs"
# certain compiler libs cannot be used without libc, avoid the dependence on compilerlibs
--
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail [email protected]
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
Office München: Am Knie 16, 81241 München, Germany
http://www.emlix.com
emlix - your embedded Linux partner
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#247375):
https://lists.openembedded.org/g/openembedded-core/message/247375
Mute This Topic: https://lists.openembedded.org/mt/121618723/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-