[Docs] Add glibc capability warning and fix typo (#3043)

* Fix typo

* Add glibc capability warning
This commit is contained in:
Chi-Kuan Chiu
2025-10-07 02:22:49 +08:00
committed by GitHub
parent e8ed70905c
commit 73aed7fd0e

View File

@@ -346,6 +346,9 @@ In particular, you must specify the cross-compiler. For example:
-DCMAKE_C_COMPILER=riscv64-unknown-linux-gnu-gcc # Or whichever cross-compiler you use
```
Be aware of potential glibc capability errors when choosing a cross-compiler.
To avoid this, run `ldd --version` on your target machine to check its glibc version.
### Running tests with QEMU (optional)
To do a quick check, run:
```
@@ -370,7 +373,7 @@ $ mv box64-x86_64-linux-gnu /usr/lib
```
For `i386`:
```shell
$ mv x64lib box64-i386-linux-gnu
$ mv x86lib box64-i386-linux-gnu
$ mv box64-i386-linux-gnu /usr/lib
```