From a6b41d21a2cb3d22ee573e2aeb03b2eb4827e9cd Mon Sep 17 00:00:00 2001 From: BiteTheDDDDt Date: Thu, 7 Aug 2025 16:36:59 +0800 Subject: [PATCH 1/4] update community/source-install/compilation-with-ldb-toolchain.md --- community/source-install/compilation-with-ldb-toolchain.md | 6 ++---- .../source-install/compilation-with-ldb-toolchain.md | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/community/source-install/compilation-with-ldb-toolchain.md b/community/source-install/compilation-with-ldb-toolchain.md index 792ff430505fd..19f0e4f4c3f10 100644 --- a/community/source-install/compilation-with-ldb-toolchain.md +++ b/community/source-install/compilation-with-ldb-toolchain.md @@ -24,12 +24,10 @@ 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. For Doris 3.1 and earlier versions, the recommended LDB Toolchain version is Robin(0.19), which includes clang-17 and gcc-13. For Doris versions after 3.1, the recommended LDB Toolchain version is 0.25, which includes clang-20 and gcc-15. :::tip -LDB Toolchain is fully known as Linux Distribution Based Toolchain Generator. It helps compile modern C++ projects on almost all Linux distributions. - -Special thanks to [Amos Bird](https://github.com/amosbird) for the contribution. +LDB Toolchain stands for Linux Distribution Based Toolchain Generator. It helps compile modern C++ projects on almost all Linux distributions. ::: ## Prepare the compilation environment diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md index b8bdb5e1f31b7..a523cdf82618e 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md @@ -24,7 +24,7 @@ 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 3.1以及之前的版本 目前推荐的 LDB Toolchain 版本为 0.19, 其中含有 clang-17 和 gcc-13。对于Doris 3.1之后的版本 目前推荐的 LDB Toolchain 版本为 0.25, 其中含有 clang-20 和 gcc-15。 :::tip LDB Toolchain 全称 Linux Distribution Based Toolchain Generator,它有助于在几乎所有 Linux 发行版上编译现代 C++ 项目。 @@ -38,7 +38,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 更多信息,可访问 From bdb7bb3d2dc558aa780baaaa07da47d65cbedada Mon Sep 17 00:00:00 2001 From: BiteTheDDDDt Date: Thu, 7 Aug 2025 16:42:09 +0800 Subject: [PATCH 2/4] fix dead link --- community/source-install/compilation-with-ldb-toolchain.md | 2 +- .../current/source-install/compilation-with-ldb-toolchain.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/community/source-install/compilation-with-ldb-toolchain.md b/community/source-install/compilation-with-ldb-toolchain.md index 19f0e4f4c3f10..98a5a29e62719 100644 --- a/community/source-install/compilation-with-ldb-toolchain.md +++ b/community/source-install/compilation-with-ldb-toolchain.md @@ -134,7 +134,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](../../../docusaurus-plugin-content-docs/current/compute-storage-decoupled/compilation-and-deployment.md). ## Pre-compile third-party libraries diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md index a523cdf82618e..c07836040aeab 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md @@ -137,7 +137,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) ## 预编译三方库 From 3b8604573b4712f07b8139ed1e5ce607ebf8bdeb Mon Sep 17 00:00:00 2001 From: BiteTheDDDDt Date: Thu, 7 Aug 2025 16:48:10 +0800 Subject: [PATCH 3/4] update --- community/source-install/compilation-with-ldb-toolchain.md | 7 ++++++- .../source-install/compilation-with-ldb-toolchain.md | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/community/source-install/compilation-with-ldb-toolchain.md b/community/source-install/compilation-with-ldb-toolchain.md index 98a5a29e62719..d370566c41bf4 100644 --- a/community/source-install/compilation-with-ldb-toolchain.md +++ b/community/source-install/compilation-with-ldb-toolchain.md @@ -24,7 +24,12 @@ 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 developers and users without a Docker environment. For Doris 3.1 and earlier versions, the recommended LDB Toolchain version is Robin(0.19), which includes clang-17 and gcc-13. For Doris versions after 3.1, the recommended LDB Toolchain version is 0.25, which includes clang-20 and gcc-15. +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. + +| 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 | :::tip LDB Toolchain stands for Linux Distribution Based Toolchain Generator. It helps compile modern C++ projects on almost all Linux distributions. diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md index c07836040aeab..fc0ca2840123f 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md @@ -24,7 +24,12 @@ specific language governing permissions and limitations under the License. --> -本文档主要介绍如何使用 LDB Toolchain 编译 Doris。该方式目前作为 Docker 编译方式的补充,方便没有 Docker 环境的开发者和用户编译 Doris 源码。对于 Doris 3.1以及之前的版本 目前推荐的 LDB Toolchain 版本为 0.19, 其中含有 clang-17 和 gcc-13。对于Doris 3.1之后的版本 目前推荐的 LDB Toolchain 版本为 0.25, 其中含有 clang-20 和 gcc-15。 +本文档主要介绍如何使用 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++ 项目。 From 3d2f9a893272074ece08d83d8a129e8c1bdfcb5a Mon Sep 17 00:00:00 2001 From: BiteTheDDDDt Date: Thu, 7 Aug 2025 16:52:32 +0800 Subject: [PATCH 4/4] fix dead link --- community/source-install/compilation-with-ldb-toolchain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community/source-install/compilation-with-ldb-toolchain.md b/community/source-install/compilation-with-ldb-toolchain.md index d370566c41bf4..0b55db2bb9337 100644 --- a/community/source-install/compilation-with-ldb-toolchain.md +++ b/community/source-install/compilation-with-ldb-toolchain.md @@ -139,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](../../../docusaurus-plugin-content-docs/current/compute-storage-decoupled/compilation-and-deployment.md). +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