Created
March 25, 2021 18:10
-
-
Save GrayHatter/7717965367b6bba8d7b6563c75b90a4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading: | |
Loading: 0 packages loaded | |
Analyzing: target //html:html (0 packages loaded, 0 targets configured) | |
INFO: Analyzed target //html:html (0 packages loaded, 0 targets configured). | |
INFO: Found 1 target... | |
[0 / 2] [Prepa] BazelWorkspaceStatusAction stable-status.txt | |
ERROR: /home/grayhatter/code/hastur/html/BUILD:3:11: Compiling html/parse.cpp failed: (Exit 1): clang failed: error executing command /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 16 argument(s) skipped) | |
Use --sandbox_debug to see verbose messages from the sandbox clang failed: error executing command /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 16 argument(s) skipped) | |
Use --sandbox_debug to see verbose messages from the sandbox | |
In file included from html/parse.cpp:1: | |
In file included from ./html/parse.h:4: | |
./dom/dom.h:26:10: error: no template named 'variant' in namespace 'std' | |
std::variant<Doctype, Text, Element> data; | |
~~~~~^ | |
./dom/dom.h:29:50: error: unknown type name 'doctype'; did you mean 'Doctype'? | |
inline Node create_doctype_node(std::string_view doctype) { | |
^~~~~~~ | |
Doctype | |
./dom/dom.h:15:8: note: 'Doctype' declared here | |
struct Doctype { std::string doctype; }; | |
^ | |
./dom/dom.h:29:38: error: no type named 'string_view' in namespace 'std' | |
inline Node create_doctype_node(std::string_view doctype) { | |
~~~~~^ | |
./dom/dom.h:30:37: error: use of undeclared identifier 'doctype' | |
return {{}, Doctype{std::string{doctype}}}; | |
^ | |
./dom/dom.h:33:35: error: no type named 'string_view' in namespace 'std' | |
inline Node create_text_node(std::string_view data) { | |
~~~~~^ | |
./dom/dom.h:37:38: error: no type named 'string_view' in namespace 'std' | |
inline Node create_element_node(std::string_view name, AttrMap attrs, std::vector<Node> children) { | |
~~~~~^ | |
In file included from html/parse.cpp:1: | |
./html/parse.h:11:35: error: no type named 'string_view' in namespace 'std' | |
std::vector<dom::Node> parse(std::string_view input); | |
~~~~~^ | |
In file included from html/parse.cpp:3: | |
In file included from ./html/parser.h:5: | |
./util/base_parser.h:13:1: error: unknown type name 'concept' | |
concept Predicate = std::predicate<T, char>; | |
^ | |
./util/base_parser.h:13:9: warning: variable templates are a C++14 extension [-Wc++14-extensions] | |
concept Predicate = std::predicate<T, char>; | |
^ | |
./util/base_parser.h:13:21: error: no template named 'predicate' in namespace 'std'; did you mean 'Predicate'? | |
concept Predicate = std::predicate<T, char>; | |
^~~~~~~~~~~~~~ | |
Predicate | |
./util/base_parser.h:13:9: note: 'Predicate' declared here | |
concept Predicate = std::predicate<T, char>; | |
^ | |
./util/base_parser.h:13:21: error: no template named 'Predicate' in namespace 'std'; did you mean simply 'Predicate'? | |
concept Predicate = std::predicate<T, char>; | |
^~~~~~~~~~~~~~ | |
Predicate | |
./util/base_parser.h:13:9: note: 'Predicate' declared here | |
concept Predicate = std::predicate<T, char>; | |
^ | |
./util/base_parser.h:17:31: error: no type named 'string_view' in namespace 'std' | |
constexpr BaseParser(std::string_view input) : input_{input} {} | |
~~~~~^ | |
./util/base_parser.h:23:20: error: no type named 'string_view' in namespace 'std' | |
constexpr std::string_view peek(std::size_t chars) const { | |
~~~~~^ | |
./util/base_parser.h:27:37: error: no type named 'string_view' in namespace 'std' | |
constexpr bool starts_with(std::string_view prefix) const { | |
~~~~~^ | |
./util/base_parser.h:35:20: warning: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior [-Wconstexpr-not-const] | |
constexpr char consume_char() { | |
^ | |
const | |
./util/base_parser.h:39:20: warning: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior [-Wconstexpr-not-const] | |
constexpr void advance(std::size_t n) { | |
^ | |
const | |
./util/base_parser.h:43:14: error: unknown type name 'Predicate' | |
template<Predicate T> | |
^ | |
./util/base_parser.h:44:20: error: no type named 'string_view' in namespace 'std' | |
constexpr std::string_view consume_while(T const &pred) { | |
~~~~~^ | |
./util/base_parser.h:44:46: error: unknown type name 'T' | |
constexpr std::string_view consume_while(T const &pred) { | |
^ | |
./util/base_parser.h:50:20: warning: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior [-Wconstexpr-not-const] | |
constexpr void skip_whitespace() { | |
^ | |
const | |
./util/base_parser.h:55:46: error: use of class template 'array' requires template arguments | |
static constexpr auto space_chars = std::array{' ', '\f', '\n', '\r', '\t', '\v'}; | |
^ | |
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/array:94:12: note: template is declared here | |
struct array | |
^ | |
In file included from html/parse.cpp:3: | |
In file included from ./html/parser.h:5: | |
./util/base_parser.h:61:10: error: no type named 'string_view' in namespace 'std' | |
std::string_view input_; | |
~~~~~^ | |
./util/base_parser.h:19:20: error: no return statement in constexpr function | |
constexpr char peek() const { | |
^ | |
fatal error: too many errors emitted, stopping now [-ferror-limit=] | |
4 warnings and 20 errors generated. | |
Target //html:html failed to build | |
Use --verbose_failures to see the command lines of failed build steps. | |
INFO: Elapsed time: 0.481s, Critical Path: 0.32s | |
INFO: 3 processes: 3 internal. | |
FAILED: Build did NOT complete successfully | |
FAILED: Build did NOT complete successfully |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment