• Bug#1101547: webkit2gtk: Please build with -mlarge-data and -mlarge-tex

    From John Paul Adrian Glaubitz@21:1/5 to Alberto Garcia on Sun Mar 30 15:50:01 2025
    XPost: linux.debian.bugs.dist

    Hi Alberto,

    On Sat, 2025-03-29 at 23:15 +0100, Alberto Garcia wrote:
    Control: tags -1 pending

    On Sat, Mar 29, 2025 at 08:20:05AM +0100, John Paul Adrian Glaubitz wrote:
    This can be fixed by passing -mlarge-data and -mlarge-text to gcc:

    Thanks, I just applied this:

    https://salsa.debian.org/webkit-team/webkit/-/commit/ae901b67c1572e9ae82bbe04071fd60cc43d578c

    Thanks! Could you apply the same change to wpewebkit as well?

    Thanks,
    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)
  • From John Paul Adrian Glaubitz@21:1/5 to All on Sat Mar 29 08:30:01 2025
    XPost: linux.debian.bugs.dist

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


    Source: webkit2gtk
    Version: 2.48.0-1
    Severity: normal
    Tags: patch
    User: [email protected]
    Usertags: alpha
    X-Debbugs-Cc: [email protected]

    Hi,

    webkit2gtk fails to build from source due to overflowing sections
    during the linking stage [1]:

    Source/WTF/wtf/CMakeFiles/WTF.dir/./DateMath.cpp.o: in function `_GLOBAL__sub_I_DateMath.cpp':
    ./build-soup3/./Source/WTF/wtf/DateMath.cpp:104:(.text.startup._GLOBAL__sub_I_DateMath.cpp+0x8): relocation truncated to fit: GPREL16 against symbol `WTF::weekdayName' defined in .bss._ZN3WTF11weekdayNameE section in Source/WTF/wtf/CMakeFiles/WTF.dir/./
    DateMath.cpp.o
    Source/WTF/wtf/CMakeFiles/WTF.dir/./DateMath.cpp.o: in function `__static_initialization_and_destruction_0':
    ./build-soup3/./Source/WTF/wtf/DateMath.cpp:105:(.text.startup._GLOBAL__sub_I_DateMath.cpp+0x24): relocation truncated to fit: GPREL16 against symbol `WTF::monthName' defined in .bss._ZN3WTF9monthNameE section in Source/WTF/wtf/CMakeFiles/WTF.dir/./
    DateMath.cpp.o ./build-soup3/./Source/WTF/wtf/DateMath.cpp:106:(.text.startup._GLOBAL__sub_I_DateMath.cpp+0x54): relocation truncated to fit: GPREL16 against symbol `WTF::monthFullName' defined in .bss._ZN3WTF13monthFullNameE section in Source/WTF/wtf/CMakeFiles/WTF.
    dir/./DateMath.cpp.o
    collect2: error: ld returned 1 exit status

    This can be fixed by passing -mlarge-data and -mlarge-text to gcc:

    --- debian/rules.orig 2025-03-14 23:12:01.000000000 +0100
    +++ debian/rules 2025-03-27 10:18:12.936034298 +0100
    @@ -63,6 +63,10 @@
    # Don't build with -gsplit-dwarf (see #1016936)
    EXTRA_CMAKE_ARGUMENTS += -DDEBUG_FISSION=OFF

    +ifneq (,$(filter $(DEB_HOST_ARCH),alpha))
    + CPPFLAGS += -mlarge-data -mlarge-text
    +endif
    +
    # Use the CLoop Javascript interpreter and disable the JIT. This is
    # slow but it is the most compatible solution for old (non-SSE2) CPUs.
    ifneq (,$(filter $(DEB_HOST_ARCH),i386))

    Could you patch debian/rules as shown above to adjust CPPFLAGS on alpha?

    Thanks,
    Adrian

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

    --- debian/rules.orig 2025-03-14 23:12:01.000000000 +0100
    +++ debian/rules 2025-03-27 10:18:12.936034298 +0100
    @@ -63,6 +63,10 @@
    # Don't build with -gsplit-dwarf (see #1016936)
    EXTRA_CMAKE_ARGUMENTS += -DDEBUG_FISSION=OFF

    +ifneq (,$(filt