undefined symbol: __wasi_fd_* on latest-fastcomp

24 views
Skip to first unread message

caiiiycuk

unread,
Oct 29, 2019, 2:05:56 PM10/29/19
to emscripten-discuss
Hi! Recently I updated dosbox to compile both on fastcomp+emterpreter and upstream+asyncify. upstream+asyncify version is default now, but I want to have option to use fastcomp+empterpreter. Now when I try to build fastcomp version I have this errors:
warning: undefined symbol: __wasi_fd_close
warning: undefined symbol: __wasi_fd_fdstat_get
warning: undefined symbol: __wasi_fd_read
warning: undefined symbol: __wasi_fd_seek
warning: undefined symbol: __wasi_fd_write

And typical stack of error:
abort js-dos.js line 1 > eval:8
    ___wasi_fd_write js-dos.js line 1 > eval:8
    ___stdio_write js-dos.js line 1 > WebAssembly.compile:1029969
    ___fwritex js-dos.js line 1 > WebAssembly.compile:706919
    _fwrite js-dos.js line 1 > WebAssembly.compile:75144
    _extract_zip js-dos.js line 1 > WebAssembly.compile:992635
    _extract_zip js-dos.js line 1 > eval:8
    success js-dos-fs.ts:76
    onReadyStateChange js-dos-xhr.ts:102
    onreadystatechange js-dos-xhr.ts:80

where extract_zip is function to extract zip files based on C file api (fopen, fclose, fread).

I missed something?
Thanks

Alon Zakai

unread,
Oct 29, 2019, 3:31:53 PM10/29/19
to emscripte...@googlegroups.com
Is it possible there is an object file or library built with an older version of the compiler?

emcc --clear-cache to rebuild system libs may also help, if the upgrade didn't rebuild them.


--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/fce49bf1-21c9-4d26-a030-9e2f813890eb%40googlegroups.com.

Александр Гурьянов

unread,
Oct 29, 2019, 11:02:38 PM10/29/19
to emscripte...@googlegroups.com
Yeah --clear-cache helped me. Thanks!

ср, 30 окт. 2019 г. в 02:31, Alon Zakai <alon...@gmail.com>:
> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpTO%2BF9w6eSMaEyvbbkwrKaQbxsN82GmxKjU7FV14mME4w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages