• Bug#1105090: closed by Debian FTP Masters

    From Mike Hommey@21:1/5 to John Paul Adrian Glaubitz on Wed May 14 07:50:01 2025
    XPost: linux.debian.ports.powerpc, linux.debian.ports.sparc

    On Wed, May 14, 2025 at 07:20:05AM +0200, John Paul Adrian Glaubitz wrote:
    Control: reopen -1

    Hi Mike,

    thanks for quickly taking care of this!

    Unfortunately, your approach does not work, it still tries to use lld.

    It actually uses bfd, which is why it went further than before. But it's
    also using lld for things built for the build system itself.
    Unfortunately, there isn't a configure flag to override that.

    I'll figure out something that doesn't involve completely switching
    compilers.

    Mike

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to All on Wed May 14 07:30:01 2025
    XPost: linux.debian.ports.powerpc, linux.debian.ports.sparc

    Control: reopen -1

    Hi Mike,

    thanks for quickly taking care of this!

    Unfortunately, your approach does not work, it still tries to use lld.

    I suggest using my patch which overrides the default compiler for powerpc, ppc64 and sparc64:

    diff --git a/debian/rules b/debian/rules
    index eb6dd1b73d0..6c46bcb9fec 100755
    --- a/debian/rules
    +++ b/debian/rules
    @@ -113,6 +113,11 @@ ifneq (,$(filter mips%,$(DEB_HOST_ARCH)))
    CONFIGURE_FLAGS += --disable-webrtc
    endif

    +ifneq (,$(filter powerpc ppc64 sparc64,$(DEB_HOST_ARCH)))
    + CC := gcc
    + CXX := g++
    +endif
    +
    ifeq (default,$(origin CC))
    ifneq (,$(filter-out bullseye bookworm,$(DIST)))
    CC := clang

    I have verified this to work.

    As for powerpc and sparc64: Firefox can be built on these targets by using
    the output generated by NodeJS on x86_64 and injecting the files there. I
    am currently working on a mechanism to integrate this into the Debian package.

    The idea comes from the Oracle Solaris developers which use this approach to build Firefox for Solaris SPARC [1].

    Adrian

    [1] https://github.com/oracle/solaris-userland/tree/master/components/desktop/firefox/wrapper-node

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

    --- Sou
  • From John Paul Adrian Glaubitz@21:1/5 to Mike Hommey on Wed May 14 08:00:01 2025
    XPost: linux.debian.ports.powerpc, linux.debian.ports.sparc

    Hi Mike,

    On Wed, 2025-05-14 at 14:45 +0900, Mike Hommey wrote:
    It actually uses bfd, which is why it went further than before. But it's
    also using lld for things built for the build system itself.
    Unfortunately, there isn't a configure flag to override that.

    I'll figure out something that doesn't involve completely switching compilers.

    What's wrong with using GCC? I built and tested Firefox on ppc64 and sparc64 using GCC without any problems. I also tried building it for powerpc but ran into an issue with building wgpu-hal (portable-atomic not being recognized
    as a crate while it works with upstream wgpu-hal).

    Adrian

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

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