wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

build_llvm.sh fails with tons of compilation errors on Arch

Open TizWarp opened this issue 4 months ago • 2 comments

I am going to assume I am doing something wrong but I can't seem to find any steps or dependencies I have missed. I have cloned the repo and successfully have the runtime embedded. I was going to quickly compile wamrc but when running build_llvm.sh my terminal is filled with compilation errors.

https://pastebin.com/ZtnhHmMx the output of build_llvm.sh

Again I am assuming I messed up some how but I can't figure out what I did wrong.

TizWarp avatar Sep 02 '25 22:09 TizWarp

I'd recommend using a lower version of the compiler, newer libstdc++ stopped “leaking” the fixed-width integer typedefs into the global namespace unless you explicitly include the right header. Therefore, the error hints at adding #include

TianlongLiang avatar Sep 05 '25 00:09 TianlongLiang

You can fix this by manually inserting #include <cstdint.h> in all the mentioned files.

Zelzahn avatar Sep 19 '25 09:09 Zelzahn