[cfe-dev] Error when building Clang from SVN tip on Linux

Chris Lattner clattner at apple.com
Sat Jul 9 09:30:02 PDT 2011


On Jul 9, 2011, at 3:47 AM, Peter Geoghegan wrote:

> Hi,
> 
> I find that when building Clang on this system from SVN tip:
> 
> [peter at 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

> 
> 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 at peter build]$
> 
> What's the problem here? Can someone fix it please?
> 
> -- 
> Peter Geoghegan       http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training and Services
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list