Stream: wasi

Topic: Status of building libicu with wasi-sdk


view this post on Zulip Scott Waye (May 03 2023 at 12:49):

I'm a little confused about the status of building libicu with the wasi-sdk. From the ICU sources https://github.com/unicode-org/icu/blob/main/icu4c/source/runConfigureICU there is no option for wasi, Linux with clang looks the closest. I also saw https://bugzilla.mozilla.org/show_bug.cgi?id=1706949 which is closed, but that is in a Mozilla bug tracker so not sure how it relates to wasi-sdk? Has anyone successfully build libicu with wasi-sdk ?

The home of the ICU project source code. Contribute to unicode-org/icu development by creating an account on GitHub.

view this post on Zulip Bailey Hayes (Jun 02 2023 at 00:59):

Have you seen https://github.com/unicode-org/icu4x?

http://blog.unicode.org/2022/09/announcing-icu4x-10.html

Solving i18n for client-side and resource-constrained environments. - GitHub - unicode-org/icu4x: Solving i18n for client-side and resource-constrained environments.
  I. Introduction Hello! Ndeewo! Molweni! Салам! Across the world, people are coming online with smartphones, smart watches, and other sma...

view this post on Zulip Scott Waye (Jun 02 2023 at 01:04):

Thanks, that does look interesting. I will mark this complete as that looks like it has Wasm in its sights, even though I've not tried to build it with the wasi-sdk

view this post on Zulip Bailey Hayes (Jun 02 2023 at 01:07):

I only remember the blog post mentioning Wasm. I just pulled the project and started poking around to see if this is only for web embeddings of Wasm

view this post on Zulip Bailey Hayes (Jun 02 2023 at 01:08):

icu4c is one of the first projects I compiled using emscripten to ams.js back around 2013

view this post on Zulip Bailey Hayes (Jun 02 2023 at 01:09):

While it might compile to wasm, I think it's missing wasi support.

error[E0432]: unresolved import `super::sysrand_chunk`
   --> /Users/bhayes/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/rand.rs:306:16
    |
306 |     use super::sysrand_chunk::chunk;
    |                ^^^^^^^^^^^^^ could not find `sysrand_chunk` in `super`

Last updated: Nov 22 2024 at 16:03 UTC