Compiling latest clang...

In trying to compile the latest version of clang with the latest version of llvm, I have been getting the compilation error below.
It seems it is not a new issue (see http://permalink.gmane.org/gmane.comp.compilers.llvm.bugs/13921). However, I can’t tell if it’s been resolved or not.
I am working from a Mac OS X 10.6.8.

Could somebody please tell me the latest version of clang that is guaranteed to be working with a latest of llvm?

Thanks,
– Larisse.

Hello,

In trying to compile the latest version of clang with the latest version of llvm, I have been getting the compilation error below.
It seems it is not a new issue (see http://permalink.gmane.org/gmane.comp.compilers.llvm.bugs/13921). However, I can't tell if it's been resolved or not.

According to <http://llvm.org/bugs/show_bug.cgi?id=10261>, it seems to be somewhat in limbo.

I am working from a Mac OS X 10.6.8.

Could somebody please tell me the latest version of clang that is guaranteed to be working with a latest of llvm?

This morning, I got clang+LLVM r135379 from subversion and compiled (and used) it successfully using Mac OS X 10.6.7
and Apple's GCC 4.2.1 build 5666 (part of XCode 3.2.6). I did:

$ make update
$ make clean
$ make

Did you try cleaning the build directory? I once had problems linking after somehow stale object files were left
around.

Hope that helps,
Jonathan

So… ‘make update’ did help the installation from SVN. However, it does not help the installation from the Git mirrors:
git://repo.or.cz/llvm.git
git://repo.or.cz/clang.git

Any one familiar with the trouble from the git mirrors? My project depends on those being synchronized properly… :-/ How are they actually managed if I may ask?

Thanks a bunch!
– Larisse.

What trouble from the git mirrors?

As far as synchronization between clang and llvm - they should almost always be synchronized. They are in different repositories so a commit that needs to happen concurrently to both repositories will happen in sequence, but that should be a matter of minutes at most. There are very few commits like this.

-eric

It looks like I was pulling implementations from conflicting mirrors:
git://repo.or.cz/llvm.git
and
http://llvm.org/git/clang.git

(Strange that it’s worked well so far.)
I am resetting things properly, and I’ll let you know how it goes.

Thanks,
– Larisse.

git://repo.or.cz/llvm.git

Given that we have git mirrors on llvm.org, repo.or.cz mirrors are not
updated for a long time (~5 months already). It's pretty strange that
you haven't noticed this :slight_smile: