<?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>245044</bug_id>
          
          <creation_ts>2022-09-11 05:04:21 -0700</creation_ts>
          <short_desc>no viable conversion from returned value of type &apos;tuple&lt;IPC::Attachment &amp;&amp;&gt;&apos;</short_desc>
          <delta_ts>2022-12-13 05:26:41 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>246149</dup_id>
          <see_also>https://github.com/Igalia/cerbero/pull/27</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=246149</see_also>
          <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="Antoine Jacoutot">ajacoutot</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zan</cc>
    
    <cc>zdobersek</cc>
    
    <cc>zhaixiang</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1897686</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Jacoutot">ajacoutot</who>
    <bug_when>2022-09-11 05:04:21 -0700</bug_when>
    <thetext>Hi.

Trying to build release 2.37.91 or HEAD (as of today) on:

$ uname -mrsv                                                  
OpenBSD 7.2 GENERIC.MP#719 amd64
$ c++ --version                                                
OpenBSD clang version 13.0.0
Target: amd64-unknown-openbsd7.2
Thread model: posix
InstalledDir: /usr/bin

... with libc++ 13.0.0.

I am running into the following error:

&lt;...&gt;/__/__/DerivedSources/WebKit/WebInspectorUIProxyMessageReceiver.cpp.o -MF Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/WebInspectorUIProxyMessageReceiver.cpp.o.d -o Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/WebInspectorUIProxyMessageReceiver.cpp.o -c /hack/objdirs/pobj/webkitgtk40-2.37.91/build-amd64/DerivedSources/WebKit/WebInspectorUIProxyMessageReceiver.cpp
In file included from &lt;built-in&gt;:1:
In file included from /hack/objdirs/pobj/webkitgtk40-2.37.91/webkitgtk-2.37.91/Source/WebKit/WebKit2Prefix.h:72:
In file included from /usr/include/c++/v1/algorithm:653:
In file included from /usr/include/c++/v1/functional:495:
In file included from /usr/include/c++/v1/__functional/bind_front.h:14:
In file included from /usr/include/c++/v1/__functional/perfect_forward.h:14:
/usr/include/c++/v1/tuple:1505:12: error: no viable conversion from returned value of type &apos;tuple&lt;IPC::Attachment &amp;&amp;&gt;&apos; to function return type &apos;tuple&lt;IPC::Attachment&gt;&apos;
    return __tuple_cat&lt;tuple&lt;&gt;, __tuple_indices&lt;&gt;,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/hack/objdirs/pobj/webkitgtk40-2.37.91/webkitgtk-2.37.91/Source/WebKit/Platform/IPC/ArgumentCoders.h:532:21: note: in instantiation of function template specialization &apos;std::tuple_cat&lt;std::tuple&lt;IPC::Attachment&gt;, std::tuple&lt;&gt;&gt;&apos; requested here
        return std::tuple_cat(std::make_tuple(WTFMove(*optional)), WTFMove(*remainder));
                    ^
/hack/objdirs/pobj/webkitgtk40-2.37.91/webkitgtk-2.37.91/Source/WebKit/Platform/IPC/ArgumentCoders.h:555:43: note: in instantiation of function template specialization &apos;IPC::TupleDecoder&lt;IPC::Attachment&gt;::decode&lt;IPC::Decoder&gt;&apos; requested here
        return TupleDecoder&lt;Elements...&gt;::decode(decoder);
                                          ^
/hack/objdirs/pobj/webkitgtk40-2.37.91/webkitgtk-2.37.91/Source/WebKit/Platform/IPC/Decoder.h:126:40: note: in instantiation of function template specialization &apos;IPC::ArgumentCoder&lt;std::tuple&lt;IPC::Attachment&gt;&gt;::decode&lt;IPC::Decoder&gt;&apos; requested here
            std::optional&lt;T&gt; t { Impl::decode(*this) };
                                       ^

Might have something to do with our libc++ version but as this point, I could use some help.
Thanks a lot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897793</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-09-12 01:38:38 -0700</bug_when>
    <thetext>I have run into into what looks like exactly the same build error when trying
to update WPE-Android to 2.37.91 (https://github.com/Igalia/cerbero/pull/27
Currently we are using NDK r23b, which ships Clang/LLVM 12. The template
specialization looks a bit iffy so maybe we&apos;ll need to look into that anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898427</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-09-14 03:45:22 -0700</bug_when>
    <thetext>I can reproduce this configuring with Clang/libc++ 14.0.6, so the issue
is still there regardless of using newer versions. In order to reproduce
on Linux, use:

  CC=clang CXX=clang++ CXXFLAGS=-stdlib=libc++ \
      cmake -S. -Bbuild-libcxx -DPORT=GTK -GNinja
  ninja -Cbuild-libcxx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898450</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-09-14 06:18:57 -0700</bug_when>
    <thetext>I think this is caused by 249548@main.

(How do I know this? Because Leslie Zhai said so in https://github.com/WebKit/WebKit/pull/3908#issuecomment-1235025317.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898458</commentid>
    <comment_count>4</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2022-09-14 07:24:21 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #2)
&gt; I can reproduce this configuring with Clang/libc++ 14.0.6, so the issue
&gt; is still there regardless of using newer versions. In order to reproduce
&gt; on Linux, use:
&gt; 
&gt;   CC=clang CXX=clang++ CXXFLAGS=-stdlib=libc++ \
&gt;       cmake -S. -Bbuild-libcxx -DPORT=GTK -GNinja
&gt;   ninja -Cbuild-libcxx

Not achievable on Debian Unstable since libc++ depends on a libunwind package that&apos;s in conflict with another libunwind package that&apos;s dependency of libgstreamer-plugins-base1.0-dev, without which the configuration or build won&apos;t succeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898595</commentid>
    <comment_count>5</comment_count>
    <who name="Leslie Zhai">zhaixiang</who>
    <bug_when>2022-09-14 17:23:33 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #3)
&gt; I think this is caused by 249548@main.
&gt; 
&gt; (How do I know this? Because Leslie Zhai said so in
&gt; https://github.com/WebKit/WebKit/pull/3908#issuecomment-1235025317.)

Yes, it is reproducible for LoongArch64 when using LLVM libcxx, so we just revert the commit:  [WK2] Simplify IPC encoding, decoding of tuples  https://github.com/WebKit/WebKit/commit/34daeac7dc0fb6f1d9421c5c6c8cdf92cdc0abc5

Thanks,
Leslie Zhai</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904228</commentid>
    <comment_count>6</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2022-10-08 00:32:24 -0700</bug_when>
    <thetext>Fixed by removing concatenation in #246149
https://github.com/WebKit/WebKit/pull/5083</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918773</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-12-13 05:26:41 -0800</bug_when>
    <thetext>(In reply to Zan Dobersek from comment #6)
&gt; Fixed by removing concatenation in #246149
&gt; https://github.com/WebKit/WebKit/pull/5083

Antoine, I see that the 2.38.2 release (which includes this patch) is
available in the OpenBSD ports tree: https://openports.se/www/webkitgtk4
so it seems this issue has indeed been fixed for you. Therefore I am going
to close this as a duplicate -- please reopen the issue if I am wrong and
there is still something we would need to fix in this regard :)

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

    </bug>

</bugzilla>