[LLVMdev] trying to build llvm-gcc in linux/amd64

Chris Lattner sabre at nondot.org
Mon Sep 11 14:44:35 PDT 2006


On Mon, 11 Sep 2006, [UTF-8] Rafael Esp?ndola wrote:
> I am trying to build llvm-gcc4 on a amd64. I had to add the attached
> patch to get the build system to select the correct library. Now the

Applied.

> build fails while compiling a code that has __builtin_va_copy. The
> attached test.i fails with:
>
> cc1: ../../trunk/gcc/llvm-convert.cpp:443: llvm::Value*
> TreeToLLVM::Emit(tree_node*, llvm::Value*): Assertion
> `(isAggregateType(((exp)->common.type)) == (DestLoc != 0) || ((enum
> tree_code) (exp)->common.code) == MODIFY_EXPR) && "Didn't pass DestLoc
> to an aggregate expr, or passed it to scalar!"' failed.
>
> I know that linux/amd64 is not currently supported, but does someone
> knows how to fix this?

Can you gdb cc1, run until the assertion, then mail the output of "call 
debug_tree(exp)"?  Also, can you include a stack trace with line numbers 
as well?

Thanks,

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list