[cfe-dev] clang bootstrap broken on darwin10
Jack Howarth
howarth at bromo.med.uc.edu
Sun Mar 6 13:05:17 PST 2011
On Sun, Mar 06, 2011 at 10:34:34AM -0800, Chris Lattner wrote:
>
> On Mar 5, 2011, at 11:26 AM, Jack Howarth wrote:
>
> > I found the origin of the build failure. It is the habitually
> > leaky buildroot in llvm's projects. I have constantly had to deinstall
> > the prior copies of llvm/clang/llvm-gcc42 before the new builds
> > consistently complete. The problem seems to be that the llvm Makefiles
> > allow the previously installed copies of the llvm shared libraries to be
> > used in later in the builds rather than the newly built copies. I am
> > amazed that this issue isn't run into more often.
>
> I'm not sure what you mean Jack. Can you describe more of what you're doing here?
>
> -Chris
Chris,
Looking through the Makefile scheme in llvm/clang, I can't find any place where
LDFLAGS is passed -L$PROJ_OBJ_ROOT (which I assume would evaluate out to
-L/sw/src/fink.build/llvm-clang-2.8-0/llvm_objdi/Release+Asserts/lib. I assume this needs to be
placed in front of any LDFLAGS passed to the build so that you end up with...
-L/sw/src/fink.build/llvm-clang-2.8-0/llvm_objdi/Release+Asserts/lib -L/sw/lib such
that the newly built libLLVMSupport.a is found before /sw/lib/libLLVMSupport.a from
the older llvm/clang installation.
Jack
More information about the cfe-dev
mailing list