emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#51863: closed ([PATCH] gnu: webkitgtk: Really disable SSE2 on i686-l


From: GNU bug Tracking System
Subject: bug#51863: closed ([PATCH] gnu: webkitgtk: Really disable SSE2 on i686-linux.)
Date: Fri, 26 Nov 2021 04:16:02 +0000

Your message dated Thu, 25 Nov 2021 23:15:41 -0500
with message-id <87wnkv8scy.fsf_-_@gmail.com>
and subject line Re: bug#51863: [PATCH] gnu: webkitgtk: Really disable SSE2 on 
i686-linux.
has caused the debbugs.gnu.org bug report #51863,
regarding [PATCH] gnu: webkitgtk: Really disable SSE2 on i686-linux.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
51863: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51863
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: webkitgtk: Really disable SSE2 on i686-linux. Date: Mon, 15 Nov 2021 11:29:23 +0000
Hey Guix,

Commit d82fd7c2dd542693988f61fb15c020e3209ac7ec (gnu: webkitgtk: Disable
SSE2 when not on x86_64.) on master breaks webkitgtk on i686-linux.

(I'm Cc-ing Leo, Liliana, and Mark since you were all involved in
upgrading webkitgtk to 2.34.1.)

The offending patch attempts to disable SSE2 by conditionally adding a
phase which removes the call to 'CHECK_FOR_SSE2' from the end of
'Source/cmake/DetectSSE2.cmake'.  This phase doesn't do anything about
'SSE2_SUPPORT_FOUND' being set to 'FALSE' at line 34 in the same file,
which causes the following snippet starting at line 152 in
'Source/cmake/WebKitCompilerFlags.cmake'

--8<---------------cut here---------------start------------->8---
    # Force SSE2 fp on x86 builds.
    if (WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING)
        WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-msse2 -mfpmath=sse)
        include(DetectSSE2)
        if (NOT SSE2_SUPPORT_FOUND)
            message(FATAL_ERROR "SSE2 support is required to compile WebKit")
        endif ()
    endif ()
--8<---------------cut here---------------end--------------->8---

to fail with the following error when building for i686.

--8<---------------cut here---------------start------------->8---
CMake Error at Source/cmake/WebKitCompilerFlags.cmake:157 (message):
  SSE2 support is required to compile WebKit
--8<---------------cut here---------------end--------------->8---

The attached patch removes the code for adding the broken 'disable-sse2'
phase.  Instead it disables SSE2 using a patch from Debian and by
setting 'CFLAGS' and 'CXXFLAGS' to '-march=i686' in the
'prepare-build-environment' phase when building for i686.  The latter is
necessary because clang, unlike gcc, defaults to '-march=pentium4',
which enables SSE2.

With this patch I've successfully built webkitgtk and epiphany on
i686-linux and x86_64-linux.

Regards,

Diego

Attachment: 0001-gnu-webkitgtk-Really-disable-SSE2-on-i686-linux.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#51863: [PATCH] gnu: webkitgtk: Really disable SSE2 on i686-linux. Date: Thu, 25 Nov 2021 23:15:41 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hello,

Fixed with a variant of Diego's patch in d13d5f3141 on master and
68d47844b1 on core-updates-frozen.

Thanks a lot!

Closing.

Maxim


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]