Skip to content

Commit

Permalink
Add faq entry for 'stdlib.h' file not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jun 14, 2024
1 parent 86714c9 commit 5eae9b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/getting-started/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ You have two options to solve this issue:


See also: [LLVM Bugzilla – wasm32: Allow placing the stack before global data](https://bugs.llvm.org/show_bug.cgi?id=37181)

## `fatal error: 'stdlib.h' file not found`

If you encounter this error, please make sure that:

- You are using SwiftWasm toolchain (if you installed it as a toolchain, not as a Swift SDK)
- Check `which swift` and make sure it points to the SwiftWasm toolchain.
- You are using the correct target triple:
- `--triple wasm32-unknown-wasi --static-swift-stdlib` if you installed as a *toolchain*
- `--swift-sdk wasm32-unknown-wasi` if you installed as a *Swift SDK*

0 comments on commit 5eae9b2

Please sign in to comment.