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

    From Santiago Vila@21:1/5 to John Paul Adrian Glaubitz on Mon Dec 5 13:10:04 2016
    XPost: linux.debian.bugs.dist, linux.debian.ports.68k

    On Sun, 4 Dec 2016, John Paul Adrian Glaubitz wrote:

    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).

    The patch looks ok, but for completeness please tell me that the
    OpenMP issue is also reported.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to All on Sun Dec 4 14:10:01 2016
    XPost: linux.debian.bugs.dist, linux.debian.ports.68k

    This is a multi-part MIME message sent by reportbug.


    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)"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Santiago Vila on Mon Dec 5 16:00:01 2016
    XPost: linux.debian.bugs.dist, linux.debian.ports.68k

    Hi Santiago!

    On 12/05/2016 12:44 PM, Santiago Vila wrote:
    The patch looks ok, but for completeness please tell me that the
    OpenMP issue is also reported.

    Thanks!

    Yes, the OpenMP issue is currently being worked on. It's basically an issue with the atomics in qemu itself which isn't so trivial to fix. I am working together with the qemu developers to fix these issues. Once we have achieved that, we can remove this work-around again :).

    Thanks,
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)