Skip to content

Commit 1939b2b

Browse files
deploy: 5eae9b2
1 parent 5683689 commit 1939b2b

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

getting-started/troubleshooting.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,21 @@ <h3><a class="header" href="#3-stack-overflow-is-occurring" id="3-stack-overflow
187187
</li>
188188
</ol>
189189
<p>See also: <a href="https://bugs.llvm.org/show_bug.cgi?id=37181">LLVM Bugzilla – wasm32: Allow placing the stack before global data</a></p>
190+
<h2><a class="header" href="#fatal-error-stdlibh-file-not-found" id="fatal-error-stdlibh-file-not-found"><code>fatal error: 'stdlib.h' file not found</code></a></h2>
191+
<p>If you encounter this error, please make sure that:</p>
192+
<ul>
193+
<li>You are using SwiftWasm toolchain (if you installed it as a toolchain, not as a Swift SDK)
194+
<ul>
195+
<li>Check <code>which swift</code> and make sure it points to the SwiftWasm toolchain.</li>
196+
</ul>
197+
</li>
198+
<li>You are using the correct target triple:
199+
<ul>
200+
<li><code>--triple wasm32-unknown-wasi --static-swift-stdlib</code> if you installed as a <em>toolchain</em></li>
201+
<li><code>--swift-sdk wasm32-unknown-wasi</code> if you installed as a <em>Swift SDK</em></li>
202+
</ul>
203+
</li>
204+
</ul>
190205

191206
</main>
192207

print.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,21 @@ <h3><a class="header" href="#3-stack-overflow-is-occurring" id="3-stack-overflow
706706
</li>
707707
</ol>
708708
<p>See also: <a href="https://bugs.llvm.org/show_bug.cgi?id=37181">LLVM Bugzilla – wasm32: Allow placing the stack before global data</a></p>
709+
<h2><a class="header" href="#fatal-error-stdlibh-file-not-found" id="fatal-error-stdlibh-file-not-found"><code>fatal error: 'stdlib.h' file not found</code></a></h2>
710+
<p>If you encounter this error, please make sure that:</p>
711+
<ul>
712+
<li>You are using SwiftWasm toolchain (if you installed it as a toolchain, not as a Swift SDK)
713+
<ul>
714+
<li>Check <code>which swift</code> and make sure it points to the SwiftWasm toolchain.</li>
715+
</ul>
716+
</li>
717+
<li>You are using the correct target triple:
718+
<ul>
719+
<li><code>--triple wasm32-unknown-wasi --static-swift-stdlib</code> if you installed as a <em>toolchain</em></li>
720+
<li><code>--swift-sdk wasm32-unknown-wasi</code> if you installed as a <em>Swift SDK</em></li>
721+
</ul>
722+
</li>
723+
</ul>
709724
<h1><a class="header" href="#examples" id="examples">Examples</a></h1>
710725
<p>This section shows you example usage of our toolchain.</p>
711726
<h1><a class="header" href="#importing-a-function-from-host-environments" id="importing-a-function-from-host-environments">Importing a function from host environments</a></h1>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)