Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions community/source-install/compilation-with-ldb-toolchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ specific language governing permissions and limitations
under the License.
-->

This guide is about how to compile Doris using the LDB Toolchain. This method serves as a supplement to the Docker compilation approach to help the developers and users without a Docker environment. The recommended LDB Toolchain version is 0.19(Robin), which includes clang-16 and gcc-11.
This guide is about how to compile Doris using the LDB Toolchain. This method serves as a supplement to the Docker compilation approach to help developers and users without a Docker environment.

:::tip
LDB Toolchain is fully known as Linux Distribution Based Toolchain Generator. It helps compile modern C++ projects on almost all Linux distributions.
| Doris Version | Recommended LDB Toolchain Version | Included Compiler Version |
| -- | -- | -- |
| master | 0.25 | clang-20, gcc-15 |
| 3.1 / 3.0 / 2.1 | 0.19 | clang-17, gcc-13 |

Special thanks to [Amos Bird](https://github.com/amosbird) for the contribution.
:::tip
LDB Toolchain stands for Linux Distribution Based Toolchain Generator. It helps compile modern C++ projects on almost all Linux distributions.
:::

## Prepare the compilation environment
Expand Down Expand Up @@ -136,7 +139,7 @@ $ USE_AVX2=0 sh build.sh
$ BUILD_TYPE=Debug sh build.sh
```

This script first compiles the third-party libraries and then the Doris components (FE, BE, MS). The compilation output can be found in the `output/` directory. MS stands for Meta Service, which a module of Doris in the compute-storage decoupled mode. For more information about MS, refer to this [doc](../../compute-storage-decoupled/compilation-and-deployment).
This script first compiles the third-party libraries and then the Doris components (FE, BE, MS). The compilation output can be found in the `output/` directory. MS stands for Meta Service, which a module of Doris in the compute-storage decoupled mode. For more information about MS, refer to this [doc](../../docs/compute-storage-decoupled/compilation-and-deployment.md).

## Pre-compile third-party libraries

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ specific language governing permissions and limitations
under the License.
-->

本文档主要介绍如何使用 LDB Toolchain 编译 Doris。该方式目前作为 Docker 编译方式的补充,方便没有 Docker 环境的开发者和用户编译 Doris 源码。Doris 目前推荐的 LDB Toolchain 版本为 Robin(0.19), 其中含有 clang-17 和 gcc-13。
本文档主要介绍如何使用 LDB Toolchain 编译 Doris。该方式目前作为 Docker 编译方式的补充,方便没有 Docker 环境的开发者和用户编译 Doris 源码。

| Doris 版本 | 推荐 LDB Toolchain 版本 | 包含编译器版本 |
| -- | -- | -- |
| master | 0.25 | clang-20, gcc-15 |
| 3.1 / 3.0 / 2.1 | 0.19 | clang-17, gcc-13 |

:::tip
LDB Toolchain 全称 Linux Distribution Based Toolchain Generator,它有助于在几乎所有 Linux 发行版上编译现代 C++ 项目。
Expand All @@ -38,7 +43,7 @@ LDB Toolchain 全称 Linux Distribution Based Toolchain Generator,它有助于

**1. 下载`ldb_toolchain_gen.sh`**

可以从[这里](https://github.com/amosbird/ldb_toolchain_gen/releases)下载最新的 `ldb_toolchain_gen.sh`,对于ARM架构,需要下载最新的`ldb_toolchain_gen.aarch64.sh`。该脚本用于生成 LDB Toolchain
可以从[这里](https://github.com/amosbird/ldb_toolchain_gen/releases)下载对应版本的 `ldb_toolchain_gen.sh`,对于ARM架构,需要下载对应版本的`ldb_toolchain_gen.aarch64.sh`。该脚本用于生成 LDB Toolchain

:::tip
更多信息,可访问 <https://github.com/amosbird/ldb_toolchain_gen>
Expand Down Expand Up @@ -137,7 +142,7 @@ $ BUILD_TYPE=Debug sh build.sh
```

该脚本会先编译第三方库,之后再编译 Doris 组件(FE、BE、MS)。编译产出在 `output/` 目录下。
MS 模块是 doris 存算分离模式依赖的模块,详细说明请参考[此连接](../../../docusaurus-plugin-content-docs/current/compute-storage-decoupled/compilation-and-deployment)
MS 模块是 doris 存算分离模式依赖的模块,详细说明请参考[此连接](../../../docusaurus-plugin-content-docs/current/compute-storage-decoupled/compilation-and-deployment.md)

## 预编译三方库

Expand Down