I'm having some troubles building LLVM 3.3 (previously I was using 3.2).
I'm getting a lot of errors in the various architecture support:
In file included from PPCFrameLowering.h:17:0,
from PPCTargetMachine.h:17,
from PPCSelectionDAGInfo.cpp:15:
PPCSubtarget.h:60:49: error: expected class-name before ‘{’ token
PPCSubtarget.h:196:30: error: ‘RegClassVector’ has not been declared
In file included from AArch64Subtarget.cpp:14:0:
AArch64Subtarget.h:29:57: error: expected class-name before ‘{’ token
PPCFrameLowering.h: In member function ‘virtual const
llvm::TargetFrameLowering::SpillSlot*
llvm::PPCFrameLowering::getCalleeSavedSpillSlots(unsigned int&) const’:
PPCFrameLowering.h:138:51: error: ‘X31’ is not a member of ‘llvm::PPC’
I'm using the same configure I did for 3.2 (well, I didn't explicitly
set gcc before):
export REQUIRES_RTTI=1
export REQUIRES_EH=1
export CC=gcc
export CXX=g++
./configure --prefix=/opt/llvm/install --enable-optimized
--enable-shared --enable-libffi --enable-assertions --enable-doxygen
Then I just run:
make