[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#846932: gettext: Please build without OpenMP support on m68k and sh4



Source: gettext
Version: 0.19.8.1-1
Severity: normal
Tags: patch
User: debian-68k@lists.debian.org
Usertags: m68k,sh4

Hi!

As we're currently doing lots of the builds for m68k and sh4 on qemu,
we are sometimes seeing issues with multi-threading applications. One
of the affected packages is gettext which is currently configured
with "--enable-openmp" in Debian.

Building gettext with "--disable-openmp" on m68k and sh4 avoids the
multi-threading issues we have. With the applied patch in src:gettext,
we could enable the package on the buildds again for m68k and sh4.

If you apply the patch, please replace "NNNNNN" in the patch with
the bug number of this bug report (which is not yet determined).

Thanks for consideration!

Adrian

--
 .''`.   John Paul Adrian Glaubitz
 : :' :  Debian Developer - glaubitz@debian.org
 `. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
diff -Nru old/gettext-0.19.8.1/debian/rules gettext-0.19.8.1/debian/rules
--- old/gettext-0.19.8.1/debian/rules	2016-06-13 00:00:00.000000000 +0200
+++ gettext-0.19.8.1/debian/rules	2016-12-04 14:00:56.662173817 +0100
@@ -27,12 +27,23 @@
 #   CSHARP = --enable-csharp=mono
 # endif
 
+# On emulated m68k and sh4 targets, OpenMP can cause lockups,
+# we therefore disable it for the time being (#NNNNNN)
+ifneq (,$(findstring $(DEB_HOST_ARCH), m68k sh4))
+	CONF_OPENMP = --disable-openmp
+else
+	CONF_OPENMP = --enable-openmp
+endif
+
+
+
 NOJAVA_ARCHS = %none%
 
 build:
 	./configure --prefix=/usr --enable-threads $(CSHARP) \
 		--disable-native-java CC="$(CC)" CFLAGS="$(CFLAGS)" \
 		JAVAC=/usr/lib/jvm/default-java/bin/javac \
+		$(CONF_OPENMP) \
 		CPPFLAGS="$(CPPFLAGS)" \
 		CXXFLAGS="$(CXXFLAGS)" \
 		LDFLAGS="$(LDFLAGS)"

Reply to: