[LLVMdev] Compiling bash-3.0 with llvm

xia_nai@yahoo.com.cn xianai at gmail.com
Thu Apr 13 21:51:09 PDT 2006


I run "./configure" with CC=llvm-gcc and got no errors.
When compiling, the llvm-gcc complained about "-lcposix" not found and 
unrecognized option `-rdynamic'.
So I eliminated -lcposix from "LIBS" and replaced -rdynamic 
with --export-dynamic and got a bash.bc with no errors.
However, after I run "lli bash.bc" it terminated with error message below:

malloc: variables.c:460: assertion botched
free: called with unallocated block argument
last command: (null)
Aborting...Aborted

Can anyone kindly help me out of this?
Thanks in advance!




More information about the llvm-dev mailing list