Skip to contentSkip to conversation

Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF"

PATCH In review Denys Dmytriyenko 4 participants 5 messages Oct 6 – Oct 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "tclibc-baremetal.inc: fix gcc-cross EXTRA_OECONF"

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.

---
 meta/conf/distro/include/tclibc-baremetal.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/tclibc-baremetal.inc +1 -0
index 6043cb6654..abea5a7162 100644
@@ -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
Signature · 1 line
2.25.1
#1 lore raw

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

Quoted 41 lines · Denys Dmytriyenko

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.

---
  meta/conf/distro/include/tclibc-baremetal.inc | 1 +
  1 file changed, 1 insertion(+)
meta/conf/distro/include/tclibc-baremetal.inc +1 -1
index 6043cb6654..abea5a7162 100644
@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 12 lines
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
#2 lore raw
In reply to Denys Dmytriyenko
Quoted 24 lines · Denys Dmytriyenko

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.

---
 meta/conf/distro/include/tclibc-baremetal.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/tclibc-baremetal.inc +0 -0
index 6043cb6654..abea5a7162 100644

meta/conf/distro/include/tclibc-baremetal.inc USE_NLS ?= "no" · line 21

Quoted 4 lines
meta/conf/distro/include/tclibc-baremetal.inc +1 -0
@@ -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,

Signature · 1 line
Paul Barker
#3 lore raw
Quoted 32 lines · Paul Barker
Quoted 24 lines · Denys Dmytriyenko

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.

---
  meta/conf/distro/include/tclibc-baremetal.inc | 1 +
  1 file changed, 1 insertion(+)
meta/conf/distro/include/tclibc-baremetal.inc +0 -0
index 6043cb6654..abea5a7162 100644

meta/conf/distro/include/tclibc-baremetal.inc USE_NLS ?= "no" · line 21

Quoted 4 lines
meta/conf/distro/include/tclibc-baremetal.inc +1 -0
@@ -18,6 +18,7 @@ USE_NLS ?= "no"
  IMAGE_LINGUAS = ""
  LIBC_DEPENDENCIES = ""
 
+EXTRA_OECONF:pn-gcc-cross-${TARGET_ARCH}:append = " --without-headers"

Hi Denys,

Quoted 5 lines

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.

Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#4 lore raw
In reply to Paul Barker
Quoted 28 lines · Paul Barker
Quoted 27 lines · Denys Dmytriyenko

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.

---
 meta/conf/distro/include/tclibc-baremetal.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/tclibc-baremetal.inc +0 -0
index 6043cb6654..abea5a7162 100644
@@ -18,6 +18,7 @@ USE_NLS ?= "no"
 IMAGE_LINGUAS = ""
 LIBC_DEPENDENCIES = ""
 
Quoted 7 lines

meta/conf/distro/include/tclibc-baremetal.inc USE_NLS ?= "no" · line 21

Quoted 1 line
meta/conf/distro/include/tclibc-baremetal.inc +1 -0
+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.

Signature · 1 line
Denys