Skip to content

Commit 5eae9b2

Browse files
Add faq entry for 'stdlib.h' file not found error
1 parent 86714c9 commit 5eae9b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/getting-started/troubleshooting.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,13 @@ You have two options to solve this issue:
3535

3636

3737
See also: [LLVM Bugzilla – wasm32: Allow placing the stack before global data](https://bugs.llvm.org/show_bug.cgi?id=37181)
38+
39+
## `fatal error: 'stdlib.h' file not found`
40+
41+
If you encounter this error, please make sure that:
42+
43+
- You are using SwiftWasm toolchain (if you installed it as a toolchain, not as a Swift SDK)
44+
- Check `which swift` and make sure it points to the SwiftWasm toolchain.
45+
- You are using the correct target triple:
46+
- `--triple wasm32-unknown-wasi --static-swift-stdlib` if you installed as a *toolchain*
47+
- `--swift-sdk wasm32-unknown-wasi` if you installed as a *Swift SDK*

0 commit comments

Comments
 (0)