gazelle_plugin
gazelle_plugin copied to clipboard
Compile arrow-data-source module error
Compile Error
plugin-vesion : gazelle_plugin-1.2.0
arrow-version : --branch arrow-4.0.0-oap-1.2
[ 83%] Generating arithmetic_ops.bc /data/software/gazelle_plugin-1.2.0/arrow-data-source/script/build/arrow_ep/cpp/src/gandiva/precompiled/arithmetic_ops.cc:156:1: error: no member named 'abs' in namespace 'std'; did you mean 'fabs' ? NORMALIZE(float64, float64) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/software/gazelle_plugin-1.2.0/arrow-data-source/script/build/arrow_ep/cpp/src/gandiva/precompiled/arithmetic_ops.cc:149:16: note: expanded from macro 'NORMALIZE' } else if (std::abs(in) < 0.0000001) { \ ^~~~~ /usr/include/bits/mathcalls.h:182:14: note: 'fabs' declared here __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); ^ /data/software/gazelle_plugin-1.2.0/arrow-data-source/script/build/arrow_ep/cpp/src/gandiva/precompiled/arithmetic_ops.cc:157:1: error: no member named 'abs' in namespace 'std'; did you mean 'fabs'? NORMALIZE(float32, float32) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/software/gazelle_plugin-1.2.0/arrow-data-source/script/build/arrow_ep/cpp/src/gandiva/precompiled/arithmetic_ops.cc:149:16: note: expanded from macro 'NORMALIZE' } else if (std::abs(in) < 0.0000001) { \ ^~~~~ /usr/include/bits/mathcalls.h:182:14: note: 'fabs' declared here __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); ^ 2 errors generated. make[2]: *** [src/gandiva/precompiled/arithmetic_ops.bc] Error 1 make[1]: *** [src/gandiva/precompiled/CMakeFiles/precompiled.dir/all] Error 2 make: *** [all] Error 2
To Reproduce
mvn clean package -DskipTests -Dcpp_tests=OFF -Dbuild_arrow=ON -Dcheckstyle.skip
Expected behavior
Additional context
This error is from building apache arrow, not arrow-data-source.
- You can try to build apache arrow separately and after that to turn off the build_arrow variable with -Dbuild_arrow=OFF.
- About how to build apache arrow, you can check the below script for more information. https://github.com/oap-project/gazelle_plugin/blob/master/arrow-data-source/script/build_arrow.sh
- Which version of cmake you are using, you may be can try to upgrade your cmake to at least 3.15 or later version.