wushap opened a new issue, #53344:
URL: https://github.com/apache/doris/issues/53344

   ### 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
   
   3555fd4fc4203de53e74f2614459f6d43f94db9c
   
   ### What's Wrong?
   
   Build failed when run this commend.
   
   > 
   > -- Build files have been written to: /root/doris/be/build_Debug
   > [0/2] Re-checking globbed directories...
   > [1316/1454] Building CXX object 
src/vec/CMakeFiles/Vec.dir/functions/round.cpp.o
   > FAILED: src/vec/CMakeFiles/Vec.dir/functions/round.cpp.o 
   > ccache /var/local/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 -DGLOG_CUSTOM_PREFIX_SUPPORT -DHAVE_INTTYPES_H 
-DHAVE_NETINET_IN_H -DLIBDIVIDE_SSE2 -DLIBJVM -DS2_USE_GFLAGS -DS2_USE_GLOG 
-DUSE_AZURE -DUSE_DORIS_HADOOP_HDFS -DUSE_HADOOP_HDFS -DUSE_JEMALLOC 
-DUSE_UNWIND -D__STDC_FORMAT_MACROS -I/root/doris/be/src/apache-orc/c++/include 
-I/root/doris/be/build_Debug/src/apache-orc/c++/include 
-I/root/doris/be/build_Debug/src/clucene/src/shared 
-I/root/doris/be/src/clucene/src/core -I/root/doris/be/src/clucene/src/shared 
-I/root/doris/be/src/clucene/src/contribs-lib -I/root/doris/be/src 
-I/usr/lib/jvm/jdk-17.0.2/include -I/usr/lib/jvm/jdk-17.0.2/include/linux 
-isystem /root/doris/be/../common -isystem /root/doris/be/../gensrc/build 
-isystem /var/local/thirdparty/installed/include -isystem 
/var/local/thirdparty/installed/gperftools/inc
 lude -DENABLE_CACHE_LOCK_DEBUG -O0  -g   -D OS_LINUX -g -Wall -Wextra -Werror 
-Wundef -pthread -fstrict-aliasing -fno-omit-frame-pointer -Wnon-virtual-dtor 
-Wno-unused-parameter -Wno-deprecated-declarations -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-shorten-64-to-32 -msse4.2 -gdwarf-aranges 
-std=gnu++20 -Winvalid-pch -Xclang -include-pch -Xclang 
/root/doris/be/build_Debug/CMakeFiles/pch.dir/cmake_pch.hxx.pch -Xclang 
-include -Xclang /root/doris/be/build_Debug/CMakeFiles/pch.dir/cmake_pch.hxx 
-MD -MT src/vec/CMakeFiles/Vec.dir/functions/round.cpp.o -MF 
src/vec/CMakeFiles/Vec.dir/functions/round.cpp.o.d -o 
src/vec/CMakeFiles/Vec.dir/functions/round.cpp.o -c 
/root/doris/be/src/vec/functio
 ns/round.cpp
   > In file included from /root/doris/be/src/vec/functions/round.cpp:18:
   > /root/doris/be/src/vec/functions/round.h:497:13: error: static assertion 
failed
   >             static_assert(false);
   >             ^             ~~~~~
   > /root/doris/be/src/vec/functions/round.h:575:13: error: static assertion 
failed
   >             static_assert(false);
   >             ^             ~~~~~
   > /root/doris/be/src/vec/functions/round.h:658:13: error: static assertion 
failed
   >             static_assert(false);
   >             ^             ~~~~~
   > 3 errors generated.
   > [1317/1454] Building CXX object 
src/vec/CMakeFiles/Vec.dir/functions/time_of_function.cpp.o
   > ninja: build stopped: subcommand failed.
   
   ### What You Expected?
   
   Build success
   
   ### How to Reproduce?
   
   > pull apache/doris:build-env-ldb-toolchain-latest
   > git clone -b master https://github.com/apache/doris.git
   > BUILD_TYPE=Debug USE_AVX2=0  sh build
   
   
   ### Anything Else?
   
   Build success when modify these "static_assert" to "assert". 
   
   > /root/doris/be/src/vec/functions/round.h:497:13: error: static assertion 
failed
   >             static_assert(false);
   >             ^             ~~~~~
   > /root/doris/be/src/vec/functions/round.h:575:13: error: static assertion 
failed
   >             static_assert(false);
   >             ^             ~~~~~
   > /root/doris/be/src/vec/functions/round.h:658:13: error: static assertion 
failed
   >             static_assert(false);
   >             ^             ~~~~~
   
   
   ### Are you willing to submit PR?
   
   - [x] 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]

Reply via email to