Error when building Clang from SVN tip on Linux

Hi,

I find that when building Clang on this system from SVN tip:

[peter@peter build]$ uname -a
Linux peter.laptop 2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun 13 19:49:05
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

I get the following error message:

llvm[4]: Compiling IdentifierTable.cpp for Debug+Asserts build
llvm[4]: Compiling SourceManager.cpp for Debug+Asserts build
llvm[4]: Compiling TargetInfo.cpp for Debug+Asserts build
llvm[4]: Compiling Targets.cpp for Debug+Asserts build
/home/peter/llvm/tools/clang/lib/Basic/Targets.cpp: In constructor
‘{anonymous}::DarwinTargetInfo<Target>::DarwinTargetInfo(const
string&)’:
/home/peter/llvm/tools/clang/lib/Basic/Targets.cpp:192:49: error:
‘class llvm::Triple’ has no member named ‘getDarwinMajorNumber’
/bin/rm: cannot remove
`/home/peter/build/tools/clang/lib/Basic/Debug+Asserts/Targets.d.tmp':
No such file or directory
make[4]: *** [/home/peter/build/tools/clang/lib/Basic/Debug+Asserts/Targets.o]
Error 1
make[4]: Leaving directory `/home/peter/build/tools/clang/lib/Basic'
make[3]: *** [Basic/.makeall] Error 2
make[3]: Leaving directory `/home/peter/build/tools/clang/lib'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home/peter/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/home/peter/build/tools'
make: *** [all] Error 1
[peter@peter build]$

What's the problem here? Can someone fix it please?

Hi,

I find that when building Clang on this system from SVN tip:

[peter@peter build]$ uname -a
Linux peter.laptop 2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun 13 19:49:05
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

I get the following error message:

hi Peter,

Make sure to keep llvm and clang in synch with each other. This looks like you updated clang but not llvm.

-chris

And by that Chris means use “make update” instead of doing it by hand.

ismail

Hi Chris,