From 73aed7fd0e3d32573e976d153b9752b2b264c7f9 Mon Sep 17 00:00:00 2001 From: Chi-Kuan Chiu <105687635+devarajabc@users.noreply.github.com> Date: Tue, 7 Oct 2025 02:22:49 +0800 Subject: [Docs] Add glibc capability warning and fix typo (#3043) * Fix typo * Add glibc capability warning --- docs/COMPILE.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/COMPILE.md') diff --git a/docs/COMPILE.md b/docs/COMPILE.md index 1f3a8e2d..9863b00a 100644 --- a/docs/COMPILE.md +++ b/docs/COMPILE.md @@ -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 ``` -- cgit 1.4.1