Giter VIP home page Giter VIP logo

Comments (10)

0x804d8000 avatar 0x804d8000 commented on May 6, 2024

我本地编了个gcc11.3没有复现,可能跟系统库之类的有关系,可以把完整的错误信息贴出来吗?

from flare.

zbhxlj avatar zbhxlj commented on May 6, 2024

Blade: Entering directory `/home/zbh/project/flare'
Blade(info): Loading config file "/home/zbh/project/flare/thirdparty/blade/blade.conf"
Blade(info): Loading config file "/home/zbh/project/flare/BLADE_ROOT"
Blade(info): Loading BUILD files...
Blade(info): Loading done.
Blade(info): Analyzing dependency graph...
Blade(info): Analyzing done.
Blade(info): Generating backend build code...
Blade(info): Generating done.
Blade(info): Building...
Blade(info): Adjust build jobs number(-j N) to be 8
[11/2437] CC INCLUSION CHECK build64_release/thirdparty/xxhash/xxhsum.incchk

[29/2437] MAKE //thirdparty/ctemplate:ctemplate_build
FAILED: build64_release/thirdparty/ctemplate/lib/libctemplate.a build64_release/thirdparty/ctemplate/lib/libctemplate.so
((make -C build64_release/thirdparty/ctemplate/ctemplate-ctemplate-2.4 -j8 && make -C build64_release/thirdparty/ctemplate/ctemplate-ctemplate-2.4 install) > build64_release/thirdparty/ctemplate/ctemplate_make.log 2>&1 || (cat build64_release/thirdparty/ctemplate/ctemplate_make.log && false)) && (cd build64_release/thirdparty/ctemplate/ && for f in $(find include/ctemplate -name '.h' -or -name '.hpp'); do nf=${f#include/ctemplate/}; d=$(dirname $nf); if [ "$d" != "." ]; then mkdir -p "$d"; fi; echo "#include "build64_release/thirdparty/ctemplate//$f"" > $nf; done) && cd /home/zbh/project/flare && ls build64_release/thirdparty/ctemplate/lib/libctemplate.a build64_release/thirdparty/ctemplate/lib/libctemplate.so > /dev/null
make: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/ctemplate/ctemplate-ctemplate-2.4'
make all-am
make[1]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/ctemplate/ctemplate-ctemplate-2.4'
CXX src/diff_tpl_auto_escape.o
CXX src/base/libctemplate_la-arena.lo
CXX src/libctemplate_la-per_expand_data.lo
CXX src/libctemplate_la-template.lo
CXX src/libctemplate_la-template_annotator.lo
CXX src/libctemplate_la-template_cache.lo
CXX src/libctemplate_la-template_dictionary.lo
CXX src/libctemplate_la-template_modifiers.lo
CXX src/libctemplate_la-template_namelist.lo
CXX src/libctemplate_la-template_pathops.lo
CXX src/libctemplate_la-template_string.lo
CXX src/htmlparser/libctemplate_la-htmlparser.lo
CXX src/htmlparser/libctemplate_la-jsparser.lo
src/htmlparser/htmlparser.cc: In function 'int ctemplate_htmlparser::state_external(int)':
src/htmlparser/htmlparser.cc:102:14: error: 'htmlparser_states_external' was not declared in this scope; did you mean 'htmlparser_state_external_enum'?
102 | return htmlparser_states_external[st];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| htmlparser_state_external_enum
src/htmlparser/htmlparser.cc: In function 'void ctemplate_htmlparser::tag_close(ctemplate_htmlparser::statemachine_ctx*, int, char, int)':
src/htmlparser/htmlparser.cc:591:25: error: 'HTMLPARSER_STATE_INT_CDATA_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
591 | ctx->next_state = HTMLPARSER_STATE_INT_CDATA_TEXT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc:597:25: error: 'HTMLPARSER_STATE_INT_CDATA_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
597 | ctx->next_state = HTMLPARSER_STATE_INT_CDATA_TEXT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc: In function 'void ctemplate_htmlparser::exit_state_cdata_may_close(ctemplate_htmlparser::statemachine_ctx*, int, char, int)':
src/htmlparser/htmlparser.cc:648:23: error: 'HTMLPARSER_STATE_INT_CDATA_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
648 | ctx->next_state = HTMLPARSER_STATE_INT_CDATA_TEXT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc: In function 'void ctemplate_htmlparser::htmlparser_reset_mode(ctemplate_htmlparser::htmlparser_ctx*, int)':
src/htmlparser/htmlparser.cc:667:42: error: 'HTMLPARSER_STATE_INT_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
667 | ctx->statemachine->current_state = HTMLPARSER_STATE_INT_TEXT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc:670:42: error: 'HTMLPARSER_STATE_INT_JS_FILE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_JS_FILE'?
670 | ctx->statemachine->current_state = HTMLPARSER_STATE_INT_JS_FILE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_JS_FILE
src/htmlparser/htmlparser.cc:674:42: error: 'HTMLPARSER_STATE_INT_CSS_FILE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_CSS_FILE'?
674 | ctx->statemachine->current_state = HTMLPARSER_STATE_INT_CSS_FILE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_CSS_FILE
src/htmlparser/htmlparser.cc:677:42: error: 'HTMLPARSER_STATE_INT_TAG_SPACE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TAG'?
677 | ctx->statemachine->current_state = HTMLPARSER_STATE_INT_TAG_SPACE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TAG
src/htmlparser/htmlparser.cc: In function 'ctemplate_htmlparser::statemachine_definition* ctemplate_htmlparser::create_statemachine_definition()':
src/htmlparser/htmlparser.cc:706:37: error: 'HTMLPARSER_NUM_STATES' was not declared in this scope; did you mean 'HTMLPARSER_ATTR_STYLE'?
706 | def = statemachine_definition_new(HTMLPARSER_NUM_STATES);
| ^~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_ATTR_STYLE
src/htmlparser/htmlparser.cc:710:41: error: 'htmlparser_state_transitions' was not declared in this scope
710 | statemachine_definition_populate(def, htmlparser_state_transitions,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:711:36: error: 'htmlparser_states_internal_names' was not declared in this scope; did you mean 'htmlparser_state_external_enum'?
711 | htmlparser_states_internal_names);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| htmlparser_state_external_enum
src/htmlparser/htmlparser.cc:713:33: error: 'HTMLPARSER_STATE_INT_TAG_NAME' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TAG'?
713 | statemachine_enter_state(def, HTMLPARSER_STATE_INT_TAG_NAME,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TAG
src/htmlparser/htmlparser.cc:717:33: error: 'HTMLPARSER_STATE_INT_ATTR' was not declared in this scope; did you mean 'HTMLPARSER_STATE_ATTR'?
717 | statemachine_enter_state(def, HTMLPARSER_STATE_INT_ATTR, enter_attr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_ATTR
src/htmlparser/htmlparser.cc:720:33: error: 'HTMLPARSER_STATE_INT_TAG_CLOSE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
720 | statemachine_enter_state(def, HTMLPARSER_STATE_INT_TAG_CLOSE, tag_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc:726:30: error: 'HTMLPARSER_STATE_INT_CDATA_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
726 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_TEXT, in_state_cdata);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc:727:30: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_START' was not declared in this scope
727 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_COMMENT_START,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:729:30: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_START_DASH' was not declared in this scope
729 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_COMMENT_START_DASH,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:731:30: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_BODY' was not declared in this scope
731 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_COMMENT_BODY,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:733:30: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH' was not declared in this scope
733 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:735:30: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH_DASH' was not declared in this scope
735 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH_DASH,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:737:30: error: 'HTMLPARSER_STATE_INT_CDATA_LT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
737 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_LT, in_state_cdata);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc:738:30: error: 'HTMLPARSER_STATE_INT_CDATA_MAY_CLOSE' was not declared in this scope
738 | statemachine_in_state(def, HTMLPARSER_STATE_INT_CDATA_MAY_CLOSE,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:742:30: error: 'HTMLPARSER_STATE_INT_JS_FILE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_JS_FILE'?
742 | statemachine_in_state(def, HTMLPARSER_STATE_INT_JS_FILE, in_state_cdata);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_JS_FILE
src/htmlparser/htmlparser.cc:749:33: error: 'HTMLPARSER_STATE_INT_VALUE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
749 | statemachine_enter_state(def, HTMLPARSER_STATE_INT_VALUE, enter_value);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc:752:33: error: 'HTMLPARSER_STATE_INT_VALUE_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
752 | statemachine_enter_state(def, HTMLPARSER_STATE_INT_VALUE_TEXT,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc:754:33: error: 'HTMLPARSER_STATE_INT_VALUE_Q' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
754 | statemachine_enter_state(def, HTMLPARSER_STATE_INT_VALUE_Q,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc:756:33: error: 'HTMLPARSER_STATE_INT_VALUE_DQ' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
756 | statemachine_enter_state(def, HTMLPARSER_STATE_INT_VALUE_DQ,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc: In function 'int ctemplate_htmlparser::htmlparser_is_attr_quoted(ctemplate_htmlparser::htmlparser_ctx*)':
src/htmlparser/htmlparser.cc:852:13: error: 'HTMLPARSER_STATE_INT_VALUE_Q_START' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
852 | if (st == HTMLPARSER_STATE_INT_VALUE_Q_START ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc:853:13: error: 'HTMLPARSER_STATE_INT_VALUE_Q' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
853 | st == HTMLPARSER_STATE_INT_VALUE_Q ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc:854:13: error: 'HTMLPARSER_STATE_INT_VALUE_DQ_START' was not declared in this scope
854 | st == HTMLPARSER_STATE_INT_VALUE_DQ_START ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:855:13: error: 'HTMLPARSER_STATE_INT_VALUE_DQ' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
855 | st == HTMLPARSER_STATE_INT_VALUE_DQ)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc: In function 'int ctemplate_htmlparser::htmlparser_in_js(ctemplate_htmlparser::htmlparser_ctx*)':
src/htmlparser/htmlparser.cc:871:14: error: 'HTMLPARSER_STATE_INT_CDATA_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
871 | (st == HTMLPARSER_STATE_INT_CDATA_TEXT ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc:872:14: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_START' was not declared in this scope
872 | st == HTMLPARSER_STATE_INT_CDATA_COMMENT_START ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:873:14: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_START_DASH' was not declared in this scope
873 | st == HTMLPARSER_STATE_INT_CDATA_COMMENT_START_DASH ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:874:14: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_BODY' was not declared in this scope
874 | st == HTMLPARSER_STATE_INT_CDATA_COMMENT_BODY ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:875:14: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH' was not declared in this scope
875 | st == HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:876:14: error: 'HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH_DASH' was not declared in this scope
876 | st == HTMLPARSER_STATE_INT_CDATA_COMMENT_DASH_DASH ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:877:14: error: 'HTMLPARSER_STATE_INT_CDATA_LT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_TEXT'?
877 | st == HTMLPARSER_STATE_INT_CDATA_LT ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc:878:14: error: 'HTMLPARSER_STATE_INT_CDATA_MAY_CLOSE' was not declared in this scope
878 | st == HTMLPARSER_STATE_INT_CDATA_MAY_CLOSE ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc:879:14: error: 'HTMLPARSER_STATE_INT_JS_FILE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_JS_FILE'?
879 | st == HTMLPARSER_STATE_INT_JS_FILE))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_JS_FILE
src/htmlparser/htmlparser.cc: In function 'int ctemplate_htmlparser::htmlparser_in_css(ctemplate_htmlparser::htmlparser_ctx*)':
src/htmlparser/htmlparser.cc:924:16: error: 'HTMLPARSER_STATE_INT_CSS_FILE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_CSS_FILE'?
924 | if (state == HTMLPARSER_STATE_INT_CSS_FILE ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_CSS_FILE
src/htmlparser/htmlparser.cc: In function 'int ctemplate_htmlparser::htmlparser_insert_text(ctemplate_htmlparser::htmlparser_ctx*)':
src/htmlparser/htmlparser.cc:1076:52: error: 'HTMLPARSER_STATE_INT_VALUE' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
1076 | if (statemachine_get_state(ctx->statemachine) == HTMLPARSER_STATE_INT_VALUE) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc:1077:47: error: 'HTMLPARSER_STATE_INT_VALUE_TEXT' was not declared in this scope; did you mean 'HTMLPARSER_STATE_VALUE'?
1077 | statemachine_set_state(ctx->statemachine, HTMLPARSER_STATE_INT_VALUE_TEXT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTMLPARSER_STATE_VALUE
src/htmlparser/htmlparser.cc: In function 'int ctemplate_htmlparser::htmlparser_is_attr_quoted(ctemplate_htmlparser::htmlparser_ctx*)':
src/htmlparser/htmlparser.cc:851:34: warning: control reaches end of non-void function [-Wreturn-type]
851 | int st = statemachine_get_state(ctx->statemachine);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
src/htmlparser/htmlparser.cc: In function 'int ctemplate_htmlparser::htmlparser_in_css(ctemplate_htmlparser::htmlparser_ctx*)':
src/htmlparser/htmlparser.cc:922:38: warning: control reaches end of non-void function [-Wreturn-type]
922 | int external_state = state_external(state);
| ~~~~~~~~~~~~~~^~~~~~~
make[1]: *** [Makefile:2327: src/htmlparser/libctemplate_la-htmlparser.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
src/htmlparser/jsparser.cc: In function 'int ctemplate_htmlparser::state_external(int)':
src/htmlparser/jsparser.cc:127:10: error: 'jsparser_states_external' was not declared in this scope
127 | return jsparser_states_external[state];
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/jsparser.cc: In function 'void ctemplate_htmlparser::enter_state_js_slash(ctemplate_htmlparser::statemachine_ctx*, int, char, int)':
src/htmlparser/jsparser.cc:467:27: error: 'JSPARSER_STATE_INT_JS_REGEXP_SLASH' was not declared in this scope
467 | ctx->next_state = JSPARSER_STATE_INT_JS_REGEXP_SLASH;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/jsparser.cc:474:27: error: 'JSPARSER_STATE_INT_JS_REGEXP_SLASH' was not declared in this scope
474 | ctx->next_state = JSPARSER_STATE_INT_JS_REGEXP_SLASH;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/jsparser.cc:499:25: error: 'JSPARSER_STATE_INT_JS_REGEXP_SLASH' was not declared in this scope
499 | ctx->next_state = JSPARSER_STATE_INT_JS_REGEXP_SLASH;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/jsparser.cc: In function 'ctemplate_htmlparser::statemachine_definition* ctemplate_htmlparser::create_statemachine_definition()':
src/htmlparser/jsparser.cc:546:37: error: 'JSPARSER_NUM_STATES' was not declared in this scope; did you mean 'JSPARSER_STATE_Q'?
546 | def = statemachine_definition_new(JSPARSER_NUM_STATES);
| ^~~~~~~~~~~~~~~~~~~
| JSPARSER_STATE_Q
src/htmlparser/jsparser.cc:551:41: error: 'jsparser_state_transitions' was not declared in this scope
551 | statemachine_definition_populate(def, jsparser_state_transitions,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/jsparser.cc:552:36: error: 'jsparser_states_internal_names' was not declared in this scope
552 | jsparser_states_internal_names);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/jsparser.cc:554:30: error: 'JSPARSER_STATE_INT_JS_TEXT' was not declared in this scope; did you mean 'JSPARSER_STATE_TEXT'?
554 | statemachine_in_state(def, JSPARSER_STATE_INT_JS_TEXT,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| JSPARSER_STATE_TEXT
src/htmlparser/jsparser.cc:556:33: error: 'JSPARSER_STATE_INT_JS_SLASH' was not declared in this scope
556 | statemachine_enter_state(def, JSPARSER_STATE_INT_JS_SLASH,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/htmlparser/jsparser.cc:558:33: error: 'JSPARSER_STATE_INT_JS_COMMENT_AFTER' was not declared in this scope
558 | statemachine_enter_state(def, JSPARSER_STATE_INT_JS_COMMENT_AFTER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2334: src/htmlparser/libctemplate_la-jsparser.lo] Error 1
make[1]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/ctemplate/ctemplate-ctemplate-2.4'
make: *** [Makefile:1539: all] Error 2
make: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/ctemplate/ctemplate-ctemplate-2.4'
ninja: build stopped: subcommand failed.
Blade(error): Build failure.
Blade(info): Cost time 30.5s
Blade(error): Failure

完整错误如上,我倒是没有考虑系统库的问题。但是其他同学有成功编译的,应该还是和本地环境有关

from flare.

0x804d8000 avatar 0x804d8000 commented on May 6, 2024

好像跟python有关:OlafvdSpek/ctemplate#135 (comment)

试试装一个python3,然后把build64_release删掉(不然会增量跑,可能会受这个残留环境的影响)重新blade build看看

from flare.

zbhxlj avatar zbhxlj commented on May 6, 2024

之前使用了python3.10,然后会遇到Import Error,使用了pyenv装了python3.9然后python3软链接到3.9.估计是这个问题,我尝试下,谢谢

from flare.

zbhxlj avatar zbhxlj commented on May 6, 2024

使用python3.10, opentracing-cpp compile fail
Blade: Entering directory `/home/zbh/project/flare'
Blade(info): Loading config file "/home/zbh/project/flare/thirdparty/blade/blade.conf"
Blade(info): Loading config file "/home/zbh/project/flare/BLADE_ROOT"
Blade(info): Loading BUILD files...
Blade(info): Loading done.
Blade(info): Analyzing dependency graph...
Blade(info): Analyzing done.
Blade(info): Generating backend build code...
Blade(info): Generating done.
Blade(info): Building...
Blade(info): Adjust build jobs number(-j N) to be 8
[216/2643] CMAKE BUILD //thirdparty/opentracing-cpp:opentracing-cpp_build
FAILED: build64_release/thirdparty/opentracing-cpp/lib/libopentracing.a build64_release/thirdparty/opentracing-cpp/lib/libopentracing.so build64_release/thirdparty/opentracing-cpp/lib/libopentracing_mocktracer.a build64_release/thirdparty/opentracing-cpp/lib/libopentracing_mocktracer.so
(make -C build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build -j16 install > build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build.log 2>&1 || (cat build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build.log && false)) && (cd build64_release/thirdparty/opentracing-cpp/ && for f in $(find include/opentracing -name '.h' -or -name '.hpp'); do nf=${f#include/opentracing/}; d=$(dirname $nf); if [ "$d" != "." ]; then mkdir -p "$d"; fi; echo "#include "build64_release/thirdparty/opentracing-cpp//$f"" > $nf; done) && cd /home/zbh/project/flare && ls build64_release/thirdparty/opentracing-cpp/lib/libopentracing.a build64_release/thirdparty/opentracing-cpp/lib/libopentracing.so build64_release/thirdparty/opentracing-cpp/lib/libopentracing_mocktracer.a build64_release/thirdparty/opentracing-cpp/lib/libopentracing_mocktracer.so > /dev/null
make: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[1]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
Scanning dependencies of target opentracing
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
Scanning dependencies of target opentracing-static
Scanning dependencies of target value_test
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
Scanning dependencies of target util_test
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 1%] Building CXX object CMakeFiles/opentracing.dir/src/propagation.cpp.o
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
Scanning dependencies of target string_view_test
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 3%] Building CXX object CMakeFiles/opentracing.dir/src/dynamic_load.cpp.o
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 4%] Building CXX object test/CMakeFiles/util_test.dir/util_test.cpp.o
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 6%] Building CXX object test/CMakeFiles/value_test.dir/value_test.cpp.o
[ 7%] Building CXX object test/CMakeFiles/string_view_test.dir/string_view_test.cpp.o
[ 9%] Building CXX object CMakeFiles/opentracing-static.dir/src/propagation.cpp.o
[ 10%] Building CXX object CMakeFiles/opentracing.dir/src/noop.cpp.o
[ 12%] Building CXX object CMakeFiles/opentracing.dir/src/tracer.cpp.o
[ 13%] Building CXX object CMakeFiles/opentracing-static.dir/src/dynamic_load.cpp.o
[ 15%] Building CXX object CMakeFiles/opentracing.dir/src/tracer_factory.cpp.o
[ 16%] Building CXX object CMakeFiles/opentracing.dir/src/ext/tags.cpp.o
[ 18%] Building CXX object CMakeFiles/opentracing-static.dir/src/noop.cpp.o
[ 20%] Building CXX object CMakeFiles/opentracing-static.dir/src/tracer.cpp.o
[ 21%] Building CXX object CMakeFiles/opentracing.dir/src/dynamic_load_unix.cpp.o
[ 23%] Building CXX object CMakeFiles/opentracing-static.dir/src/tracer_factory.cpp.o
[ 24%] Building CXX object CMakeFiles/opentracing-static.dir/src/ext/tags.cpp.o
[ 26%] Building CXX object CMakeFiles/opentracing-static.dir/src/dynamic_load_unix.cpp.o
In file included from /usr/include/signal.h:328,
from /home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6456,
from /home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/test/value_test.cpp:5:
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array ‘altStackMem’ is not an integral constant-expression
6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
In file included from /usr/include/signal.h:328,
from /home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6456,
from /home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/test/util_test.cpp:7:
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array ‘altStackMem’ is not an integral constant-expression
6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
In file included from /usr/include/signal.h:328,
from /home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6456,
from /home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/test/string_view_test.cpp:5:
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array ‘altStackMem’ is not an integral constant-expression
6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
[ 27%] Linking CXX static library output/libopentracing.a
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 27%] Built target opentracing-static
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
Scanning dependencies of target opentracing_mocktracer-static
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[2]: Entering directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 29%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/mock_span_context.cpp.o
[ 30%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/mock_span.cpp.o
[ 32%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/in_memory_recorder.cpp.o
[ 33%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/json_recorder.cpp.o
[ 35%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/base64.cpp.o
[ 36%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/propagation.cpp.o
[ 38%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/utility.cpp.o
[ 40%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/json.cpp.o
make[2]: *** [test/CMakeFiles/value_test.dir/build.make:83: test/CMakeFiles/value_test.dir/value_test.cpp.o] Error 1
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[1]: *** [CMakeFiles/Makefile2:1295: test/CMakeFiles/value_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 41%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/tracer.cpp.o
[ 43%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer-static.dir/src/tracer_factory.cpp.o
make[2]: *** [test/CMakeFiles/util_test.dir/build.make:83: test/CMakeFiles/util_test.dir/util_test.cpp.o] Error 1
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[1]: *** [CMakeFiles/Makefile2:1241: test/CMakeFiles/util_test.dir/all] Error 2
make[2]: *** [test/CMakeFiles/string_view_test.dir/build.make:83: test/CMakeFiles/string_view_test.dir/string_view_test.cpp.o] Error 1
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make[1]: *** [CMakeFiles/Makefile2:1322: test/CMakeFiles/string_view_test.dir/all] Error 2
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp: In instantiation of ‘opentracing::v2::expected<std::unique_ptropentracing::v2::SpanContext > opentracing::v2::mocktracer::ExtractImpl(const opentracing::v2::mocktracer::PropagationOptions&, Carrier&) [with Carrier = std::basic_istream]’:
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:95:21: required from here
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: warning: redundant move in return statement [-Wredundant-move]
55 | return std::move(span_context);
| ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: note: remove ‘std::move’ call
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp: In instantiation of ‘opentracing::v2::expected<std::unique_ptropentracing::v2::SpanContext > opentracing::v2::mocktracer::ExtractImpl(const opentracing::v2::mocktracer::PropagationOptions&, Carrier&) [with Carrier = const opentracing::v2::TextMapReader]’:
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:100:21: required from here
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: warning: redundant move in return statement [-Wredundant-move]
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: note: remove ‘std::move’ call
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp: In instantiation of ‘opentracing::v2::expected<std::unique_ptropentracing::v2::SpanContext > opentracing::v2::mocktracer::ExtractImpl(const opentracing::v2::mocktracer::PropagationOptions&, Carrier&) [with Carrier = const opentracing::v2::HTTPHeadersReader]’:
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:105:21: required from here
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: warning: redundant move in return statement [-Wredundant-move]
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: note: remove ‘std::move’ call
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:3:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:6:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
const opentracing::string_view span_kind = "span.kind";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:7:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
const opentracing::string_view span_kind_rpc_client = "client";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:8:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
const opentracing::string_view span_kind_rpc_server = "server";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:10:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
const opentracing::string_view error = "error";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:12:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
const opentracing::string_view component = "component";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:14:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
const opentracing::string_view sampling_priority = "sampling.priority";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:16:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
const opentracing::string_view peer_service = "peer.service";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:18:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view peer_hostname = "peer.hostname";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:19:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view peer_address = "peer.address";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:20:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view peer_host_ipv4 = "peer.ipv4";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:21:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view peer_host_ipv6 = "peer.ipv6";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:22:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view peer_port = "peer.port";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:24:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view http_url = "http.url";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:25:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view http_method = "http.method";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:26:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view http_status_code = "http.status_code";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:28:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view database_instance = "db.instance";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:29:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view database_statement = "db.statement";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:30:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view database_type = "db.type";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:31:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view database_user = "db.user";
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/ext/tags.cpp:33:1: warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects]
extern const opentracing::string_view message_bus_destination =
^
[ 44%] Linking CXX static library ../output/libopentracing_mocktracer.a
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 44%] Built target opentracing_mocktracer-static
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:3:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:11:3: warning: use '= default' to define a trivial default constructor [hicpp-use-equals-default,modernize-use-equals-default]
PropagationErrorCategory() {}
^ ~~
= default;
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:13:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const char* name() const noexcept override {

auto                              -> const char*
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:17:24: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::error_condition default_error_condition(int code) const
~~~~~~~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:20:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::not_supported);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:23:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::invalid_argument);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:26:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::invalid_argument);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:29:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::invalid_argument);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:32:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::not_supported);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:34:12: warning: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list]
  return std::error_condition(code, *this);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:37:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::string message(int code) const override {
~~~~~~~~~~~ ^
auto                                -> std::string
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:39:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: SpanContext type incompatible with tracer";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:42:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: Invalid Inject/Extract carrier";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:45:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: SpanContext data corrupted in Extract carrier";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:48:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: SpanContext key not found";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:51:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: Lookup for the given key is not supported";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:53:12: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
  return "opentracing: unknown propagation error";
         ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/propagation.cpp:58:28: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const std::error_category& propagation_error_category() {
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
auto                                                    -> const std::error_category&
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:4:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
        ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:9:3: warning: use '= default' to define a trivial default constructor [hicpp-use-equals-default,modernize-use-equals-default]
DynamicLoadErrorCategory() {}
^                          ~~
                           = default;
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:11:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const char* name() const noexcept override {
~~~~~~~~~~~ ^
auto                              -> const char*
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:15:24: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::error_condition default_error_condition(int code) const
~~~~~~~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:18:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::no_such_file_or_directory);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:21:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::not_supported);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:24:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::invalid_argument);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:26:12: warning: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list]
  return std::error_condition(code, *this);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:29:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::string message(int code) const override {
~~~~~~~~~~~ ^
auto                                -> std::string
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:31:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: failed to load dynamic library";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:34:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: dynamic library loading is not supported";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:37:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: versions of opentracing libraries are incompatible";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:39:12: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
  return "opentracing: unknown dynamic load error";
         ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:44:28: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const std::error_category& dynamic_load_error_category() {
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
auto                                                     -> const std::error_category&
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:52:31: warning: 'move<std::unique_ptr<opentracing::DynamicLibraryHandle> &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  : dynamic_library_handle_{std::move(dynamic_library_handle)},
                            ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/move.h:104:5: note: resolves to this declaration
  move(_Tp&& __t) noexcept
  ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load.cpp:53:23: warning: 'move<std::unique_ptr<const opentracing::TracerFactory> &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    tracer_factory_{std::move(tracer_factory)} {}
                    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/move.h:104:5: note: resolves to this declaration
  move(_Tp&& __t) noexcept
  ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:4:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
        ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:6:33: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
static std::shared_ptr<Tracer>& get_global_tracer() {
     ~~~~~~~~~~~~~~~~~~~~~~~~ ^
     auto                                         -> std::shared_ptr<Tracer>&
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:7:50: warning: 'MakeNoopTracer' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
static std::shared_ptr<Tracer> global_tracer = MakeNoopTracer();
                                               ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/include/opentracing/noop.h:24:41: note: resolves to this declaration
OPENTRACING_API std::shared_ptr<Tracer> MakeNoopTracer() noexcept;
                                      ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:11:33: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::shared_ptr<Tracer> Tracer::Global() noexcept {
~~~~~~~~~~~~~~~~~~~~~~~         ^
auto                                              -> std::shared_ptr<Tracer>
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:12:10: warning: 'get_global_tracer' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
return get_global_tracer();
       ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:6:33: note: resolves to this declaration
static std::shared_ptr<Tracer>& get_global_tracer() {
                              ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:15:33: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::shared_ptr<Tracer> Tracer::InitGlobal(
~~~~~~~~~~~~~~~~~~~~~~~         ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:17:3: warning: 'get_global_tracer' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
get_global_tracer().swap(tracer);
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer.cpp:6:33: note: resolves to this declaration
static std::shared_ptr<Tracer>& get_global_tracer() {
                              ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:1:1: warning: system include dlfcn.h not allowed [llvmlibc-restrict-system-libc-headers]
#include <dlfcn.h>
^~~~~~~~~~~~~~~~~~
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:5:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
        ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:8:7: warning: class 'DynamicLibraryHandleUnix' defines a non-default destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions,hicpp-special-member-functions]
class DynamicLibraryHandleUnix : public DynamicLibraryHandle {
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:12:42: warning: 'dlclose' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
~DynamicLibraryHandleUnix() override { dlclose(handle_); }
                                       ^
/usr/include/dlfcn.h:62:12: note: resolves to this declaration
extern int dlclose (void *__handle) __THROWNL __nonnull ((1));
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:34:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
DynamicallyLoadTracingLibrary(const char* shared_library,
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:36:3: warning: function is not thread safe [concurrency-mt-unsafe]
dlerror();  // Clear any existing error.
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:36:3: warning: 'dlerror' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
/usr/include/dlfcn.h:84:14: note: resolves to this declaration
extern char *dlerror (void) __THROW;
           ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:38:3: warning: 'const auto handle' can be declared as 'auto *const handle' [llvm-qualified-auto,readability-qualified-auto]
const auto handle = dlopen(shared_library, RTLD_NOW | RTLD_LOCAL);
^~~~~~~~~~~
auto *const 
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:38:23: warning: 'dlopen' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
const auto handle = dlopen(shared_library, RTLD_NOW | RTLD_LOCAL);
                    ^
/usr/include/dlfcn.h:58:14: note: resolves to this declaration
extern void *dlopen (const char *__file, int __mode) __THROWNL;
           ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:38:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
const auto handle = dlopen(shared_library, RTLD_NOW | RTLD_LOCAL);
                                           ^
/usr/include/bits/dlfcn.h:25:18: note: expanded from macro 'RTLD_NOW'
#define RTLD_NOW        0x00002 /* Immediate function call binding.  */
                      ^~~~~~~
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:40:19: warning: 'operator=' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  error_message = dlerror();
                ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:688:7: note: resolves to this declaration
    operator=(const _CharT* __s)
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:40:21: warning: function is not thread safe [concurrency-mt-unsafe]
  error_message = dlerror();
                  ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:40:21: warning: 'dlerror' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
/usr/include/dlfcn.h:84:14: note: resolves to this declaration
extern char *dlerror (void) __THROW;
           ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:41:12: warning: 'make_unexpected<const std::error_code &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  return make_unexpected(dynamic_load_failure_error);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/expected/expected.hpp:338:1: note: resolves to this declaration
make_unexpected( E && v) -> unexpected_type< typename std::decay<E>::type >
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:47:3: warning: 'const auto make_tracer_factory' can be declared as 'auto *const make_tracer_factory' [llvm-qualified-auto,readability-qualified-auto]
const auto make_tracer_factory =
^~~~~~~~~~~
auto *const 
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:48:7: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast]
    reinterpret_cast<OpenTracingMakeTracerFactoryType**>(
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:49:11: warning: 'dlsym' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
        dlsym(handle, "OpenTracingMakeTracerFactory"));
        ^
/usr/include/dlfcn.h:66:14: note: resolves to this declaration
extern void *dlsym (void *__restrict __handle,
           ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:51:19: warning: 'operator=' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  error_message = dlerror();
                ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:688:7: note: resolves to this declaration
    operator=(const _CharT* __s)
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:51:21: warning: function is not thread safe [concurrency-mt-unsafe]
  error_message = dlerror();
                  ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:51:21: warning: 'dlerror' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
/usr/include/dlfcn.h:84:14: note: resolves to this declaration
extern char *dlerror (void) __THROW;
           ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:52:12: warning: 'make_unexpected<const std::error_code &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  return make_unexpected(dynamic_load_failure_error);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/expected/expected.hpp:338:1: note: resolves to this declaration
make_unexpected( E && v) -> unexpected_type< typename std::decay<E>::type >
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:56:19: warning: 'operator=' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  error_message =
                ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:688:7: note: resolves to this declaration
    operator=(const _CharT* __s)
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:59:12: warning: 'make_unexpected<const std::error_code &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  return make_unexpected(dynamic_load_failure_error);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/expected/expected.hpp:338:1: note: resolves to this declaration
make_unexpected( E && v) -> unexpected_type< typename std::decay<E>::type >
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:69:21: warning: 'operator=' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    error_message = "failed to construct a TracerFactory: unknown error code";
                  ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:688:7: note: resolves to this declaration
    operator=(const _CharT* __s)
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:70:14: warning: 'make_unexpected<const std::error_code &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return make_unexpected(dynamic_load_failure_error);
           ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/expected/expected.hpp:338:1: note: resolves to this declaration
make_unexpected( E && v) -> unexpected_type< typename std::decay<E>::type >
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:75:21: warning: 'operator=' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    error_message = error_code.message();
                  ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:716:7: note: resolves to this declaration
    operator=(basic_string&& __str)
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:77:12: warning: 'make_unexpected<const std::error_code &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  return make_unexpected(dynamic_load_failure_error);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/expected/expected.hpp:338:1: note: resolves to this declaration
make_unexpected( E && v) -> unexpected_type< typename std::decay<E>::type >
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:81:19: warning: 'operator=' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  error_message =
                ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:688:7: note: resolves to this declaration
    operator=(const _CharT* __s)
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:83:12: warning: 'make_unexpected<const std::error_code &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
  return make_unexpected(dynamic_load_failure_error);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/expected/expected.hpp:338:1: note: resolves to this declaration
make_unexpected( E && v) -> unexpected_type< typename std::decay<E>::type >
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:89:7: warning: 'move<std::unique_ptr<opentracing::DynamicLibraryHandle> &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    std::move(dynamic_library_handle)};
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/move.h:104:5: note: resolves to this declaration
  move(_Tp&& __t) noexcept
  ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:91:10: warning: 'make_unexpected<std::error_code>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
return make_unexpected(std::make_error_code(std::errc::not_enough_memory));
       ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/expected/expected.hpp:338:1: note: resolves to this declaration
make_unexpected( E && v) -> unexpected_type< typename std::decay<E>::type >
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/dynamic_load_unix.cpp:91:26: warning: 'make_error_code' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
return make_unexpected(std::make_error_code(std::errc::not_enough_memory));
                       ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:240:3: note: resolves to this declaration
make_error_code(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:3:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
        ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:16:17: warning: 'move<std::shared_ptr<const opentracing::Tracer> &>' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    : tracer_(std::move(tracer)) {}
              ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/move.h:104:5: note: resolves to this declaration
  move(_Tp&& __t) noexcept
  ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:28:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::string BaggageItem(string_view /*restricted_key*/) const
~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:36:22: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const SpanContext& context() const noexcept override { return span_context_; }
~~~~~~~~~~~~~~~~~~ ^
auto                                        -> const SpanContext&
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:38:17: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const Tracer& tracer() const noexcept override { return *tracer_; }
~~~~~~~~~~~~~ ^
auto                                  -> const Tracer&
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:38:59: warning: 'operator*' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
const Tracer& tracer() const noexcept override { return *tracer_; }
                                                        ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/shared_ptr_base.h:977:7: note: resolves to this declaration
    operator*() const noexcept
    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:45:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance]
class NoopTracer : public Tracer,
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:48:25: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::unique_ptr<Span> StartSpanWithOptions(
~~~~~~~~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:55:18: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
expected<void> Inject(const SpanContext& /*sc*/,
~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:60:18: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
expected<void> Inject(const SpanContext& /*sc*/,
~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:65:18: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
expected<void> Inject(const SpanContext& /*sc*/,
~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:70:42: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
expected<std::unique_ptr<SpanContext>> Extract(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:75:42: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
expected<std::unique_ptr<SpanContext>> Extract(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:80:42: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
expected<std::unique_ptr<SpanContext>> Extract(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/noop.cpp:87:25: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::shared_ptr<Tracer> MakeNoopTracer() noexcept {
~~~~~~~~~~~~~~~~~~~~~~~ ^
auto                                              -> std::shared_ptr<Tracer>
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:4:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
        ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:9:3: warning: use '= default' to define a trivial default constructor [hicpp-use-equals-default,modernize-use-equals-default]
TracerFactoryErrorCategory() {}
^                            ~~
                             = default;
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:11:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const char* name() const noexcept override {
~~~~~~~~~~~ ^
auto                              -> const char*
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:15:24: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::error_condition default_error_condition(int code) const
~~~~~~~~~~~~~~~~~~~~ ^
auto
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:18:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::invalid_argument);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:21:14: warning: 'make_error_condition' must resolve to a function declared within the '__llvm_libc' namespace [llvmlibc-callee-namespace]
    return std::make_error_condition(std::errc::invalid_argument);
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/system_error:337:3: note: resolves to this declaration
make_error_condition(errc __e) noexcept
^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:23:12: warning: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list]
  return std::error_condition(code, *this);
         ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:26:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
std::string message(int code) const override {
~~~~~~~~~~~ ^
auto                                -> std::string
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:28:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: failed to parse configuration";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:31:14: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    return "opentracing: invalid configuration";
           ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:33:12: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
  return "opentracing: unknown tracer factory error";
         ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/basic_string.h:533:39: note: default parameter was declared here
    basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
                                    ^
/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/src/tracer_factory.cpp:38:28: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const std::error_category& tracer_factory_error_category() {
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
auto                                                       -> const std::error_category&
[ 46%] Linking CXX shared library output/libopentracing.so
make[2]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[ 46%] Built target opentracing
make[1]: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
make: *** [Makefile:183: all] Error 2
make: Leaving directory '/home/zbh/project/flare/build64_release/thirdparty/opentracing-cpp/opentracing-cpp_build'
[217/2643] CONFIGURE //thirdparty/jemalloc:jemalloc_configure
ninja: build stopped: subcommand failed.
Blade(error): Build failure.
Blade(info): Cost time 41.5s
Blade(error): Failure

查了opentracing-cpp的issue,没有遇到类似问题。
看起来好像是编译器参数问题?

from flare.

0x804d8000 avatar 0x804d8000 commented on May 6, 2024

看着像是怎么着用clang编译opentracing cpp了,可能它的cmake脚本优先用了clang还是怎么回事。

如果隔离不开clang的话试试手动指定环境变量CXX C:https://stackoverflow.com/a/7032021

from flare.

zbhxlj avatar zbhxlj commented on May 6, 2024

- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Choose gnu -- clang-tidy not found. -- Configuring done -- Generating done -- Build files have been written to: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/build [zbh@arch build]$ make -j8 [ 7%] Building CXX object test/CMakeFiles/value_test.dir/value_test.cpp.o [ 9%] Building CXX object test/CMakeFiles/util_test.dir/util_test.cpp.o [ 9%] Building CXX object test/CMakeFiles/string_view_test.dir/string_view_test.cpp.o [ 9%] Building CXX object CMakeFiles/opentracing.dir/src/dynamic_load.cpp.o [ 9%] Building CXX object CMakeFiles/opentracing.dir/src/noop.cpp.o [ 9%] Building CXX object CMakeFiles/opentracing.dir/src/propagation.cpp.o [ 10%] Building CXX object CMakeFiles/opentracing-static.dir/src/propagation.cpp.o [ 12%] Building CXX object CMakeFiles/opentracing.dir/src/tracer.cpp.o [ 13%] Building CXX object CMakeFiles/opentracing-static.dir/src/dynamic_load.cpp.o [ 15%] Building CXX object CMakeFiles/opentracing-static.dir/src/noop.cpp.o In file included from /usr/include/signal.h:328, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6456, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/test/string_view_test.cpp:5: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array ‘altStackMem’ is not an integral constant-expression 6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; | ^~~~~~~~ In file included from /usr/include/signal.h:328, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6456, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/test/util_test.cpp:7: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array ‘altStackMem’ is not an integral constant-expression 6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; | ^~~~~~~~ In file included from /usr/include/signal.h:328, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6456, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/test/value_test.cpp:5: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array ‘altStackMem’ is not an integral constant-expression 6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; | ^~~~~~~~ [ 16%] Building CXX object CMakeFiles/opentracing.dir/src/tracer_factory.cpp.o [ 18%] Building CXX object CMakeFiles/opentracing.dir/src/ext/tags.cpp.o [ 20%] Building CXX object CMakeFiles/opentracing.dir/src/dynamic_load_unix.cpp.o [ 21%] Building CXX object CMakeFiles/opentracing-static.dir/src/tracer.cpp.o [ 23%] Building CXX object CMakeFiles/opentracing-static.dir/src/tracer_factory.cpp.o [ 24%] Building CXX object CMakeFiles/opentracing-static.dir/src/ext/tags.cpp.o [ 26%] Building CXX object CMakeFiles/opentracing-static.dir/src/dynamic_load_unix.cpp.o [ 27%] Linking CXX shared library output/libopentracing.so [ 27%] Built target opentracing [ 30%] Building CXX object test/CMakeFiles/tracer_test.dir/tracer_test.cpp.o [ 30%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/mock_span_context.cpp.o [ 32%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/mock_span.cpp.o [ 33%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/in_memory_recorder.cpp.o [ 35%] Linking CXX static library output/libopentracing.a [ 35%] Built target opentracing-static [ 36%] Building CXX object test/CMakeFiles/multiple_tracer_link_test.dir/multiple_tracer_link_test.cpp.o [ 38%] Building CXX object test/CMakeFiles/multiple_tracer_link_test.dir/tracer_a.cpp.o In file included from /usr/include/signal.h:328, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6456, from /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/test/tracer_test.cpp:7: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array ‘altStackMem’ is not an integral constant-expression 6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; | ^~~~~~~~ make[2]: *** [test/CMakeFiles/util_test.dir/build.make:76: test/CMakeFiles/util_test.dir/util_test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1252: test/CMakeFiles/util_test.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: *** [test/CMakeFiles/string_view_test.dir/build.make:76: test/CMakeFiles/string_view_test.dir/string_view_test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1200: test/CMakeFiles/string_view_test.dir/all] Error 2 [ 40%] Building CXX object test/CMakeFiles/multiple_tracer_link_test.dir/tracer_b.cpp.o [ 41%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/json_recorder.cpp.o make[2]: *** [test/CMakeFiles/value_test.dir/build.make:76: test/CMakeFiles/value_test.dir/value_test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1226: test/CMakeFiles/value_test.dir/all] Error 2 [ 43%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/base64.cpp.o [ 44%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/propagation.cpp.o [ 46%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/utility.cpp.o [ 47%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/json.cpp.o [ 49%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/tracer.cpp.o [ 50%] Linking CXX executable ../output/multiple_tracer_link_test [ 52%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/tracer_factory.cpp.o [ 52%] Built target multiple_tracer_link_test [ 53%] Building CXX object mocktracer/CMakeFiles/opentracing_mocktracer.dir/src/dynamic_load.cpp.o /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp: In instantiation of ‘opentracing::v2::expected<std::unique_ptr<opentracing::v2::SpanContext> > opentracing::v2::mocktracer::ExtractImpl(const opentracing::v2::mocktracer::PropagationOptions&, Carrier&) [with Carrier = std::basic_istream<char>]’: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:95:21: required from here /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(span_context); | ^ /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: note: remove ‘std::move’ call /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp: In instantiation of ‘opentracing::v2::expected<std::unique_ptr<opentracing::v2::SpanContext> > opentracing::v2::mocktracer::ExtractImpl(const opentracing::v2::mocktracer::PropagationOptions&, Carrier&) [with Carrier = const opentracing::v2::TextMapReader]’: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:100:21: required from here /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: warning: redundant move in return statement [-Wredundant-move] /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: note: remove ‘std::move’ call /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp: In instantiation of ‘opentracing::v2::expected<std::unique_ptr<opentracing::v2::SpanContext> > opentracing::v2::mocktracer::ExtractImpl(const opentracing::v2::mocktracer::PropagationOptions&, Carrier&) [with Carrier = const opentracing::v2::HTTPHeadersReader]’: /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:105:21: required from here /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: warning: redundant move in return statement [-Wredundant-move] /home/zbh/project/flare/thirdparty/opentracing-cpp/opentracing-cpp-1.5.1/mocktracer/src/tracer.cpp:55:32: note: remove ‘std::move’ call [ 55%] Linking CXX shared library ../output/libopentracing_mocktracer.so [ 55%] Built target opentracing_mocktracer make[2]: *** [test/CMakeFiles/tracer_test.dir/build.make:76: test/CMakeFiles/tracer_test.dir/tracer_test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1174: test/CMakeFiles/tracer_test.dir/all] Error 2 make: *** [Makefile:166: all] Error 2
单独对thirdparty中的opentracing解包进行构建,发现很多warning是clang-tidy发出的,真正的error只有上面这个。上面这个是catch2库的一个最近的glibc错误:https://github.com/catchorg/Catch2/issues/2178。目前opentracing还没有解决,编译最新的1.6.0也会遇到这个问题。我使用的是arch linux,glibc版本比较高,或许需要回退下解决这个问题

from flare.

4kangjc avatar 4kangjc commented on May 6, 2024

把altStackMem[SIGSTKSZ]里的SIGSTKSZ改成8192或者其他常量值

from flare.

4kangjc avatar 4kangjc commented on May 6, 2024

之前使用了python3.10,然后会遇到Import Error,使用了pyenv装了python3.9然后python3软链接到3.9.估计是这个问题,我尝试下,谢谢

用python 2.7也行
https://wiki.archlinux.org/title/python

from flare.

zbhxlj avatar zbhxlj commented on May 6, 2024

感谢,已解决

from flare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.