apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.77k stars 3.29k forks source link

[Bug] Be Compilation Error #32514

Open cjj2010 opened 8 months ago

cjj2010 commented 8 months ago

Search before asking

Version

master

What's Wrong?

[635/1346] Building CXX object src/ola.../Olap.dir/rowset/segment_creator.cpp.o
FAILED: src/olap/CMakeFiles/Olap.dir/rowset/segment_creator.cpp.o 
/home/bjj/disk/soft/ldb/ldb_toolchain/bin/clang++ -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_STACKTRACE_USE_BACKTRACE -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX=1 -DBRPC_ENABLE_CPU_PROFILER -DENABLE_STACKTRACE -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DS2_USE_GFLAGS -DS2_USE_GLOG -DUSE_HADOOP_HDFS -DUSE_JEMALLOC -DUSE_MEM_TRACKER -DUSE_UNWIND -D__STDC_FORMAT_MACROS -I/home/bjj/disk/work/doris/doris/be/src/apache-orc/c++/include -I/home/bjj/disk/work/doris/doris/be/build_ASAN/src/apache-orc/c++/include -I/home/bjj/disk/work/doris/doris/be/build_ASAN/src/clucene/src/shared -I/home/bjj/disk/work/doris/doris/be/src/clucene/src/core -I/home/bjj/disk/work/doris/doris/be/src/clucene/src/shared -I/home/bjj/disk/work/doris/doris/be/src/clucene/src/contribs-lib -I/home/bjj/disk/work/doris/doris/be/src -I/home/bjj/disk/work/doris/doris/be/test -I/usr/lib/jvm/java-17-openjdk-amd64/include -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux -isystem /home/bjj/disk/work/doris/doris/be/../gensrc/build -isystem /home/bjj/disk/soft/thirdparty/installed/include -isystem /home/bjj/disk/soft/thirdparty/installed/gperftools/include -O0 -fsanitize=address -DADDRESS_SANITIZER    -D OS_LINUX -g -Wall -Wextra -Werror -pthread -fstrict-aliasing -fno-omit-frame-pointer -Wnon-virtual-dtor -Wno-unused-parameter -Wno-sign-compare -fcolor-diagnostics -Wpedantic -Wshadow-field -Wunused -Wunused-command-line-argument -Wunused-exception-parameter -Wunused-volatile-lvalue -Wunused-template -Wunused-member-function -Wunused-macros -Wno-vla-extension -Wno-gnu-statement-expression -msse4.2 -mavx2 -gdwarf-aranges -std=gnu++20 -Winvalid-pch -Xclang -include-pch -Xclang /home/bjj/disk/work/doris/doris/be/build_ASAN/CMakeFiles/pch.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /home/bjj/disk/work/doris/doris/be/build_ASAN/CMakeFiles/pch.dir/cmake_pch.hxx -MD -MT src/olap/CMakeFiles/Olap.dir/rowset/segment_creator.cpp.o -MF src/olap/CMakeFiles/Olap.dir/rowset/segment_creator.cpp.o.d -o src/olap/CMakeFiles/Olap.dir/rowset/segment_creator.cpp.o -c /home/bjj/disk/work/doris/doris/be/src/olap/rowset/segment_creator.cpp
/home/bjj/disk/work/doris/doris/be/src/olap/rowset/segment_creator.cpp:91:52: error: member reference type 'RowsetWriterContext' is not a pointer; did you mean to use '.'?
   91 |         std::lock_guard<std::mutex> lock(*(_context->schema_lock));
      |                                            ~~~~~~~~^~
      |                                                    .
/home/bjj/disk/work/doris/doris/be/src/olap/rowset/segment_creator.cpp:93:21: error: member reference type 'RowsetWriterContext' is not a pointer; did you mean to use '.'?
   93 |         if (_context->original_tablet_schema == nullptr) {
      |             ~~~~~~~~^~
      |                     .
/home/bjj/disk/work/doris/doris/be/src/olap/rowset/segment_creator.cpp:94:21: error: member reference type 'RowsetWriterContext' is not a pointer; did you mean to use '.'?
   94 |             _context->original_tablet_schema = _context->tablet_schema;
      |             ~~~~~~~~^~
      |                     .
/home/bjj/disk/work/doris/doris/be/src/olap/rowset/segment_creator.cpp:94:56: error: member reference type 'RowsetWriterContext' is not a pointer; did you mean to use '.'?
   94 |             _context->original_tablet_schema = _context->tablet_schema;
      |                                                ~~~~~~~~^~
      |                                                        .
4 errors generated.
[206/700] Building CXX object src/tools/CMakeFiles/meta_tool.dir/meta_tool.cpp.o
FAILED: src/tools/CMakeFiles/meta_tool.dir/meta_tool.cpp.o 
/home/bjj/disk/soft/ldb/ldb_toolchain/bin/clang++ -DBOOST_DATE_TIME_NO_LIB -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_STACKTRACE_USE_BACKTRACE -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX=1 -DBRPC_ENABLE_CPU_PROFILER -DENABLE_STACKTRACE -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DS2_USE_GFLAGS -DS2_USE_GLOG -DUSE_HADOOP_HDFS -DUSE_JEMALLOC -DUSE_MEM_TRACKER -DUSE_UNWIND -D__STDC_FORMAT_MACROS -Dmeta_tool_EXPORTS -I/home/bjj/disk/work/doris/doris/be/src/apache-orc/c++/include -I/home/bjj/disk/work/doris/doris/be/build_ASAN/src/apache-orc/c++/include -I/home/bjj/disk/work/doris/doris/be/build_ASAN/src/clucene/src/shared -I/home/bjj/disk/work/doris/doris/be/src/clucene/src/core -I/home/bjj/disk/work/doris/doris/be/src/clucene/src/shared -I/home/bjj/disk/work/doris/doris/be/src/clucene/src/contribs-lib -I/home/bjj/disk/work/doris/doris/be/src -I/home/bjj/disk/work/doris/doris/be/test -I/usr/lib/jvm/java-17-openjdk-amd64/include -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux -isystem /home/bjj/disk/work/doris/doris/be/../gensrc/build -isystem /home/bjj/disk/soft/thirdparty/installed/include -isystem /home/bjj/disk/soft/thirdparty/installed/gperftools/include -isystem /home/bjj/disk/soft/thirdparty/installed/include/dragonbox-1.1.3 -isystem /home/bjj/disk/soft/thirdparty/installed/include/lz4 -isystem /home/bjj/disk/soft/thirdparty/installed/include/zstd -O0 -fsanitize=address -DADDRESS_SANITIZER    -D OS_LINUX -g -Wall -Wextra -Werror -pthread -fstrict-aliasing -fno-omit-frame-pointer -Wnon-virtual-dtor -Wno-unused-parameter -Wno-sign-compare -fcolor-diagnostics -Wpedantic -Wshadow-field -Wunused -Wunused-command-line-argument -Wunused-exception-parameter -Wunused-volatile-lvalue -Wunused-template -Wunused-member-function -Wunused-macros -Wno-vla-extension -Wno-gnu-statement-expression -msse4.2 -mavx2 -gdwarf-aranges -std=gnu++20 -Winvalid-pch -Xclang -include-pch -Xclang /home/bjj/disk/work/doris/doris/be/build_ASAN/CMakeFiles/pch.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /home/bjj/disk/work/doris/doris/be/build_ASAN/CMakeFiles/pch.dir/cmake_pch.hxx -MD -MT src/tools/CMakeFiles/meta_tool.dir/meta_tool.cpp.o -MF src/tools/CMakeFiles/meta_tool.dir/meta_tool.cpp.o.d -o src/tools/CMakeFiles/meta_tool.dir/meta_tool.cpp.o -c /home/bjj/disk/work/doris/doris/be/src/tools/meta_tool.cpp
/home/bjj/disk/work/doris/doris/be/src/tools/meta_tool.cpp:66:19: error: unused variable 'HEADER_PREFIX' [-Werror,-Wunused-const-variable]
   66 | const std::string HEADER_PREFIX = "tabletmeta_";
      |                   ^~~~~~~~~~~~~
1 error generated.
[220/700] Building CXX object src/util/CMakeFiles/Util.dir/mem_info.cpp.o

What You Expected?

Be compiled normally

How to Reproduce?

checkout master branch then execute "./build.sh --be"

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct

AcKing-Sam commented 8 months ago

I think this issue is essential and urgent! I met the same problem when executing P0 Regression.