This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new 04525f69dfc [compile](arm) fix arm compile failed (#55798)
04525f69dfc is described below
commit 04525f69dfcaee1134f7fdb8bbed9c9504cd9e1b
Author: HappenLee <[email protected]>
AuthorDate: Tue Sep 9 20:33:24 2025 +0800
[compile](arm) fix arm compile failed (#55798)
Fix arm compile failed:
```
FAILED:
src/vec/CMakeFiles/Vec.dir/functions/array/function_array_distance.cpp.o
ccache /usr/local/bin/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 -DLIBJVM -DS2_USE_GFLAGS -DS2_USE_GLOG
-DUSE_DORIS_HADOOP_HDFS -DUSE_HADOOP_HDFS -DUSE_JEMALLOC -DUSE_MEM_TRACKER
-D__STDC_FORMAT_MACROS
-I/home/zcp/repo_center/doris_branch-3.1/doris/be/src/apache-orc/ [...]
/home/zcp/repo_center/doris_branch-3.1/doris/be/src/vec/functions/array/function_array_distance.cpp:38:1:
error: unknown pragma ignored [-Werror,-Wunknown-pragmas]
PRAGMA_IMPRECISE_FUNCTION_BEGIN
^
/home/zcp/repo_center/doris_branch-3.1/doris/be/src/vec/functions/array/function_array_distance.cpp:30:5:
note: expanded from macro 'PRAGMA_IMPRECISE_FUNCTION_BEGIN'
_Pragma("GCC push_options") \
^
<scratch space>:133:6: note: expanded from here
GCC push_options
^
/home/zcp/repo_center/doris_branch-3.1/doris/be/src/vec/functions/array/function_array_distance.cpp:38:1:
error: unknown pragma ignored [-Werror,-Wunknown-pragmas]
/home/zcp/repo_center/doris_branch-3.1/doris/be/src/vec/functions/array/function_array_distance.cpp:31:13:
note: expanded from macro 'PRAGMA_IMPRECISE_FUNCTION_BEGIN'
_Pragma("GCC optimize
(\"unroll-loops,associative-math,no-signed-zeros\")")
^
<scratch space>:135:6: note: expanded from here
GCC optimize ("unroll-loops,associative-math,no-signed-zeros")
^
/home/zcp/repo_center/doris_branch-3.1/doris/be/src/vec/functions/array/function_array_distance.cpp:81:1:
error: unknown pragma ignored [-Werror,-Wunknown-pragmas]
PRAGMA_IMPRECISE_FUNCTION_END
^
/home/zcp/repo_center/doris_branch-3.1/doris/be/src/vec/functions/array/function_array_distance.cpp:32:39:
note: expanded from macro 'PRAGMA_IMPRECISE_FUNCTION_END'
#define PRAGMA_IMPRECISE_FUNCTION_END _Pragma("GCC pop_options")
^
<scratch space>:137:6: note: expanded from here
GCC pop_options
^
```
---
be/src/vec/functions/array/function_array_distance.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/vec/functions/array/function_array_distance.cpp
b/be/src/vec/functions/array/function_array_distance.cpp
index 723e53b058a..7acbf9fefa7 100644
--- a/be/src/vec/functions/array/function_array_distance.cpp
+++ b/be/src/vec/functions/array/function_array_distance.cpp
@@ -21,7 +21,7 @@
namespace doris::vectorized {
-#if defined(__x86_64__) && (defined(__clang_major__) && (__clang_major__ > 10))
+#if defined(__clang_major__) && (__clang_major__ > 10)
#define PRAGMA_IMPRECISE_FUNCTION_BEGIN _Pragma("float_control(precise, off,
push)")
#define PRAGMA_IMPRECISE_FUNCTION_END _Pragma("float_control(pop)")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]