[LLVMbugs] Build is broken

Anton Korobeynikov asl at math.spbu.ru
Thu Nov 29 08:07:52 PST 2007

Hello, Everyone.

The error message listed here:

seems to be specific to all gcc 3.x compilers (At least it looks so,
verified with 3.4.6 and 4.2 on x86-32/linux).

The workaround is:

diff --git a/include/llvm/CodeGen/MachineLoopInfo.h
index 1f6b1a1..ca05e01 100644
--- a/include/llvm/CodeGen/MachineLoopInfo.h
+++ b/include/llvm/CodeGen/MachineLoopInfo.h
@@ -71,9 +71,6 @@ bool LoopBase<MachineBasicBlock>::isLCSSAForm() const
   return false;
-EXTERN_TEMPLATE_INSTANTIATION(class LoopBase<MachineBasicBlock>);
-EXTERN_TEMPLATE_INSTANTIATION(class LoopInfoBase<MachineBasicBlock>);
 typedef LoopBase<MachineBasicBlock> MachineLoop;
 class MachineLoopInfo : public MachineFunctionPass {

However, I don't think it's correct.

With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.

More information about the llvm-bugs mailing list