lschampion opened a new issue, #58698: URL: https://github.com/apache/doris/issues/58698
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 3.1.0 and 3.1.3 in docker of image 'apache/doris:build-env-for-3.1-no-avx2' with compile command `USE_AVX2=0 ./build.sh --be -j 4` ### What's Wrong? error occurs with message: 'error: only virtual member functions can be marked 'override'' log stack: [root@localhost doris-3.1.3-src]# ./build.sh --be -j 4 Target system: Linux; Target arch: x86_64 Python 2.7.5 Check JAVA_HOME version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/share/maven Java version: 17.0.2, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-17.0.2 Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "4.18.0-553.el8_10.x86_64", arch: "amd64", family: "unix" cmake version 3.22.1 CMake suite maintained and supported by Kitware (kitware.com/cmake). ninja 1.8.2 ccache version 4.8 Get params: BUILD_FE -- 0 BUILD_BE -- 1 BUILD_CLOUD -- 0 BUILD_BROKER -- 0 BUILD_META_TOOL -- OFF BUILD_FILE_CACHE_MICROBENCH_TOOL -- OFF BUILD_INDEX_TOOL -- OFF BUILD_BE_JAVA_EXTENSIONS -- 1 BUILD_HIVE_UDF -- 0 PARALLEL -- 4 CLEAN -- 0 WITH_MYSQL -- OFF GLIBC_COMPATIBILITY -- ON USE_AVX2 -- ON USE_LIBCPP -- OFF USE_DWARF -- OFF USE_UNWIND -- ON STRIP_DEBUG_INFO -- OFF USE_MEM_TRACKER -- ON USE_JEMALLOC -- ON USE_BTHREAD_SCANNER -- OFF ENABLE_INJECTION_POINT -- OFF ENABLE_CACHE_LOCK_DEBUG -- ON DENABLE_CLANG_COVERAGE -- OFF DISPLAY_BUILD_TIME -- OFF ENABLE_PCH -- ON WITH_TDE_DIR -- Feature List: -TDE,-HDFS_STORAGE_VAULT,+UI,+AZURE_BLOB,+AZURE_STORAGE_VAULT,-HIVE_UDF,+BE_JAVA_EXTENSIONS Python 2.7.5 Check JAVA_HOME version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/share/maven Java version: 17.0.2, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-17.0.2 Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "4.18.0-553.el8_10.x86_64", arch: "amd64", family: "unix" cmake version 3.22.1 CMake suite maintained and supported by Kitware (kitware.com/cmake). ninja 1.8.2 ccache version 4.8 Build generated code make -C script make[1]: Entering directory `/root/doris-3.1.3-src/gensrc/script' /root/doris-3.1.3-src/gensrc/script/gen_build_version.sh make[1]: Leaving directory `/root/doris-3.1.3-src/gensrc/script' make -C proto make[1]: Entering directory `/root/doris-3.1.3-src/gensrc/proto' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/doris-3.1.3-src/gensrc/proto' make -C thrift make[1]: Entering directory `/root/doris-3.1.3-src/gensrc/thrift' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/doris-3.1.3-src/gensrc/thrift' Done Update apache-orc submodule ... fatal: not a git repository (or any parent up to mount point /root) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /root) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Update apache-orc submodule failed, start to download and extract https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 13.8M 0 13.8M 0 0 2056k 0 --:--:-- 0:00:06 --:--:-- 3165k Update clucene submodule ... fatal: not a git repository (or any parent up to mount point /root) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /root) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Update clucene submodule failed, start to download and extract https://github.com/apache/doris-thirdparty/archive/refs/heads/clucene-3.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 8250k 0 8250k 0 0 1491k 0 --:--:-- 0:00:05 --:--:-- 2086k Build Backend: Release -- Make program: /var/local/ldb-toolchain-018/bin/ninja -- Use ccache: -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -- Extra cxx flags: -- Build fs benchmark tool: OFF -- GLIBC_COMPATIBILITY is ON -- USE_LIBCPP is OFF -- USE_MEM_TRACKER is ON -- USE_JEMALLOC is ON -- USE_UNWIND is ON -- ENABLE_PCH is ON -- Build type is RELEASE -- Build target arch is x86_64 -- THIRDPARTY_DIR is /var/local/thirdparty/installed -- make test: OFF -- build fs benchmark tool: OFF -- build gensrc if necessary make: Entering directory `/root/doris-3.1.3-src/gensrc' make -C script make[1]: Entering directory `/root/doris-3.1.3-src/gensrc/script' /root/doris-3.1.3-src/gensrc/script/gen_build_version.sh get java cmd: /usr/lib/jvm/jdk-17.0.2//bin/java get java version: openjdk full version \"17.0.2+8-86\" make[1]: Leaving directory `/root/doris-3.1.3-src/gensrc/script' make -C proto make[1]: Entering directory `/root/doris-3.1.3-src/gensrc/proto' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/doris-3.1.3-src/gensrc/proto' make -C thrift make[1]: Entering directory `/root/doris-3.1.3-src/gensrc/thrift' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/doris-3.1.3-src/gensrc/thrift' make: Leaving directory `/root/doris-3.1.3-src/gensrc' -- Found Boost: /var/local/thirdparty/installed/lib64/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.81.0") found components: system date_time -- Found Boost: /var/local/thirdparty/installed/lib64/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.81.0") found components: system container -- build azure: ON -- Build type: RELEASE -- compiler Clang version 16.0.6 -- Disable the metrics collection -- SNAPPY_HOME: /var/local/thirdparty/installed -- Found the Snappy header: /var/local/thirdparty/installed/include/snappy.h -- Found the Snappy library: /var/local/thirdparty/installed/lib/libsnappy.a -- ZLIB_HOME: /var/local/thirdparty/installed -- Found the ZLIB header: /var/local/thirdparty/installed/include/zlib.h -- Found the ZLIB library: /var/local/thirdparty/installed/lib/libz.so -- Found the ZLIB static library: /var/local/thirdparty/installed/lib/libz.a -- ZSTD_HOME: /var/local/thirdparty/installed -- Found the zstd header: /var/local/thirdparty/installed/include/zstd/zstd.h -- Found the zstd library: /var/local/thirdparty/installed/lib/libzstd.a -- Found the zstd static library: /var/local/thirdparty/installed/lib/libzstd.a -- LZ4_HOME: /var/local/thirdparty/installed -- Found the LZ4 header: /var/local/thirdparty/installed/include/lz4/lz4.h -- Found the LZ4 library: /var/local/thirdparty/installed/lib/liblz4.a -- PROTOBUF_HOME: /var/local/thirdparty/installed -- Found the Protobuf headers: /var/local/thirdparty/installed/include -- Found the Protobuf library: /var/local/thirdparty/installed/lib/libprotobuf.a -- Found the Protoc library: /var/local/thirdparty/installed/lib/libprotoc.a -- Found the Protoc executable: /var/local/thirdparty/installed/bin/protoc -- Found the Protobuf static library: /var/local/thirdparty/installed/lib/libprotobuf.a -- Found the Protoc static library: /var/local/thirdparty/installed/lib/libprotoc.a Compiling as RELEASE -- CMAKE_CXX_FLAGS: -- old Boost_INCLUDE_DIR : /var/local/thirdparty/installed/include -- Found Boost: /var/local/thirdparty/installed/lib64/cmake/Boost-1.81.0/BoostConfig.cmake (found version "1.81.0") Boost found -- Boost_INCLUDE_DIR : /var/local/thirdparty/installed/include -- Looking for MapViewOfFile -- Looking for MapViewOfFile(0,0,0,0,0) - not found -- Looking for _close -- Looking for _close((int)0) - not found -- Looking for _read -- Looking for _read((int)0, (void*)0, (unsigned int)0) - not found -- Looking for _open -- Looking for _open(0,0,0) - not found -- Looking for _write -- Looking for _write((int)0, (const void*)0, (unsigned int)0) - not found -- Looking for _unlink -- Looking for _unlink((const char*)0) - not found -- Looking for _ftime -- Looking for _ftime(0) - not found -- Looking for _mkdir -- Looking for _mkdir((const char*)0) - not found -- Checking support new float byte<->float conversions -- Checking support new float byte<->float conversions - yes -- Linker LLD is available, change linker to LLD -- Some symbols from glibc will be replaced for compatibility -- Compiler: Clang-16.0.6 -- CXX Standard: 20 -- C Standard: 17 -- CXX Flags: -DENABLE_CACHE_LOCK_DEBUG -O3 -DNDEBUG -- C Flags: -DENABLE_CACHE_LOCK_DEBUG -O3 -DNDEBUG -- CC Flags: -- Compiler Options: -g;-Wall;-Wextra;-Werror;-pthread;-fstrict-aliasing;-fno-omit-frame-pointer;$<$<COMPILE_LANGUAGE:CXX>:-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;-Wconversion;-Wno-gnu-statement-expression;-Wno-implicit-float-conversion;-Wno-implicit-int-conversion;-Wno-sign-conversion;-Wno-missing-field-initializers;-Wno-unused-const-variable;-Wno-shorten-64-to-32;-msse4.2;-mavx2;-gdwarf-aranges -- Compiler Definitions: BOOST_STACKTRACE_USE_BACKTRACE;GLOG_CUSTOM_PREFIX_SUPPORT;USE_AZURE;__STDC_FORMAT_MACROS;BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG;BOOST_SYSTEM_NO_DEPRECATED;BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX=1;BRPC_ENABLE_CPU_PROFILER;S2_USE_GFLAGS;S2_USE_GLOG;HAVE_INTTYPES_H;HAVE_NETINET_IN_H;USE_MEM_TRACKER;USE_JEMALLOC;USE_UNWIND;LIBJVM;USE_HADOOP_HDFS;USE_DORIS_HADOOP_HDFS -- Doris Dependencies: jvm;-Wl,--start-group;Boost::date_time;Boost::container;gflags;glog;backtrace;re2;hyperscan;odbc;pprof;protobuf;gtest;gtest_main;benchmark;gmock;snappy;curl;lz4;thrift;thriftnb;libevent_core;libevent_openssl;libevent;libevent_pthreads;libbz2;libz;crypto;openssl;leveldb;jemalloc;libunwind;grpc++_reflection;grpc;grpc++;grpc++_unsecure;gpr;upb;cares;address_sorting;z;brotlicommon;brotlidec;brotlienc;zstd;arrow;arrow_flight;arrow_flight_sql;parquet;brpc;rocksdb;cyrus-sasl;rdkafka_cpp;rdkafka;s2;bitshuffle;roaring;fmt;cctz;base64;aws-cpp-sdk-core;aws-cpp-sdk-s3;aws-cpp-sdk-transfer;aws-cpp-sdk-s3-crt;aws-crt-cpp;aws-c-cal;aws-c-auth;aws-c-compression;aws-c-common;aws-c-event-stream;aws-c-io;aws-c-http;aws-c-mqtt;aws-checksums;aws-c-s3;aws-c-sdkutils;aws-cpp-sdk-identity-management;aws-cpp-sdk-sts;aws-s2n;azure-core;azure-identity;azure-storage-blobs;azure-storage-common;minizip;simdjson;idn;xml2;lzma;gsasl;krb5support;krb5;com_err;k5crypto;gssapi_krb5;streamvbyte ;deflate;icuuc;icui18n;icudata;pugixml;hadoop_hdfs;absl::flags_internal;absl::flags_reflection;absl::random_internal_pool_urbg;absl::random_internal_randen;absl::random_internal_seed_material;absl::spinlock_wait;absl::status;absl::statusor;absl::strings;krb5support;krb5;com_err;gssapi_krb5;k5crypto;libunwind;orc;ic;clucene-core-static;clucene-shared-static;clucene-contribs-lib;-Wl,--end-group -- Link Flags: -Wl,--start-group;Agent;Common;Exec;Exprs;Gutil;IO;Olap;Runtime;Service;Udf;Util;DorisGen;Webserver;Geo;GeoType;Vec;Pipeline;Cloud;-Wl,--end-group;CommonCPP;jvm;-Wl,--start-group;Boost::date_time;Boost::container;gflags;glog;backtrace;re2;hyperscan;odbc;pprof;protobuf;gtest;gtest_main;benchmark;gmock;snappy;curl;lz4;thrift;thriftnb;libevent_core;libevent_openssl;libevent;libevent_pthreads;libbz2;libz;crypto;openssl;leveldb;jemalloc;libunwind;grpc++_reflection;grpc;grpc++;grpc++_unsecure;gpr;upb;cares;address_sorting;z;brotlicommon;brotlidec;brotlienc;zstd;arrow;arrow_flight;arrow_flight_sql;parquet;brpc;rocksdb;cyrus-sasl;rdkafka_cpp;rdkafka;s2;bitshuffle;roaring;fmt;cctz;base64;aws-cpp-sdk-core;aws-cpp-sdk-s3;aws-cpp-sdk-transfer;aws-cpp-sdk-s3-crt;aws-crt-cpp;aws-c-cal;aws-c-auth;aws-c-compression;aws-c-common;aws-c-event-stream;aws-c-io;aws-c-http;aws-c-mqtt;aws-checksums;aws-c-s3;aws-c-sdkutils;aws-cpp-sdk-identity-management;aws-cpp-sdk-sts;aws-s2n;azure-core;a zure-identity;azure-storage-blobs;azure-storage-common;minizip;simdjson;idn;xml2;lzma;gsasl;krb5support;krb5;com_err;k5crypto;gssapi_krb5;streamvbyte;deflate;icuuc;icui18n;icudata;pugixml;hadoop_hdfs;absl::flags_internal;absl::flags_reflection;absl::random_internal_pool_urbg;absl::random_internal_randen;absl::random_internal_seed_material;absl::spinlock_wait;absl::status;absl::statusor;absl::strings;krb5support;krb5;com_err;gssapi_krb5;k5crypto;libunwind;orc;ic;clucene-core-static;clucene-shared-static;clucene-contribs-lib;-Wl,--end-group;-static-libstdc++;-static-libgcc;-lresolv;-lstdc++fs;jemalloc;glibc-compatibility-explicit;glibc-compatibility;-lrt;-l:libbfd.a;-liberty;-lc;-lm;-ldl;-pthread -- dir='/root/doris-3.1.3-src/be/src/apache-orc/c++/include' -- dir='/root/doris-3.1.3-src/be/build_Release/src/apache-orc/c++/include' -- dir='/root/doris-3.1.3-src/be/build_Release/src/clucene/src/shared' -- dir='/root/doris-3.1.3-src/be/src/clucene/src/core' -- dir='/root/doris-3.1.3-src/be/src/clucene/src/shared' -- dir='/root/doris-3.1.3-src/be/src/clucene/src/contribs-lib' -- dir='/root/doris-3.1.3-src/be/src' -- dir='/root/doris-3.1.3-src/be/test' -- dir='/root/doris-3.1.3-src/be/../common' -- dir='/root/doris-3.1.3-src/be/../gensrc/build' -- dir='/var/local/thirdparty/installed/include' -- dir='/var/local/thirdparty/installed/gperftools/include' -- dir='/usr/lib/jvm/jdk-17.0.2/include' -- dir='/usr/lib/jvm/jdk-17.0.2/include/linux' -- Configuring done -- Generating done -- Build files have been written to: /root/doris-3.1.3-src/be/build_Release [0/2] Re-checking globbed directories... [311/1423] Building CXX object src/agent/CMakeFiles/Agent.dir/task_worker_pool.cpp.o FAILED: src/agent/CMakeFiles/Agent.dir/task_worker_pool.cpp.o ccache /var/local/ldb-toolchain-018/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 -DGLOG_CUSTOM_PREFIX_SUPPORT -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DLIBJVM -DS2_USE_GFLAGS -DS2_USE_GLOG -DUSE_AZURE -DUSE_DORIS_HADOOP_HDFS -DUSE_HADOOP_HDFS -DUSE_JEMALLOC -DUSE_MEM_TRACKER -DUSE_UNWIND -D__STDC_FORMAT_MACROS -I/root/doris-3.1.3-src/be/src/apache-orc/c++/include -I/root/doris-3.1.3-src/be/build_Release/src/apache-orc/c++/include -I/root/doris-3.1.3-src/be/build_Release/src/clucene/src/shared -I/root/doris-3.1.3-src/be/src/clucene/src/core -I/root/doris-3.1.3-src/be/src/clucene/src/shared -I/root/doris-3.1.3-src/be/src/clucene/src/contribs-lib -I/root/doris-3.1.3-src/be/src -I/root/doris-3.1.3-src/be/test -I/usr/lib/jvm/jdk-17.0.2/include -I/usr/lib/jvm/jdk-17.0.2/include/linux -isystem /root/doris-3.1.3-src/be/../common -isystem /root/doris-3.1. 3-src/be/../gensrc/build -isystem /var/local/thirdparty/installed/include -isystem /var/local/thirdparty/installed/gperftools/include -DENABLE_CACHE_LOCK_DEBUG -O3 -DNDEBUG -O3 -DNDEBUG -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 -Wconversion -Wno-gnu-statement-expression -Wno-implicit-float-conversion -Wno-implicit-int-conversion -Wno-sign-conversion -Wno-missing-field-initializers -Wno-unused-const-variable -Wno-shorten-64-to-32 -msse4.2 -mavx2 -gdwarf-aranges -std=gnu++20 -Winvalid-pch -Xclang -include-pch -Xclang /root/doris-3.1.3-src/be/build_Release/CMakeFiles/pch.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /root/doris-3.1.3-src/be/build_Release/CMakeFiles/pch.dir/cmake_pch. hxx -MD -MT src/agent/CMakeFiles/Agent.dir/task_worker_pool.cpp.o -MF src/agent/CMakeFiles/Agent.dir/task_worker_pool.cpp.o.d -o src/agent/CMakeFiles/Agent.dir/task_worker_pool.cpp.o -c /root/doris-3.1.3-src/be/src/agent/task_worker_pool.cpp In file included from /root/doris-3.1.3-src/be/src/agent/task_worker_pool.cpp:87: In file included from /root/doris-3.1.3-src/be/src/runtime/index_policy/index_policy_mgr.h:24: /root/doris-3.1.3-src/be/src/olap/rowset/segment_v2/inverted_index/analyzer/custom_analyzer.h:60:79: error: only virtual member functions can be marked 'override' TokenStream* tokenStream(const TCHAR* fieldName, const ReaderPtr& reader) override; ^~~~~~~~ /root/doris-3.1.3-src/be/src/olap/rowset/segment_v2/inverted_index/analyzer/custom_analyzer.h:61:87: error: only virtual member functions can be marked 'override' TokenStream* reusableTokenStream(const TCHAR* fieldName, const ReaderPtr& reader) override; ^~~~~~~~ 2 errors generated. [314/1423] Building CXX object src/common/CMakeFiles/Common.dir/config.cpp.o ninja: build stopped: subcommand failed. ### What You Expected? help to complete compile doris ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
