Following build guideline on github, while encounter below error when run below command. Any hints to fix this? Thanks a lot!
$ ./yb_build.sh release --with-assembly
…
[ 82%] Built target tablet_bootstrap-test
[build_postgres.py:360] 2018-12-14 09:24:31,714 INFO: Successfully ran configure in the postgres build directory
[build_postgres.py:167] 2018-12-14 09:24:31,716 INFO: Replaced cflags in /home/gpadmin/workspace/yugabyte-db/build/release-gcc-dynamic-community/postgres_build/src/Makefile.global
[build_postgres.py:427] 2018-12-14 09:24:41,776 INFO: Successfully ran make in the /home/gpadmin/workspace/yugabyte-db/build/release-gcc-dynamic-community/postgres_build directory
( cd “/home/gpadmin/workspace/yugabyte-db/build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser” && PATH=/home/gpadmin/.linuxbrew-yb-build/bin:$PATH /home/gpadmin/.linuxbrew-yb-build/bin/g++ -Dql_parser_EXPORTS -I/home/gpadmin/workspace/yugabyte-db/build/release-gcc-dynamic-community/src -I/home/gpadmin/workspace/yugabyte-db/src -isystem /home/gpadmin/.linuxbrew-yb-build/include -isystem /home/gpadmin/workspace/yugabyte-db/thirdparty/installed/uninstrumented/include -isystem /home/gpadmin/workspace/yugabyte-db/thirdparty/installed/common/include -Werror -fno-strict-aliasing -msse4.2 -Wall -Wno-sign-compare -Wno-deprecated -Winvalid-pch -pthread -DBOOST_BIND_NO_PLACEHOLDERS -DROCKSDB_PLATFORM_POSIX -march=ivybridge -mcx16 -DYB_COMPILER_TYPE=gcc -DYB_COMPILER_VERSION=5.5.0 -mno-avx -mno-bmi -mno-bmi2 -mno-fma -D__STDC_FORMAT_MACROS -Wno-deprecated-declarations -DGFLAGS=gflags -Wnon-virtual-dtor -Werror=enum-compare -Werror=reorder -Werror=switch -Werror=return-type -Werror=non-virtual-dtor -D_GLIBCXX_USE_CXX11_ABI=0 -DYB_HEADERS_NO_STUBS=1 -O3 -g -DNDEBUG -fno-omit-frame-pointer -mno-abm -mno-movbe -fPIC -DYB_EDITION_NS_PREFIX= -DTCMALLOC_ENABLED -O2 -DNDEBUG -fPIC -std=gnu++14 -Wno-tautological-undefined-compare -Wno-implicit-fallthrough -Wno-null-conversion -o CMakeFiles/ql_parser.dir/scanner_lex.l.cc.o -c /home/gpadmin/workspace/yugabyte-db/build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser/scanner_lex.l.cc -DYB_LOCAL_C_CXX_COMPILER_CMD ) # Compiler exit code: 1.
/-------------------------------------------------------------------------------
COMPILATION FAILED |
---|
scanner_lex.l: In member function ‘yb::ql::GramProcessor::symbol_type yb::ql::LexProcessor::yylex(const yb::ql::ScanState&)’: |
scanner_lex.l:675:83: error: cannot bind ‘yb::ql::location’ lvalue to ‘yb::ql::GramProcessor::location_type&& {aka yb::ql::location&&}’ |
In file included from src/yb/yql/cql/ql/parser/scanner.h:42:0, |
from src/yb/yql/cql/ql/parser/parser.h:24,
from scanner_lex.l:35:
build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser/parser_gram.y.hh:6128:3: note: initializing argument 2 of ‘yb::ql::GramProcessor::basic_symbol::basic_symbol(typename Base::kind_type, yb::ql::GramProcessor::location_type&&) [with Base = yb::ql::GramProcessor::by_type; typename Base::kind_type = yb::ql::GramProcessor::token::yytokentype; yb::ql::GramProcessor::location_type = yb::ql::location]’
GramProcessor::basic_symbol::basic_symbol (typename Base::kind_type t, location_type&& l)
^
scanner_lex.l:859:83: error: cannot bind ‘yb::ql::location’ lvalue to ‘yb::ql::GramProcessor::location_type&& {aka yb::ql::location&&}’
In file included from src/yb/yql/cql/ql/parser/scanner.h:42:0,
from src/yb/yql/cql/ql/parser/parser.h:24,
from scanner_lex.l:35:
build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser/parser_gram.y.hh:6128:3: note: initializing argument 2 of ‘yb::ql::GramProcessor::basic_symbol::basic_symbol(typename Base::kind_type, yb::ql::GramProcessor::location_type&&) [with Base = yb::ql::GramProcessor::by_type; typename Base::kind_type = yb::ql::GramProcessor::token::yytokentype; yb::ql::GramProcessor::location_type = yb::ql::location]’
GramProcessor::basic_symbol::basic_symbol (typename Base::kind_type t, location_type&& l)
^
scanner_lex.l:920:87: error: cannot bind ‘yb::ql::location’ lvalue to ‘yb::ql::GramProcessor::location_type&& {aka yb::ql::location&&}’
In file included from src/yb/yql/cql/ql/parser/scanner.h:42:0,
from src/yb/yql/cql/ql/parser/parser.h:24,
from scanner_lex.l:35:
build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser/parser_gram.y.hh:6128:3: note: initializing argument 2 of ‘yb::ql::GramProcessor::basic_symbol::basic_symbol(typename Base::kind_type, yb::ql::GramProcessor::location_type&&) [with Base = yb::ql::GramProcessor::by_type; typename Base::kind_type = yb::ql::GramProcessor::token::yytokentype; yb::ql::GramProcessor::location_type = yb::ql::location]’
GramProcessor::basic_symbol::basic_symbol (typename Base::kind_type t, location_type&& l)
^
scanner_lex.l:1021:72: error: cannot bind ‘yb::ql::location’ lvalue to ‘yb::ql::GramProcessor::location_type&& {aka yb::ql::location&&}’
In file included from src/yb/yql/cql/ql/parser/scanner.h:42:0,
from src/yb/yql/cql/ql/parser/parser.h:24,
from scanner_lex.l:35:
build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser/parser_gram.y.hh:6141:3: note: initializing argument 3 of ‘yb::ql::GramProcessor::basic_symbol::basic_symbol(typename Base::kind_type, const char*&&, yb::ql::GramProcessor::location_type&&) [with Base = yb::ql::GramProcessor::by_type; typename Base::kind_type = yb::ql::GramProcessor::token::yytokentype; yb::ql::KeywordType = const char*; yb::ql::GramProcessor::location_type = yb::ql::location]’
GramProcessor::basic_symbol::basic_symbol (typename Base::kind_type t, KeywordType&& v, location_type&& l)
^
scanner_lex.l:1031:83: error: cannot bind ‘yb::ql::location’ lvalue to ‘yb::ql::GramProcessor::location_type&& {aka yb::ql::location&&}’
In file included from src/yb/yql/cql/ql/parser/scanner.h:42:0,
from src/yb/yql/cql/ql/parser/parser.h:24,
from scanner_lex.l:35:
build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser/parser_gram.y.hh:6128:3: note: initializing argument 2 of ‘yb::ql::GramProcessor::basic_symbol::basic_symbol(typename Base::kind_type, yb::ql::GramProcessor::location_type&&) [with Base = yb::ql::GramProcessor::by_type; typename Base::kind_type = yb::ql::GramProcessor::token::yytokentype; yb::ql::GramProcessor::location_type = yb::ql::location]’
GramProcessor::basic_symbol::basic_symbol (typename Base::kind_type t, location_type&& l)
^
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-null-conversion’ [-Werror]
cc1plus: error: unrecognized command line option ‘-Wno-implicit-fallthrough’ [-Werror]
cc1plus: error: unrecognized command line option ‘-Wno-tautological-undefined-compare’ [-Werror]
cc1plus: all warnings being treated as errors
Input files:
build/release-gcc-dynamic-community/src/yb/yql/cql/ql/parser/scanner_lex.l.cc
Output file (from -o): CMakeFiles/ql_parser.dir/scanner_lex.l.cc.o
-------------------------------------------------------------------------------
make[2]: *** [src/yb/yql/cql/ql/parser/CMakeFiles/ql_parser.dir/scanner_lex.l.cc.o] Error 1
make[1]: *** [src/yb/yql/cql/ql/parser/CMakeFiles/ql_parser.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[build_postgres.py:427] 2018-12-14 09:24:43,348 INFO: Successfully ran make in the /home/gpadmin/workspace/yugabyte-db/build/release-gcc-dynamic-community/postgres_build/contrib directory
[ 82%] Built target postgres
make: *** [all] Error 2
real 0m21.905s
user 0m54.035s
sys 0m19.049s
[2018-12-14T09:24:43 yb_build.sh:391 run_cxx_build] C++ build finished with exit code 2 (build type: release, compiler: gcc). Timing information is available above.