[Webkit-unassigned] [Bug 270394] New: [GTK] ARM64/A64DOpcode.h fails to compile with "error: ‘once_flag’ in namespace ‘std’ does not name a type"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Mar 2 08:39:37 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=270394
Bug ID: 270394
Summary: [GTK] ARM64/A64DOpcode.h fails to compile with "error:
‘once_flag’ in namespace ‘std’ does not name a type"
Product: WebKit
Version: Other
Hardware: Other
OS: Linux
Status: NEW
Keywords: Gtk
Severity: Normal
Priority: P3
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: morgan at eml.cc
When compiling with "jumbo build" disabled, it seems there's a header file missing a dependency.
/var/tmp/portage/net-libs/webkit-gtk-2.42.4-r410/work/webkitgtk-2.42.4/Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.h:84:21: error: ‘once_flag’ in namespace ‘std’ does not name a type
84 | static std::once_flag once;
| ^~~~~~~~~
/var/tmp/portage/net-libs/webkit-gtk-2.42.4-r410/work/webkitgtk-2.42.4/Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.h:31:1: note: ‘std::once_flag’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
30 | #include <wtf/DataLog.h>
+++ |+#include <mutex>
31 | #include <wtf/FastMalloc.h>
/var/tmp/portage/net-libs/webkit-gtk-2.42.4-r410/work/webkitgtk-2.42.4/Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.h:85:14: error: ‘call_once’ is not a member of ‘std’
85 | std::call_once(once, init);
| ^~~~~~~~~
/var/tmp/portage/net-libs/webkit-gtk-2.42.4-r410/work/webkitgtk-2.42.4/Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.h:85:14: note: ‘std::call_once’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
/var/tmp/portage/net-libs/webkit-gtk-2.42.4-r410/work/webkitgtk-2.42.4/Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.h:85:24: error: ‘once’ was not declared in this scope
85 | std::call_once(once, init);
| ^~~~
I originally reported this to Gentoo (the distro I'm using) here: https://bugs.gentoo.org/925621
I'll attach the full ninja output for the this file.
--
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/20240302/cd538585/attachment.htm>
More information about the webkit-unassigned
mailing list