Building library 'nonthreaded-nodebug' for rts-1.0.3...
wasm-ld: error: symbol type mismatch: stg_ap_pv_info
>>> defined as WASM_SYMBOL_TYPE_DATA in /home/hasufell/git/ghc/_build/stage3/wasm32-unknown-wasi/build/host/wasm32-wasi/ghc-9.14/rts-1.0.3-nonthreaded-nodebug/build/nonthreaded-nodebug/RaiseAsync.dyn_o
>>> defined as WASM_SYMBOL_TYPE_FUNCTION in /home/hasufell/git/ghc/_build/stage3/wasm32-unknown-wasi/build/host/wasm32-wasi/ghc-9.14/rts-1.0.3-nonthreaded-nodebug/build/nonthreaded-nodebug/Exception.dyn_o
wasm-ld: error: symbol type mismatch: stg_BLACKHOLE_info
>>> defined as WASM_SYMBOL_TYPE_DATA in /home/hasufell/git/ghc/_build/stage3/wasm32-unknown-wasi/build/host/wasm32-wasi/ghc-9.14/rts-1.0.3-nonthreaded-nodebug/build/nonthreaded-nodebug/Messages.dyn_o
>>> defined as WASM_SYMBOL_TYPE_FUNCTION in /home/hasufell/git/ghc/_build/stage3/wasm32-unknown-wasi/build/host/wasm32-wasi/ghc-9.14/rts-1.0.3-nonthreaded-nodebug/build/nonthreaded-nodebug/StgMiscClosures.dyn_o
wasm-ld: error: symbol type mismatch: stg_marked_upd_frame_info
>>> defined as WASM_SYMBOL_TYPE_DATA in /home/hasufell/git/ghc/_build/stage3/wasm32-unknown-wasi/build/host/wasm32-wasi/ghc-9.14/rts-1.0.3-nonthreaded-nodebug/build/nonthreaded-nodebug/ThreadPaused.dyn_o
>>> defined as WASM_SYMBOL_TYPE_FUNCTION in /home/hasufell/git/ghc/_build/stage3/wasm32-unknown-wasi/build/host/wasm32-wasi/ghc-9.14/rts-1.0.3-nonthreaded-nodebug/build/nonthreaded-nodebug/Updates.dyn_o
wasm32-wasi-clang: error: linker command failed with exit code 1 (use -v to see invocation)
`wasm32-wasi-clang' failed in phase `Linker'. (Exit code: 1)
Reproduce:
git clone https://github.com/stable-haskell/ghc.git&&git submodule update --initgit checkout stable-ghc-9.14make CABAL=_build/stage0/bin/cabal stage2source ~/.ghc-wasm/env!~/.ghc-wasm/envto only include the PATH changes and source itmake CABAL=_build/stage0/bin/cabal stage3-wasm32-unknown-wasiResult should be something like:
Motivation: test the https://gitlab.haskell.org/ghc/ghc/-/commit/867c26755e8855c6df949e65df0c2aebc9da64c3 change and whether that resolves the recursive loading issues.