Builing llvm-gcc error with current trunk

Hello,

I’m trying to re-build llvm-gcc with gcc 4.3.2 on x86 Linux machine and has the following error message during compilation.

…/…/llvm-gcc/gcc/llvm-types.cpp: In function avoid writeLLVMTypesStringTable():
…/…/llvm-gcc/gcc/llvm-types.cpp:198: error: no matching function for call to ‘llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*&, const char [15], llvm::Module*&)’

These are the options that I used for configuration:

…/llvm-gcc/configure --prefix=pwd/…/llvm-gcc-install --program-prefix=llvm- --enable-llvm=/home/wonjeon/llvm --enable-languages=c,c++ --disable-threads --disable-nls --disable-shared

Can anyone help?

Regards,
Won

Hi Won,

I'm trying to re-build llvm-gcc with gcc 4.3.2 on x86 Linux machine and has the following error message during compilation.

if you are using llvm from svn then you need to build llvm-gcc from svn
too.

Ciao,

Duncan.

Thanks. When I also updated llvm-gcc source code from trunk, there is no more compilation issue.

Won