build_llvm.sh fails with tons of compilation errors on Arch
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.
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
You can fix this by manually inserting #include <cstdint.h> in all the mentioned files.