On Thu, Mar 24, 2022 at 11:54:31AM +0100, Alberto Garcia wrote:
> > I'm trying to build webkit2gtk 2.36.0 for bullseye using GCC 10
> > and I get segfaults in several places.
> 
> FYI I was bisecting the problem and the culprit seems to be
> the transition from WebKit's own implementation of Variant to
> std::variant, this exact commit:
> 
>    https://trac.webkit.org/changeset/283982/webkit

I also decided to try a complete webkit2gtk build with different
gcc-10 packages to see when the problems started to happen.

gcc-10 10.2.0-16 is where the first errors appear (see
below). 10.2.0-15 and all earlier versions can build webkit2gtk 2.36.0
without problems.

gcc 8 (from buster) works fine as well.

This is the error message from gcc-10 10.2.0-16

In file included from 
WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-57.cpp:1:
../Source/WebCore/platform/network/ResourceResponseBase.cpp: In member function 
‘void 
WebCore::ResourceResponseBase::sanitizeHTTPHeaderFieldsAccordingToTainting()’:
../Source/WebCore/platform/network/ResourceResponseBase.cpp:455:6: error: type 
precision mismatch in switch statement
  455 | void ResourceResponseBase::sanitizeHTTPHeaderFieldsAccordingToTainting()
      |      ^~~~~~~~~~~~~~~~~~~~
switch (_1) <default: <D.550422>, case 0: <D.270022>, case 1: <D.270023>, case 
2: <D.270083>, case 3: <D.270084>>
../Source/WebCore/platform/network/ResourceResponseBase.cpp:455:6: internal 
compiler error: ‘verify_gimple’ failed
0x128422d verify_gimple_in_seq(gimple*)
        ../../src/gcc/tree-cfg.c:5144
0xf85436 gimplify_body(tree_node*, bool)
        ../../src/gcc/gimplify.c:14888
0xf856a3 gimplify_function_tree(tree_node*)
        ../../src/gcc/gimplify.c:14978
0xdbbe27 cgraph_node::analyze()
        ../../src/gcc/cgraphunit.c:670
0xdbee27 analyze_functions
        ../../src/gcc/cgraphunit.c:1227
0xdbf9f2 symbol_table::finalize_compilation_unit()
        ../../src/gcc/cgraphunit.c:2986

Berto

Reply via email to