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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Sep 11 11:29:30 PDT 2006


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
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?

Thanks,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amd64.patch
Type: application/octet-stream
Size: 404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060911/052ca249/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.i
Type: application/octet-stream
Size: 78 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060911/052ca249/attachment-0001.obj>


More information about the llvm-dev mailing list