[Webkit-unassigned] [Bug 163599] [GTK] REGRESSION(r207396 and r207521) Build broken with Clang 3.6

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 19 07:11:44 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=163599

Carlos Alberto Lopez Perez <clopez at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[GTK] REGRESSION(r207396)   |[GTK] REGRESSION(r207396
                   |Build broken with Clang.    |and r207521) Build broken
                   |                            |with Clang 3.6

--- Comment #6 from Carlos Alberto Lopez Perez <clopez at igalia.com> ---
More info about this issue:

It turns out that after fixing this, r207521 caused again a build failure related to the issue.

It seem this is caused because Clang 3.6 doesn't implement http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1591

See: https://llvm.org/bugs/show_bug.cgi?id=23904 and https://llvm.org/bugs/show_bug.cgi?id=24694


The code could be patched as follows to make it build:

--- a/Source/WebCore/testing/Internals.cpp
+++ b/Source/WebCore/testing/Internals.cpp
@@ -1156,7 +1156,7 @@ ExceptionOr<String> Internals::configurationForViewport(float devicePixelRatio,
     restrictMinimumScaleFactorToViewportSize(attributes, IntSize(availableWidth, availableHeight), devicePixelRatio);
     restrictScaleFactorToInitialScaleIfNotUserScalable(attributes);

-    return String { "viewport size " + String::number(attributes.layoutSize.width()) + "x" + String::number(attributes.layoutSize.height()) + " scale " + String::number(attributes.initialScale) + " with limits [" + String::number(attributes.minimumScale) + ", " + String::number(attributes.maximumScale) + "] and userScalable " + (attributes.userScalable ? "true" : "false") };
+    return String("viewport size " + String::number(attributes.layoutSize.width()) + "x" + String::number(attributes.layoutSize.height()) + " scale " + String::number(attributes.initialScale) + " with limits [" + String::number(attributes.minimumScale) + ", " + String::number(attributes.maximumScale) + "] and userScalable " + (attributes.userScalable ? "true" : "false"));
 }

 ExceptionOr<bool> Internals::wasLastChangeUserEdit(Element& textField)
@@ -1218,7 +1218,7 @@ ExceptionOr<String> Internals::autofillFieldName(Element& element)
     if (!is<HTMLFormControlElement>(element))
         return Exception { INVALID_NODE_TYPE_ERR };

-    return String { downcast<HTMLFormControlElement>(element).autofillData().fieldName };
+    return String { downcast<HTMLFormControlElement>(element).autofillData().fieldName.string() };
 }

 ExceptionOr<void> Internals::paintControlTints()



But reached this point, I don't think is worth.

On the GTK port we only need to support GCC, and this build just fine with GCC 4.9 which is the minimum version of GCC that we support.

Using clang is a personal choice, and I have just upgraded to Clang 3.8 that build this just fine.

I advice to anyone also having problems to upgrade the version of Clang.

Just a heads up.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161019/ee7bfd78/attachment.html>


More information about the webkit-unassigned mailing list