Skip to content

Remove pthread hack #5547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kateinoigakukun opened this issue Jul 11, 2023 · 1 comment
Closed

Remove pthread hack #5547

kateinoigakukun opened this issue Jul 11, 2023 · 1 comment

Comments

@kateinoigakukun
Copy link
Member

I've tried removing 0047-wasm-stdlib-HACK-Add-pthread-stub-to-avoid-linking-e.patch patch with unmodified wasi-sysroot distributed in https://github.com/WebAssembly/wasi-sdk

It successfully compiles stdlib but got some errors when linking an executable programs

wasm-ld: error: /home/katei/ghq/work.katei.dev/swiftwasm-source/build/WebAssembly/swift-stdlib-wasi-wasm32/./lib/swift_static/wasi/libswift_Concurrency.a(GlobalExecutor.cpp.o): undefined symbol: std::__2::this_thread::sleep_for(std::__2::chrono::duration<long long, std::__2::ratio<1ll, 1000000000ll>> const&)
wasm-ld: error: /home/katei/ghq/work.katei.dev/swiftwasm-source/build-sdk/wasi-sysroot/lib/wasm32-wasi/libc.a(__main_void.o): undefined symbol: main
@kateinoigakukun
Copy link
Member Author

Resolved by swiftlang@87e7030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant