Skip to contentSkip to conversation

package/jemalloc: filter on suported architectures

PATCH New Yann E. MORIN 3 participants 3 messages Jul 5, 2016 – Jul 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/jemalloc: filter on suported architectures

jemalloc has a hard-coded list of supported architectures, which it uses to define the minimum alignment for allocations. It whines at build time (not at configure time) when it does not know that alignment.

Fix that by making jemalloc depend on the known-supported architectures.

Fixes:

    http://autobuild.buildroot.org/results/674/674b6022f9a403528a758c0785656d2bda79e0a9/
---
 package/jemalloc/Config.in | 11 +++++++++++
 1 file changed, 11 insertions(+)
package/jemalloc/Config.in +11 -0
index ff74387..a166821 100644
@@ -1,5 +1,15 @@
+config BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
+	bool
+	default y if BR2_arm || BR2_armeb || BR2_aarch64 || BR2_aarch64_be
+	default y if BR2_i386 || BR2_x86_64
+	default y if BR2_mips || BR2_mipsel
+	default y if BR2_sparc64
+	default y if BR2_powerpc
+	default y if BR2_sh && !BR2_sh2a
+
 config BR2_PACKAGE_JEMALLOC
 	bool "jemalloc"
+	depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
 	depends on !BR2_STATIC_LIBS
 	help
 	 This library providing a malloc(3) implementation that emphasizes
@@ -8,4 +18,5 @@ config BR2_PACKAGE_JEMALLOC
 	 http://www.canonware.com/jemalloc/
 
 comment "jemalloc needs a toolchain w/ dynamic library"
+	depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
 	depends on BR2_STATIC_LIBS
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/jemalloc: filter on suported architectures

Hi Yann,

Le 05/07/2016 ? 19:35, Yann E. MORIN a ?crit :

Quoted 8 lines

jemalloc has a hard-coded list of supported architectures, which it uses to define the minimum alignment for allocations. It whines at build time (not at configure time) when it does not know that alignment.

Fix that by making jemalloc depend on the known-supported architectures.

Fixes:

    http://autobuild.buildroot.org/results/674/674b6022f9a403528a758c0785656d2bda79e0a9/

Best regards,
Romain

Quoted 34 lines
---
 package/jemalloc/Config.in | 11 +++++++++++
 1 file changed, 11 insertions(+)
package/jemalloc/Config.in +11 -0
index ff74387..a166821 100644
@@ -1,5 +1,15 @@
+config BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
+	bool
+	default y if BR2_arm || BR2_armeb || BR2_aarch64 || BR2_aarch64_be
+	default y if BR2_i386 || BR2_x86_64
+	default y if BR2_mips || BR2_mipsel
+	default y if BR2_sparc64
+	default y if BR2_powerpc
+	default y if BR2_sh && !BR2_sh2a
+
 config BR2_PACKAGE_JEMALLOC
 	bool "jemalloc"
+	depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
 	depends on !BR2_STATIC_LIBS
 	help
 	 This library providing a malloc(3) implementation that emphasizes
@@ -8,4 +18,5 @@ config BR2_PACKAGE_JEMALLOC
 	 http://www.canonware.com/jemalloc/
 
 comment "jemalloc needs a toolchain w/ dynamic library"
+	depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
 	depends on BR2_STATIC_LIBS
#2 lore raw

PATCH 1/1 package/jemalloc: filter on suported architectures

In reply to Yann E. MORIN

Hello,

Quoted 6 lines · Yann E. MORIN

jemalloc has a hard-coded list of supported architectures, which it uses to define the minimum alignment for allocations. It whines at build time (not at configure time) when it does not know that alignment.

Fix that by making jemalloc depend on the known-supported architectures.

Quoted 8 lines

Fixes:

    http://autobuild.buildroot.org/results/674/674b6022f9a403528a758c0785656d2bda79e0a9/
---
 package/jemalloc/Config.in | 11 +++++++++++
 1 file changed, 11 insertions(+)

Thanks, applied with a few minor modifications:

[Thomas:
- split ARM and AArch64 dependencies on two lines
- for SuperH, instead of using BR2_sh && !BR2_sh2, explicitly list the SH4 variants, since only SH4 is supported by jemalloc.]

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com