Surma

Results 164 comments of Surma

@sbc100 Wondering if you have an idea on how to solve this? (Is Emscripten’s libc++ patched to handle this differently somehow?)

I just re-built wasi-sdk `master` branch and my repro above still emits a wasm binary that expects `wasi_snapshot_preview1::{fd_close, fd_seek, fd_write}` imports. Am I doing something wrong when compiling wasi-sdk or...

I am not quite sure how to get meaningful output from the symbol trace: ``` $ clang++ --target=wasm32-wasi -O0 -Wl,--trace-symbol=__wasi_fd_read -flto -Wl,--lto-O3 -fno-exceptions --sysroot=$WASI_SDK/share/wasi-sysroot -o test.wasm ./test.cpp $WASI_SDK/share/wasi-sysroot/lib/wasm32-wasi/libc.a: lazy definition...

I don’t mean to nag, but I do want to find a solution to this :D Is there anything else I can provide to isolate what the cause is? Is...

Yeah, `abort_message` seems to be the reason that this gets compiled, which I think `twiggy` also kinda confirmed. I was more looking for insight _what to do about it_. Looking...

After looking into it a bit more, it seems that [`LIBCXX_ENABLE_ASSERTIONS` is enabled by default](https://github.com/llvm/llvm-project/blob/c9e9635ffef781c32a839a77d122d7930edfc9b2/libcxxabi/CMakeLists.txt#L83) which in turn [forces `NDEBUG` to be unset](https://github.com/llvm/llvm-project/blob/c9e9635ffef781c32a839a77d122d7930edfc9b2/libcxxabi/CMakeLists.txt#L373-L382), which means the `#ifdef` is _always_ true...

Yeah, for this _specific_ issue, you need to both disable assertions and enable baremetal. I also don’t quite understand what baremetal entails exactly, but I feel like disabling assertions _in...

To be clear: Disabling assertions by default _wouldn’t_ remove these error message. For that, developers would _also_ have to opt in to baremetal. I agree that we shouldn’t disable these...

`LIBCXXABI_SILENT_TERMINATE` seems like a perfect fit to me (an outsider). Gonna leave that up to y’all with more knowledge about libcxxabi :D Thanks for all the help tracking this down...

I’ll gladly take a look a look/a part once I’m at peace with my current project