Skip to contentSkip to conversation

package/leptonica: affected by gcc bug 101737

PATCH Applied Fabrice Fontaine 3 participants 3 messages Jan 15, 2024 – Feb 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/leptonica: affected by gcc bug 101737

leptonica is affected by gcc bug 101737 resulting in the following build failure since at least bump to version 1.82.0 in commit 81a961c545cc9f240841b75d6c21f13b334bc274:

sh4eb-buildroot-linux-gnu-gcc.br_real: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugs.buildroot.net/> for instructions.

Fixes:
- http://autobuild.buildroot.org/results/f18979454399d9c728f9e017e4cc3a1b27458f5b
- http://autobuild.buildroot.org/results/f3c803892175b3bb2ce68e3140c879b4a4d4b302

---
 package/leptonica/leptonica.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/leptonica/leptonica.mk +4 -0
index 8eedf2fda9..4cb73296e8 100644
@@ -14,6 +14,10 @@ LEPTONICA_DEPENDENCIES = host-pkgconf
 
 LEPTONICA_CONF_OPTS += --disable-programs
 
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101737),y)
+LEPTONICA_CONF_OPTS += CFLAGS="$(TARGET_CFLAGS) -O0"
+endif
+
 ifeq ($(BR2_PACKAGE_GIFLIB),y)
 LEPTONICA_DEPENDENCIES += giflib
 LEPTONICA_CONF_OPTS += --with-giflib
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · On Mon, 15 Jan 2024 22:14:27 +0100 Fabrice Fontaine…

leptonica is affected by gcc bug 101737 resulting in the following build failure since at least bump to version 1.82.0 in commit 81a961c545cc9f240841b75d6c21f13b334bc274:

sh4eb-buildroot-linux-gnu-gcc.br_real: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugs.buildroot.net/> for instructions.

Quoted 8 lines

Fixes:
- http://autobuild.buildroot.org/results/f18979454399d9c728f9e017e4cc3a1b27458f5b
- http://autobuild.buildroot.org/results/f3c803892175b3bb2ce68e3140c879b4a4d4b302

---
 package/leptonica/leptonica.mk | 4 ++++
 1 file changed, 4 insertions(+)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Fabrice Fontaine
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

leptonica is affected by gcc bug 101737 resulting in the following build failure since at least bump to version 1.82.0 in commit 81a961c545cc9f240841b75d6c21f13b334bc274:

sh4eb-buildroot-linux-gnu-gcc.br_real: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugs.buildroot.net/> for instructions.

Quoted 5 lines

Fixes:
- http://autobuild.buildroot.org/results/f18979454399d9c728f9e017e4cc3a1b27458f5b
- http://autobuild.buildroot.org/results/f3c803892175b3bb2ce68e3140c879b4a4d4b302

Committed to 2023.02.x and 2023.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot