[Webkit-unassigned] [Bug 189612] New: [Win][Clang][WebKitLegacy] error: cannot pass object of non-trivial type through variadic function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 13 20:19:44 PDT 2018


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

            Bug ID: 189612
           Summary: [Win][Clang][WebKitLegacy] error: cannot pass object
                    of non-trivial type through variadic function
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com
            Blocks: 171618

[Win][Clang][WebKitLegacy] error: cannot pass object of non-trivial type through variadic function

While doing Bug 171618, the following compilation errors are reported.

> [5/31] Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy.dir\win\DefaultPolicyDelegate.cpp.obj
> FAILED: Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/win/DefaultPolicyDelegate.cpp.obj 
> C:\tools\llvm\bin\clang-cl.exe  (...) -c ..\..\Source\WebKitLegacy\win\DefaultPolicyDelegate.cpp
> In file included from ..\..\Source\WebKitLegacy\win\DefaultPolicyDelegate.cpp:26:
> ..\..\Source\WebKitLegacy\win/WebKitDLL.h(53,37):  warning: 'gClassNameCount' has C-linkage specified, but returns user-defined type 'HashCountedSet<WTF::String> &' which is incompatible with C [-Wreturn-type-c-linkage]
> extern HashCountedSet<WTF::String>& gClassNameCount();
>                                     ^
> ..\..\Source\WebKitLegacy\win\DefaultPolicyDelegate.cpp(182,72):  error: cannot pass object of non-trivial type 'WebCore::BString' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
>     LOG_ERROR("called unableToImplementPolicyWithError:%S inFrame:%S", errorStr ? errorStr : TEXT(""), frameName ? frameName : TEXT(""));
>                                                                        ^
> ..\..\Source\WebKitLegacy\win\DefaultPolicyDelegate.cpp(182,104):  error: cannot pass object of non-trivial type 'WebCore::BString' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
>     LOG_ERROR("called unableToImplementPolicyWithError:%S inFrame:%S", errorStr ? errorStr : TEXT(""), frameName ? frameName : TEXT(""));
>                                                                                                        ^
> 1 warning and 2 errors generated.


> [4/31] Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy.dir\win\WebLocalizableStrings.cpp.obj
> FAILED: Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/win/WebLocalizableStrings.cpp.obj 
> C:\tools\llvm\bin\clang-cl.exe (...) -c ..\..\Source\WebKitLegacy\win\WebLocalizableStrings.cpp
> In file included from ..\..\Source\WebKitLegacy\win\WebLocalizableStrings.cpp:26:
> ..\..\Source\WebKitLegacy\win/WebKitDLL.h(53,37):  warning: 'gClassNameCount' has C-linkage specified, but returns user-defined type 'HashCountedSet<WTF::String> &' which is incompatible with C [-Wreturn-type-c-linkage]
> extern HashCountedSet<WTF::String>& gClassNameCount();
>                                     ^
> ..\..\Source\WebKitLegacy\win\WebLocalizableStrings.cpp(164,95):  error: cannot pass object of non-trivial type 'const WTF::String' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
>     ASSERT_WITH_MESSAGE(result != notFound, "could not find localizable string %s in bundle", key);
>                                                                                               ^
> 1 warning and 1 error generated.
> [5/31] Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy.dir\win\DefaultPolicyDelegate.cpp.obj


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=171618
[Bug 171618] [Win][Meta] Build WebKit using Clang
-- 
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/20180914/3a1714ed/attachment.html>


More information about the webkit-unassigned mailing list