-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLVM Assertion for basic_types->void_ptr_type #244
Comments
test.zip |
@TerryGuo thanks for finding the issue! I tried to build LLVM with debug type, but got crashed in both Ubuntu 18.04 and Ubuntu 16.04. My command is: mkdir -p build Scanning dependencies of target LTO Could you please tell us the build command? thanks a lot. |
@TerryGuo, in aot_llvm.c:691, we just define a void pointer type (like C void*) with LLVMPointerType() function, seems that it isn't supported by LLVM debug mode. The void pointer type is used in some translated LLVM IRs, it should be OK to replace them with int8 pointer type, we will fix it soon. |
@wenyongh the build failure is caused by out of memory. Please reduce the number of build jobs, saying make -j6 |
If warm-compiler is built with LLVM that was built in Debug type, then we will get following LLVM assertion when using wamr-compiler:
Dig this problem with gdb, got below info:
Seems it is related to
/etc/llvm-build/wasm-micro-runtime/core/iwasm/compilation/aot_llvm.c:691
Would you please look into it?
The text was updated successfully, but these errors were encountered: