Skip to contentSkip to conversation

package/proj: fix build failure due to gcc bug 68485

PATCH New Giulio Benetti 3 participants 4 messages Jun 25, 2019 – Aug 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/proj: fix build failure due to gcc bug 68485

The proj package exhibits gcc bug 68485 when built for the Microblaze architecture with optimization enabled, which causes a build failure.

As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.

Fixes:

http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9cafea6f/

---
 package/proj/proj.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
package/proj/proj.mk +8 -0
index 0b239b2bbe..2969eb57ac 100644
@@ -10,4 +10,12 @@ PROJ_LICENSE = MIT
 PROJ_LICENSE_FILES = COPYING
 PROJ_INSTALL_STAGING = YES
 
+PROJ_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
+PROJ_CFLAGS += -O0
+endif
+
+PROJ_CONF_ENV = CFLAGS="$(PROJ_CFLAGS)"
+
 $(eval $(autotools-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/proj: fix build failure due to gcc bug 68485

Quoted 6 lines · On Dienstag, 25. Juni 2019 08:44:36 CEST Giulio Benetti wrote:

The proj package exhibits gcc bug 68485 when built for the Microblaze architecture with optimization enabled, which causes a build failure.

As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.

Quoted 6 lines

Fixes:

http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9
cafea6f/

Quoted 21 lines
---
 package/proj/proj.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
package/proj/proj.mk +8 -0
index 0b239b2bbe..2969eb57ac 100644
@@ -10,4 +10,12 @@ PROJ_LICENSE = MIT
 PROJ_LICENSE_FILES = COPYING
 PROJ_INSTALL_STAGING = YES
 
+PROJ_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
+PROJ_CFLAGS += -O0
+endif
+
+PROJ_CONF_ENV = CFLAGS="$(PROJ_CFLAGS)"
+
 $(eval $(autotools-package))
Signature · 9 lines
Zoltan Gyarmati
https://zgyarmati.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190629/4fa7e206/attachment.asc>
#2 lore raw

PATCH 1/1 package/proj: fix build failure due to gcc bug 68485

In reply to Giulio Benetti
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

The proj package exhibits gcc bug 68485 when built for the Microblaze architecture with optimization enabled, which causes a build failure.

Quoted 8 lines

As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.

Fixes:

http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9cafea6f/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 package/proj: fix build failure due to gcc bug 68485

In reply to Giulio Benetti
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

The proj package exhibits gcc bug 68485 when built for the Microblaze architecture with optimization enabled, which causes a build failure.

Quoted 8 lines

As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.

Fixes:

http://autobuild.buildroot.net/results/e61/e61bd55067071415223e523a81de3c2e9cafea6f/

Committed to 2019.02.x and 2019.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard