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

build: fix LLVM 18 build on GCC 15

Open XeniaLu opened this issue 4 months ago • 4 comments

See also: referenced LLVM pull requests in patch files.

XeniaLu avatar Oct 03 '25 02:10 XeniaLu

Is this due to some compilation errors raised by GCC 15(or higher only)? Do lower versions of GCC, like GCC 11, encounter the same issues under specific conditions?

lum1n0us avatar Oct 10 '25 02:10 lum1n0us

It's only happening on GCC 15 (and higher, and potentially some corresponding versions of clang): https://github.com/llvm/llvm-project/pull/101761 and https://github.com/llvm/llvm-project/pull/123320

XeniaLu avatar Oct 12 '25 15:10 XeniaLu

Will lower versions of GCC, like GCC 11 (default on Ubuntu 22.04), successfully compile LLVM libraries after applying those (llvm) patches?

lum1n0us avatar Oct 15 '25 05:10 lum1n0us

Yes, it builds on Ubuntu 22.04 (GCC 11) with the same patches.

XeniaLu avatar Oct 15 '25 13:10 XeniaLu