loudongfeng opened a new issue, #8408:
URL: https://github.com/apache/incubator-gluten/issues/8408

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   build with NO_ARMV81_OR_HIGHER=1 under ARM:
   ```bash
   export GLUTEN_SOURCE=/root/nemo/Gluten_Kernel
   export CH_SOURCE_DIR=/root/nemo/ClickHouse_Kernel
   cmake -G Ninja -S ${GLUTEN_SOURCE}/cpp-ch -B 
${GLUTEN_SOURCE}/cpp-ch/build_ch -DCH_SOURCE_DIR=${CH_SOURCE_DIR} 
"-DCMAKE_C_COMPILER=$(command -v clang-18)" "-DCMAKE_CXX_COMPILER=$(command -v 
clang-18)" "-DCMAKE_BUILD_TYPE=Release " -DENABLE_TESTS=ON
   ```
   got bellow errors:
   ```c++
   
/root/nemo/Gluten_Kernel/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h:26:19:
 error: signed _BitInt of bit sizes greater than 128 not supported
      26 | using BitInt256 = signed _BitInt(256);
         |                   ^
   
/root/nemo/Gluten_Kernel/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h:27:20:
 error: unsigned _BitInt of bit sizes greater than 128 not supported
      27 | using BitUInt256 = unsigned _BitInt(256);
         |                    ^
   
/root/nemo/Gluten_Kernel/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h:47:38:
 error: unknown type name 'BitInt256'
      47 | static const Int256 & toInt256(const BitInt256 & value)
         |                                      ^
   
/root/nemo/Gluten_Kernel/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h:52:14:
 error: unknown type name 'BitInt256'
      52 | static const BitInt256 & toBitInt256(const Int256 & value)
         |              ^
   
/root/nemo/Gluten_Kernel/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h:54:36:
 error: unknown type name 'BitInt256'
      54 |     return *reinterpret_cast<const BitInt256 *>(&value);
         |                                    ^
   5 errors generated.
   
   ```
   According to 
   
https://stackoverflow.com/questions/78614816/why-am-i-getting-a-256-bit-arithmetic-error-unsigined-bitint-of-bit-sizes-gre
   _BitInt of bit sizes on arm and aarch64, they are currently only supported 
up to 128 bits.
   
   ### Spark version
   
   Spark-3.3.x
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


-- 
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