<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>161806</bug_id>
          
          <creation_ts>2016-09-09 10:52:50 -0700</creation_ts>
          <short_desc>[GTK] REGRESSION(r205650): ARM build broken</short_desc>
          <delta_ts>2016-09-27 06:04:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>162537</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>gustavo</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ossy</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1228213</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-09-09 10:52:50 -0700</bug_when>
    <thetext>Seems some revision from r205537-r205542 broke the ARM build

https://build.webkit.org/builders/GTK%20Linux%20ARM%20Release/builds/12086

I don&apos; have time to bisect this. Just reporting it hoping that someone can take a look</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228216</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-09-09 10:54:27 -0700</bug_when>
    <thetext>I have forced a clean build on 205751 to see if it could be related to clean-build issues: https://build.webkit.org/builders/GTK%20Linux%20ARM%20Release/builds/12110</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229149</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-09-13 05:34:22 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; I have forced a clean build on 205751 to see if it could be related to
&gt; clean-build issues:
&gt; https://build.webkit.org/builders/GTK%20Linux%20ARM%20Release/builds/12110

Yes, that failure only needed a clean build, because it was using generated files from DerivedSources that are no longer generated. But now it&apos;s still failing, but of other reasons:

https://build.webkit.org/builders/GTK%20Linux%20ARM%20Release/builds/12132/steps/compile-webkit/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229151</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-09-13 05:48:22 -0700</bug_when>
    <thetext>The problem seems to be URLParser unit test using wchar_t in:

template&lt;size_t length&gt;
static String wideString(const wchar_t (&amp;url)[length])
{
    StringBuilder builder;
    builder.reserveCapacity(length - 1);
    for (size_t i = 0; i &lt; length - 1; ++i)
	builder.append(url[i]);
    return builder.toString();
}

../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp: In instantiation of ‘WTF::String TestWebKitAPI::wideString(const wchar_t (&amp;)[length]) [with unsigned int length = 23u]’:
../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:245:60:   required from here
../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:93:9: error: call of overloaded ‘append(const wchar_t&amp;)’ is ambiguous
         builder.append(url[i]);
         ^
../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:93:9: note: candidates are:
......

I guess wchar_t is defined differently in that ARM bot, maybe we could simply use UChar there. Any idea Alex?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1229169</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-13 08:44:30 -0700</bug_when>
    <thetext>../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp: In instantiation of ‘WTF::String TestWebKitAPI::wideString(const wchar_t (&amp;)[length]) [with unsigned int length = 23u]’:
../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:252:60:   required from here
../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:93:9: error: call of overloaded ‘append(const wchar_t&amp;)’ is ambiguous
         builder.append(url[i]);
         ^
../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:93:9: note: candidates are:
In file included from ../../Source/WebCore/platform/URLParser.h:31:0,
                 from DerivedSources/ForwardingHeaders/WebCore/URLParser.h:1,
                 from ../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:27:
../../Source/WTF/wtf/text/StringBuilder.h:53:10: note: void WTF::StringBuilder::append(const WTF::AtomicString&amp;) &lt;near match&gt;
     void append(const AtomicString&amp; atomicString)
          ^
../../Source/WTF/wtf/text/StringBuilder.h:53:10: note:   no known conversion for argument 1 from ‘const wchar_t’ to ‘const WTF::AtomicString&amp;’
../../Source/WTF/wtf/text/StringBuilder.h:58:10: note: void WTF::StringBuilder::append(const WTF::String&amp;) &lt;near match&gt;
     void append(const String&amp; string)
          ^
../../Source/WTF/wtf/text/StringBuilder.h:58:10: note:   no known conversion for argument 1 from ‘const wchar_t’ to ‘const WTF::String&amp;’
../../Source/WTF/wtf/text/StringBuilder.h:97:10: note: void WTF::StringBuilder::append(WTF::StringView) &lt;near match&gt;
     void append(StringView stringView)
          ^
../../Source/WTF/wtf/text/StringBuilder.h:97:10: note:   no known conversion for argument 1 from ‘const wchar_t’ to ‘WTF::StringView’
In file included from ../../Source/WebCore/platform/URLParser.h:31:0,
                 from DerivedSources/ForwardingHeaders/WebCore/URLParser.h:1,
                 from ../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:27:
../../Source/WTF/wtf/text/StringBuilder.h:126:10: note: void WTF::StringBuilder::append(const char*) &lt;near match&gt;
     void append(const char* characters)
          ^
../../Source/WTF/wtf/text/StringBuilder.h:126:10: note:   no known conversion for argument 1 from ‘const wchar_t’ to ‘const char*’
../../Source/WTF/wtf/text/StringBuilder.h:132:10: note: void WTF::StringBuilder::append(UChar)
     void append(UChar c)
          ^
../../Source/WTF/wtf/text/StringBuilder.h:148:10: note: void WTF::StringBuilder::append(LChar)
     void append(LChar c)
          ^
../../Source/WTF/wtf/text/StringBuilder.h:159:10: note: void WTF::StringBuilder::append(char)
     void append(char c)
          ^
../../Source/WTF/wtf/text/StringBuilder.h:164:10: note: void WTF::StringBuilder::append(UChar32)
     void append(UChar32 c)
          ^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1233376</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-09-26 05:38:17 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; The problem seems to be URLParser unit test using wchar_t in:
&gt; 
&gt; template&lt;size_t length&gt;
&gt; static String wideString(const wchar_t (&amp;url)[length])
&gt; {
&gt;     StringBuilder builder;
&gt;     builder.reserveCapacity(length - 1);
&gt;     for (size_t i = 0; i &lt; length - 1; ++i)
&gt; 	builder.append(url[i]);
&gt;     return builder.toString();
&gt; }
&gt; 
&gt; ../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp: In instantiation of
&gt; ‘WTF::String TestWebKitAPI::wideString(const wchar_t (&amp;)[length]) [with
&gt; unsigned int length = 23u]’:
&gt; ../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:245:60:   required
&gt; from here
&gt; ../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:93:9: error: call of
&gt; overloaded ‘append(const wchar_t&amp;)’ is ambiguous
&gt;          builder.append(url[i]);
&gt;          ^
&gt; ../../Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:93:9: note: candidates
&gt; are:
&gt; ......
&gt; 
&gt; I guess wchar_t is defined differently in that ARM bot, maybe we could
&gt; simply use UChar there. Any idea Alex?

The type definition for wchar_t is architecture dependent:

GNU/Linux x86_64 machine $ echo &quot;&quot; | gcc -E - -dM | grep WCHAR
#define __WCHAR_MAX__ 2147483647
#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1)
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __WCHAR_TYPE__ int
#define __SIZEOF_WCHAR_T__ 4


GNU/Linux i686 machine $ echo &quot;&quot; | g++-4.9 -E - -dM | grep WCHAR
#define __WCHAR_MAX__ 2147483647L
#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1)
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __WCHAR_TYPE__ long int
#define __SIZEOF_WCHAR_T__ 4


GNU/Linux armv7t machine $ echo &quot;&quot; | g++-4.9 -E - -dM | grep WCHAR
#define __ARM_SIZEOF_WCHAR_T 32
#define __WCHAR_MAX__ 4294967295U
#define __WCHAR_MIN__ 0U
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __WCHAR_TYPE__ unsigned int
#define __SIZEOF_WCHAR_T__ 4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1233828</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-09-27 06:04:17 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 162537 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>