Skip to content

Commit 7e3f55b

Browse files
authored
Add How To Fix page (#134)
1 parent 71d74ee commit 7e3f55b

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

HOW-TO-FIX.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Troubleshooting
2+
3+
This page addresses common issues and provides solutions to help you get started or resolve problems.
4+
5+
### 1. CUDA Build Errors
6+
7+
**Problem:** CUDA wheel build failed with the following errors:
8+
```
9+
/usr/include/x86_64-linux-gnu/bits/stdlib.h(37): error: linkage specification is incompatible with previous "realpath" (declared at line 940 of /usr/include/stdlib.h)
10+
realpath (const char *__restrict __name, char * __restrict const __attribute__ ((__pass_object_size__ (1 > 1))) __resolved) noexcept (true)
11+
^
12+
13+
/usr/include/x86_64-linux-gnu/bits/stdlib.h(72): error: linkage specification is incompatible with previous "ptsname_r" (declared at line 1134 of /usr/include/stdlib.h)
14+
ptsname_r (int __fd, char * const __attribute__ ((__pass_object_size__ (1 > 1))) __buf, size_t __buflen) noexcept (true)
15+
^
16+
17+
/usr/include/x86_64-linux-gnu/bits/stdlib.h(91): error: linkage specification is incompatible with previous "wctomb" (declared at line 1069 of /usr/include/stdlib.h)
18+
wctomb (char * const __attribute__ ((__pass_object_size__ (1 > 1))) __s, wchar_t __wchar) noexcept (true)
19+
^
20+
...
21+
```
22+
23+
**Solution:**
24+
Reported error messages are connected to system headers in the /usr/include/ directory and GLIBC version.
25+
26+
While a direct compatibility matrix for NVCC and GLIBC was elusive try to use the cuDNN compatibility table as a
27+
reference: [Linux versions for cuDNN](https://docs.nvidia.com/deeplearning/cudnn/backend/latest/reference/support-matrix.html#linux)
28+
29+
Building CUDA requires a compatible machine and GLIBC version. For instance, try building on Ubuntu 24.04, which uses
30+
GLIBC 2.39, as this combination is documented as supported.

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ build:linux --repo_env=SYSROOT_DIST=linux_glibc_2_31
6565

6666
Supported versions of LLVM
6767

68-
| Version | Execution OS |
69-
|---------|---------------------------------------|
70-
| 18 | Linux x86_64 / aarch64, macOS aarch64 |
71-
| 19 | Linux x86_64 |
72-
| 20 | Linux x86_64 / aarch64 |
73-
| 21 | Linux x86_64 |
68+
| Version | Linux x86_64 | Linux aarch64 | macOS aarch64 |
69+
|---------|--------------|---------------|---------------|
70+
| 18 | x | x | x |
71+
| 19 | x | | |
72+
| 20 | x | x | |
73+
| 21 | x | | |
7474

7575
Available sysroots
7676

@@ -132,4 +132,7 @@ and allows build for such targets:
132132
[Prepare SDK](cc/sysroots/darwin_aarch64/README.md) before run the following command.
133133
134134
`bazel build //cc/tests/cpu/... --platforms=//common:macos_aarch64`
135-
-->
135+
-->
136+
137+
## Troubleshooting
138+
Encountering issues? Try to find decision on [How To Fix](HOW-TO-FIX.md) page.

0 commit comments

Comments
 (0)