Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CH]current code base compile failed for ARM #8408

Closed
loudongfeng opened this issue Jan 3, 2025 · 1 comment · Fixed by #8413
Closed

[CH]current code base compile failed for ARM #8408

loudongfeng opened this issue Jan 3, 2025 · 1 comment · Fixed by #8413
Labels
bug Something isn't working triage

Comments

@loudongfeng
Copy link
Contributor

Backend

CH (ClickHouse)

Bug description

build with NO_ARMV81_OR_HIGHER=1 under ARM:

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:

/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

@baibaichen
Copy link
Contributor

baibaichen commented Jan 6, 2025

related with #8105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants