<?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>280642</bug_id>
          
          <creation_ts>2024-09-30 14:55:52 -0700</creation_ts>
          <short_desc>Build broken with LLVM 19: Ref.h:62:16: error: member access into incomplete type &apos;WebCore::HTMLImageElement&apos;</short_desc>
          <delta_ts>2024-10-14 14:53:22 -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>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>ap</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>emw</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2064350</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-09-30 14:55:52 -0700</bug_when>
    <thetext>LLVM 19 does not like the forward declarations in WebCodecsVideoFrame.h:

/builddir/build/BUILD/webkitgtk-2.46.1-build/webkitgtk-2.46.1/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type &apos;WebCore::HTMLImageElement&apos;
   62 |             ptr-&gt;deref();
      |                ^
/builddir/build/BUILD/webkitgtk-2.46.1-build/webkitgtk-2.46.1/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/RefPtr.h:60:47: note: in instantiation of member function &apos;WTF::DefaultRefDerefTraits&lt;WebCore::HTMLImageElement&gt;::derefIfNotNull&apos; requested here
   60 |     ALWAYS_INLINE ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                               ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function &apos;WTF::RefPtr&lt;WebCore::HTMLImageElement&gt;::~RefPtr&apos; requested here
  787 |   template&lt;typename _Ti&gt; struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/builddir/build/BUILD/webkitgtk-2.46.1-build/webkitgtk-2.46.1/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:44:7: note: forward declaration of &apos;WebCore::HTMLImageElement&apos;
   44 | class HTMLImageElement;
      |       ^

This is messy to clean up because we need to include a lot of headers that are currently missing from forwarding headers for unknown reasons, so need to add a bunch of files to Headers.cmake. It seems there are a *lot* of headers missing from Headers.cmake. I will only add those required to make the build succeed for me.

I&apos;m not finished yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064535</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-10-01 09:43:46 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34508</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064546</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-10-01 10:44:01 -0700</bug_when>
    <thetext>Unfortunately all the headers need to be added to XCode as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064548</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-10-01 10:45:12 -0700</bug_when>
    <thetext>Somebody who uses XCode will need to fix this. My pull request should be a good start, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067840</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-10-14 14:03:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/35168</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067849</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-14 14:53:18 -0700</bug_when>
    <thetext>Committed 285146@main (bc1be22110c3): &lt;https://commits.webkit.org/285146@main&gt;

Reviewed commits have been landed. Closing PR #35168 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>