• Bug#1109861: thunderbird: Please build with gcc and g++ on ppc64

    From John Paul Adrian Glaubitz@21:1/5 to All on Fri Jul 25 10:20:01 2025
    XPost: linux.debian.ports.powerpc

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


    Source: thunderbird
    Version: 1:128.13.0esr-1
    Severity: normal
    Tags: patch
    User: [email protected]
    Usertags: ppc64
    X-Debbugs-Cc: [email protected]

    Hi,

    on ppc64, Thunderbird currently fails to build from source [1] due to an upstream bug in the PowerPC backend in LLVM [2].

    Could you override CC and CXX so Thunderbird is built with GCC instead of
    Clang for the time being?

    --- debian/rules.orig 2025-07-25 01:09:59.688831332 -0700
    +++ debian/rules 2025-07-25 00:39:01.489229045 -0700
    @@ -46,6 +46,11 @@
    CFLAGS += -DSQLITE_BYTEORDER=1234
    endif

    +ifneq (,$(filter ppc64,$(DEB_HOST_ARCH)))
    + CC := gcc
    + CXX := g++
    +endif
    +
    # Reduce memory usage of the linker at the expense of processing time
    # This should help on lower-end architectures like arm and mips, which
    # spend an immense amount of time swapping.

    Thanks,
    Adrian

    [1] https://buildd.debian.org/status/fetch.php?pkg=thunderbird&arch=ppc64&ver=1%3A128.13.0esr-1&stamp=1753381391&raw=0
    [2] https://github.com/llvm/llvm-project/issues/110753

    https://github.com/llvm/llvm-project/issues/110753

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- debian/rules.orig 2025-07-25 01:09:59.688831332 -0700
    +++ debian/rules 2025-07-25 00:39:01.489229045 -0700
    @@ -46,6 +46,11 @@
    C
  • From John Paul Adrian Glaubitz@21:1/5 to John Paul Adrian Glaubitz on Sat Jul 26 11:20:01 2025
    XPost: linux.debian.ports.powerpc

    Hello,

    On Fri, 2025-07-25 at 10:11 +0200, John Paul Adrian Glaubitz wrote:
    on ppc64, Thunderbird currently fails to build from source [1] due to an upstream bug in the PowerPC backend in LLVM [2].

    Could you override CC and CXX so Thunderbird is built with GCC instead of Clang for the time being?

    Attaching an updating patch. We actually need to export CC and CXX so all parts of the build make use of gcc and g++. This requires an additional patch which fixes an old keyword in moz.build for skia (see attached).

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    LS0tIGRlYmlhbi9ydWxlcy5vcmlnCTIwMjUtMDctMjUgMDE6MDk6NTkuNjg4ODMxMzMyIC0wNzAw CisrKyBkZWJpYW4vcnVsZXMJMjAyNS0wNy0yNSAwMjozMTo1Mi43MzA2MjMxNTEgLTA3MDAKQEAg LTQ2LDYgKzQ2LDExIEBACiAJQ0ZMQUdTICs9IC1EU1FMSVRFX0JZVEVPUkRFUj0xMjM0CiBlbmRp ZgogCitpZm5lcSAoLCQoZmlsdGVyIHBwYzY0LCQoREVCX0hPU1RfQVJDSCkpKQorCWV4cG9ydCBD QyA6PSBnY2MKKwlleHBvcnQgQ1hYIDo9IGcrKworZW5kaWYKKwogIyBSZWR1Y2UgbWVtb3J5IHVz YWdlIG9mIHRoZSBsaW5rZXIgYXQgdGhlIGV4cGVuc2Ugb2YgcHJvY2Vzc2luZyB0aW1lCiAjIFRo aXMgc2hvdWxkIGhlbHAgb24gbG93ZXItZW5kIGFyY2hpdGVjdHVyZXMgbGlrZSBhcm0gYW5kIG1p cHMsIHdoaWNoCiAjIHNwZW5kIGFuIGltbWVuc2UgYW1vdW50IG9mIHRpbWUgc3dhcHBpbmcuCg==


    LS0tIHRodW5kZXJiaXJkLTEyOC4xMi4wZXNyLm9yaWcvZ2Z4L3NraWEvbW96LmJ1aWxkCisrKyB0 aHVuZGVyYmlyZC0xMjguMTIuMGVzci9nZngvc2tpYS9tb3ouYnVpbGQKQEAgLTM3MSw3ICszNzEs NyBAQCBVTklGSUVEX1NPVVJDRVMgKz0gWwogXQogCiAjIFdvcmsgYXJvdW5kIGh0dHBzOi8vZ2Nj LmdudS5vcm