Back to Clickhouse

How to Build ClickHouse on Linux for RISC-V 64

docs/en/development/build-cross-riscv.md

26.4.1.1-new632 B
Original Source

How to Build ClickHouse on Linux for RISC-V 64

ClickHouse has experimental support for RISC-V. Not all features can be enabled.

Build ClickHouse {#build-clickhouse}

To cross-compile for RISC-V on an non-RISC-V machine:

bash
cd ClickHouse
mkdir build-riscv64
cmake . -Bbuild-riscv64 -G Ninja -DCMAKE_TOOLCHAIN_FILE=cmake/linux/toolchain-riscv64.cmake -DGLIBC_COMPATIBILITY=OFF -DENABLE_LDAP=OFF  -DOPENSSL_NO_ASM=ON -DENABLE_JEMALLOC=ON -DENABLE_PARQUET=OFF -DENABLE_GRPC=OFF -DENABLE_HDFS=OFF -DENABLE_MYSQL=OFF
ninja -C build-riscv64

The resulting binary will run only on Linux with the RISC-V 64 CPU architecture.