Skip to contentSkip to conversation

package/jemalloc: fix build on or1k with gcc < 6

PATCH New Fabrice Fontaine 2 participants 2 messages Apr 21, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/jemalloc: fix build on or1k with gcc < 6

Fixes:
- http://autobuild.buildroot.org/results/8cb80bef5c60ac1e5f6507fbc68c21c32f4af84a

---
 package/jemalloc/jemalloc.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/jemalloc/jemalloc.mk +6 -0
index 1273f8a72a..f4d64851bf 100644
@@ -11,5 +11,11 @@ JEMALLOC_LICENSE = BSD-2-Clause
 JEMALLOC_LICENSE_FILES = COPYING
 JEMALLOC_INSTALL_STAGING = YES
 
+# gcc bug internal compiler error: in merge_overlapping_regs, at
+# regrename.c:304. This bug is fixed since gcc 6.
+ifeq ($(BR2_or1k):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:)
+JEMALLOC_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O0"
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/jemalloc: fix build on or1k with gcc < 6

Quoted 7 lines · On Sun, 21 Apr 2019 19:08:51 +0200 Fabrice Fontaine…

Fixes:
- http://autobuild.buildroot.org/results/8cb80bef5c60ac1e5f6507fbc68c21c32f4af84a

---
 package/jemalloc/jemalloc.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com