[Webkit-unassigned] [Bug 244568] New: [GCC] Cannot convert GCGLint64 to WebGLAny

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 30 20:42:46 PDT 2022


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

            Bug ID: 244568
           Summary: [GCC] Cannot convert GCGLint64 to WebGLAny
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dpino at igalia.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

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)->WebCore::WebGL2RenderingContext::<anonymous>.WebCore::WebGLRenderingContextBase::m_context.WTF::RefPtr<WebCore::GraphicsContextGL>::operator->()->WebCore::GraphicsContextGL::getInteger64i(target, index)’ from ‘GCGLint64’ {aka ‘long int’} to ‘WebCore::WebGLAny’ {aka ‘std::variant<std::nullptr_t, bool, int, unsigned int, long long int, float, WTF::String, WTF::Vector<bool, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc>, WTF::Vector<int, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc>, WTF::Vector<unsigned int, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc>, WTF::RefPtr<JSC::GenericTypedArrayView<JSC::Float32Adaptor>, WTF::RawPtrTraits<JSC::GenericTypedArrayView<JSC::Float32Adaptor> >, WTF::DefaultRefDerefTraits<JSC::GenericTypedArrayView<JSC::Float32Adaptor> > >, WTF::RefPtr<JSC::GenericTypedArrayView<JSC::Int32Adaptor>, WTF::RawPtrTraits<JSC::GenericTypedArrayView<JSC::Int32Adaptor> >, WTF::DefaultRefDerefTraits<JSC::GenericTypedArrayView<JSC::Int32Adaptor> > >, WTF::RefPtr<JSC::GenericTypedArrayView<JSC::Uint32Adaptor>, WTF::RawPtrTraits<JSC::GenericTypedArrayView<JSC::Uint32Adaptor> >, WTF::DefaultRefDerefTraits<JSC::GenericTypedArrayView<JSC::Uint32Adaptor> > >, WTF::RefPtr<JSC::GenericTypedArrayView<JSC::Uint8Adaptor>, WTF::RawPtrTraits<JSC::GenericTypedArrayView<JSC::Uint8Adaptor> >, WTF::DefaultRefDerefTraits<JSC::GenericTypedArrayView<JSC::Uint8Adaptor> > >, WTF::RefPtr<WebCore::WebGLBuffer, WTF::RawPtrTraits<WebCore::WebGLBuffer>, WTF::DefaultRefDerefTraits<WebCore::WebGLBuffer> >, WTF::RefPtr<WebCore::WebGLFramebuffer, WTF::RawPtrTraits<WebCore::WebGLFramebuffer>, WTF::DefaultRefDerefTraits<WebCore::WebGLFramebuffer> >, WTF::RefPtr<WebCore::WebGLProgram, WTF::RawPtrTraits<WebCore::WebGLProgram>, WTF::DefaultRefDerefTraits<WebCore::WebGLProgram> >, WTF::RefPtr<WebCore::WebGLRenderbuffer, WTF::RawPtrTraits<WebCore::WebGLRenderbuffer>, WTF::DefaultRefDerefTraits<WebCore::WebGLRenderbuffer> >, WTF::RefPtr<WebCore::WebGLTexture, WTF::RawPtrTraits<WebCore::WebGLTexture>, WTF::DefaultRefDerefTraits<WebCore::WebGLTexture> >, WTF::RefPtr<WebCore::WebGLVertexArrayObjectOES, WTF::RawPtrTraits<WebCore::WebGLVertexArrayObjectOES>, WTF::DefaultRefDerefTraits<WebCore::WebGLVertexArrayObjectOES> >, WTF::RefPtr<WebCore::WebGLSampler, WTF::RawPtrTraits<WebCore::WebGLSampler>, WTF::DefaultRefDerefTraits<WebCore::WebGLSampler> >, WTF::RefPtr<WebCore::WebGLTransformFeedback, WTF::RawPtrTraits<WebCore::WebGLTransformFeedback>, WTF::DefaultRefDerefTraits<WebCore::WebGLTransformFeedback> >, WTF::RefPtr<WebCore::WebGLVertexArrayObject, WTF::RawPtrTraits<WebCore::WebGLVertexArrayObject>, WTF::DefaultRefDerefTraits<WebCore::WebGLVertexArrayObject> > >’}
 2414 |         return m_context->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'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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220831/3ac1ba32/attachment-0001.htm>


More information about the webkit-unassigned mailing list