Skip to content

Build error with wasm32-wasi: system `wasi' not recognized #271

Open
@brandonchinn178

Description

I'm trying to build unix with wasm32-wasi-cabal using my new ghc-wasm-backend Docker image, and I'm getting this error:

checking host system type... Invalid configuration `wasm32-wasi': system `wasi' not recognized
configure: error: /bin/bash //tmp/cabal-install.-10744/dist-newstyle/tmp/src-10745/unix-2.8.0.0/config.sub wasm32-wasi failed

Any idea what's wrong?

Repro:

  1. docker pull brandonchinn178/ghc-wasm-backend:2b62739d7e6cc65f444029f252578f2dddb95ce3
  2. docker run --rm -it --entrypoint bash brandonchinn178/ghc-wasm-backend:2b62739d7e6cc65f444029f252578f2dddb95ce3
  3. wasm32-wasi-cabal update
  4. wasm32-wasi-cabal install ormolu --allow-newer='template-haskell' --allow-newer=base --allow-newer=ghc-prim --allow-newer=unix (or install some other library depending on unix)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions