* [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF"
@ 2026-10-06 21:42 Denys Dmytriyenko
2026-10-07 6:01 ` [OE-core] " Jörg Vehlow
2026-10-07 14:30 ` Paul Barker
0 siblings, 2 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2026-10-06 21:42 UTC (permalink / raw)
To: openembedded-core; +Cc: Denys Dmytriyenko
From: Denys Dmytriyenko <denys@konsulko.com>
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 <denys@konsulko.com>
---
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
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF"
2026-10-06 21:42 [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF" Denys Dmytriyenko
@ 2026-10-07 6:01 ` Jörg Vehlow
2026-10-07 14:30 ` Paul Barker
1 sibling, 0 replies; 5+ messages in thread
From: Jörg Vehlow @ 2026-10-07 6:01 UTC (permalink / raw)
To: Denys Dmytriyenko, openembedded-core; +Cc: Denys Dmytriyenko
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 <denys@konsulko.com>
>
> 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 <denys@konsulko.com>
> ---
> 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
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#247356): https://lists.openembedded.org/g/openembedded-core/message/247356
> Mute This Topic: https://lists.openembedded.org/mt/121618723/10666459
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [joerg.vehlow@emlix.com]
> -=-=-=-=-=-=-=-=-=-=-=-
--
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF"
2026-10-06 21:42 [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF" Denys Dmytriyenko
2026-10-07 6:01 ` [OE-core] " Jörg Vehlow
@ 2026-10-07 14:30 ` Paul Barker
2026-10-07 20:13 ` [OE-core] " Ryan Eatmon
2026-10-07 20:14 ` Denys Dmytriyenko
1 sibling, 2 replies; 5+ messages in thread
From: Paul Barker @ 2026-10-07 14:30 UTC (permalink / raw)
To: Denys Dmytriyenko, openembedded-core; +Cc: Denys Dmytriyenko
On Tue, 2026-10-06 at 17:42 -0400, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko <denys@konsulko.com>
>
> 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 <denys@konsulko.com>
> ---
> 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"
Hi Denys,
I wonder if the fix is that this should be:
EXTRA_OECONF:append:pn-gcc-cross-${TARGET_ARCH}
Best regards,
--
Paul Barker
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF"
2026-10-07 14:30 ` Paul Barker
@ 2026-10-07 20:13 ` Ryan Eatmon
2026-10-07 20:14 ` Denys Dmytriyenko
1 sibling, 0 replies; 5+ messages in thread
From: Ryan Eatmon @ 2026-10-07 20:13 UTC (permalink / raw)
To: Paul Barker, Denys Dmytriyenko, openembedded-core; +Cc: Denys Dmytriyenko
On 10/7/2026 9:30 AM, Paul Barker wrote:
> On Tue, 2026-10-06 at 17:42 -0400, Denys Dmytriyenko wrote:
>> From: Denys Dmytriyenko <denys@konsulko.com>
>>
>> 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 <denys@konsulko.com>
>> ---
>> 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"
>
> Hi Denys,
>
> I wonder if the fix is that this should be:
>
> EXTRA_OECONF:append:pn-gcc-cross-${TARGET_ARCH}
>
> Best regards,
That would fix the bad behavior but would result in the same build issue
that we see when just removing it. I think the issue might be fixed by
the gcc fix that Jeorg sent to the list. I'm going to test this build
with his patch right now and see if it fixes everything.
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#247400): https://lists.openembedded.org/g/openembedded-core/message/247400
> Mute This Topic: https://lists.openembedded.org/mt/121618723/6551054
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [reatmon@ti.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF"
2026-10-07 14:30 ` Paul Barker
2026-10-07 20:13 ` [OE-core] " Ryan Eatmon
@ 2026-10-07 20:14 ` Denys Dmytriyenko
1 sibling, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2026-10-07 20:14 UTC (permalink / raw)
To: Paul Barker; +Cc: openembedded-core, Denys Dmytriyenko
On Wed, Oct 07, 2026 at 03:30:10PM +0100, Paul Barker wrote:
> On Tue, 2026-10-06 at 17:42 -0400, Denys Dmytriyenko wrote:
> > From: Denys Dmytriyenko <denys@konsulko.com>
> >
> > 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 <denys@konsulko.com>
> > ---
> > 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"
>
> Hi Denys,
>
> I wonder if the fix is that this should be:
>
> EXTRA_OECONF:append:pn-gcc-cross-${TARGET_ARCH}
Yeah, I noticed the order of overrides is backwards, but don't think it
matters and the issue is deeper it seems. I see that Joerg send a follow up
patch to address it, but I haven't been able to test it yet.
--
Denys
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-10-07 20:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 21:42 [PATCH] Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF" Denys Dmytriyenko
2026-10-07 6:01 ` [OE-core] " Jörg Vehlow
2026-10-07 14:30 ` Paul Barker
2026-10-07 20:13 ` [OE-core] " Ryan Eatmon
2026-10-07 20:14 ` Denys Dmytriyenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox