<?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>244568</bug_id>
          
          <creation_ts>2022-08-30 20:42:46 -0700</creation_ts>
          <short_desc>[GCC] Cannot convert GCGLint64 to WebGLAny</short_desc>
          <delta_ts>2023-02-16 19:52:59 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGL</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=252449</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>dino</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1895046</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-08-30 20:42:46 -0700</bug_when>
    <thetext>After https://commits.webkit.org/253898@main, the WPE-Linux-64bit-Release-Packaging-Nightly-Ubuntu2004 build bot is failing with the following error:

```
In file included from WebCore/DerivedSources/unified-sources/UnifiedSource-950a39b6-26.cpp:7:
../../Source/WebCore/html/canvas/WebGL2RenderingContext.cpp: In member function ‘WebCore::WebGLAny WebCore::WebGL2RenderingContext::getIndexedParameter(GCGLenum, GCGLuint)’:
../../Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:2414:40: error: could not convert ‘((WebCore::WebGL2RenderingContext*)this)-&gt;WebCore::WebGL2RenderingContext::&lt;anonymous&gt;.WebCore::WebGLRenderingContextBase::m_context.WTF::RefPtr&lt;WebCore::GraphicsContextGL&gt;::operator-&gt;()-&gt;WebCore::GraphicsContextGL::getInteger64i(target, index)’ from ‘GCGLint64’ {aka ‘long int’} to ‘WebCore::WebGLAny’ {aka ‘std::variant&lt;std::nullptr_t, bool, int, unsigned int, long long int, float, WTF::String, WTF::Vector&lt;bool, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc&gt;, WTF::Vector&lt;int, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc&gt;, WTF::Vector&lt;unsigned int, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc&gt;, WTF::RefPtr&lt;JSC::GenericTypedArrayView&lt;JSC::Float32Adaptor&gt;, WTF::RawPtrTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Float32Adaptor&gt; &gt;, WTF::DefaultRefDerefTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Float32Adaptor&gt; &gt; &gt;, WTF::RefPtr&lt;JSC::GenericTypedArrayView&lt;JSC::Int32Adaptor&gt;, WTF::RawPtrTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Int32Adaptor&gt; &gt;, WTF::DefaultRefDerefTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Int32Adaptor&gt; &gt; &gt;, WTF::RefPtr&lt;JSC::GenericTypedArrayView&lt;JSC::Uint32Adaptor&gt;, WTF::RawPtrTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Uint32Adaptor&gt; &gt;, WTF::DefaultRefDerefTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Uint32Adaptor&gt; &gt; &gt;, WTF::RefPtr&lt;JSC::GenericTypedArrayView&lt;JSC::Uint8Adaptor&gt;, WTF::RawPtrTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Uint8Adaptor&gt; &gt;, WTF::DefaultRefDerefTraits&lt;JSC::GenericTypedArrayView&lt;JSC::Uint8Adaptor&gt; &gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLBuffer, WTF::RawPtrTraits&lt;WebCore::WebGLBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLBuffer&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLFramebuffer, WTF::RawPtrTraits&lt;WebCore::WebGLFramebuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLFramebuffer&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLProgram, WTF::RawPtrTraits&lt;WebCore::WebGLProgram&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLProgram&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLRenderbuffer, WTF::RawPtrTraits&lt;WebCore::WebGLRenderbuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLRenderbuffer&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLTexture, WTF::RawPtrTraits&lt;WebCore::WebGLTexture&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLTexture&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLVertexArrayObjectOES, WTF::RawPtrTraits&lt;WebCore::WebGLVertexArrayObjectOES&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLVertexArrayObjectOES&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLSampler, WTF::RawPtrTraits&lt;WebCore::WebGLSampler&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLSampler&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLTransformFeedback, WTF::RawPtrTraits&lt;WebCore::WebGLTransformFeedback&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLTransformFeedback&gt; &gt;, WTF::RefPtr&lt;WebCore::WebGLVertexArrayObject, WTF::RawPtrTraits&lt;WebCore::WebGLVertexArrayObject&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::WebGLVertexArrayObject&gt; &gt; &gt;’}
 2414 |         return m_context-&gt;getInteger64i(target, index);
      |                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                        |
      |                                        GCGLint64 {aka long int}
```

https://build.webkit.org/#/builders/2/builds/584/steps/10/logs/stdio

This error is not happening in the WPE-Linux-64-bit-Release-Ubuntu-2004-Build build bot because it builds with `--no-experimental-flags` (that means USE_ANGLE_WEBGL is disabled in that bot).

The error doesn&apos;t happen in the standard WPE-Linux-64-bit-Release-Build which builds with experimental flags but with a more modern version of GCC. Thus, I believe the build error is due to the GCC version (v9.4.0) used in WPE-Linux-64bit-Release-Packaging-Nightly-Ubuntu2004.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895049</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-08-30 20:46:46 -0700</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/3836</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895143</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-08-31 07:38:39 -0700</bug_when>
    <thetext>Committed 253984@main (5c5233b36d49): &lt;https://commits.webkit.org/253984@main&gt;

Reviewed commits have been landed. Closing PR #3836 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895144</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-31 07:39:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/99382564&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>