Skip to content

[fix](community-docs) invoke ldb_toolchain_gen.sh with bash, not sh#3754

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix-compile-and-dev-guide-sh-bash
May 24, 2026
Merged

[fix](community-docs) invoke ldb_toolchain_gen.sh with bash, not sh#3754
morningman merged 1 commit into
apache:masterfrom
boluor:fix-compile-and-dev-guide-sh-bash

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 23, 2026

Summary

`ldb_toolchain_gen.sh` uses bash-only syntax (`[[ ... ]]` etc.). On distros where `/bin/sh` is `dash` (Ubuntu, Debian), running it as `sh ldb_toolchain_gen.sh /path/...` fails with:

```
ldb_toolchain_gen.sh: 42: [[: not found
Unknown architecture: x86_64
```

Switch the invocation to `bash ldb_toolchain_gen.sh ...` in the x86_64 and aarch64 compilation guides, EN + zh.

Fixes #3538

ldb_toolchain_gen.sh uses bash-only syntax (`[[ ... ]]`, etc.). On
distros where /bin/sh is dash (Ubuntu, Debian), running it as
`sh ldb_toolchain_gen.sh /path/...` fails with
`[[: not found` and `Unknown architecture: x86_64`.

Switch the invocation to `bash ldb_toolchain_gen.sh ...` in both the
x86_64 and aarch64 compilation guides, EN + zh.

Fixes apache#3538

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@morningman morningman merged commit 1d818ad into apache:master May 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Fix shell invocation in LDB toolchain compilation guide

2 participants