Problem Building llvm-gcc 4.2

Dear All,

I'm getting the following error building mainline llvm-gcc 4.2 (LLVM and llvm-gcc are up to date):

cc1: /home/vadve/criswell/src/llvm22/lib/VMCore/Instructions.cpp:290: void llvm::CallInst::init(llvm::Value*, llvm::Value*): Assertion `(FTy->getNumParams() == 1 || (FTy->isVarArg() && FTy->getNumParams() == 0)) && "Calling a function with bad signature"' failed.

Is anyone else seeing this? I get a similar error when compiling mainline llvm-gcc 4.0.

-- John T.

John Criswell wrote:

Dear All,

I'm getting the following error building mainline llvm-gcc 4.2 (LLVM and
llvm-gcc are up to date):

cc1: /home/vadve/criswell/src/llvm22/lib/VMCore/Instructions.cpp:290:
void llvm::CallInst::init(llvm::Value*, llvm::Value*): Assertion
`(FTy->getNumParams() == 1 || (FTy->isVarArg() && FTy->getNumParams() ==
0)) && "Calling a function with bad signature"' failed.
  
On further inspection, I realized I had updated my LLVM tree but hadn't done a new Release build (only new debug builds). I'll retry with a Release build and see if that fixes it.

-- John T.