On Wed, Jul 27, 2011 at 7:33 PM, Oscar Fuentes <o...@wanadoo.es> wrote:Explicitly declare a library dependency of LLVM*Desc to
LLVM*AsmPrinter.
GenLibDeps.pl fails to detect vtable references. As this is the only
referenced symbol from LLVM*Desc to LLVM*AsmPrinter on optimized
builds, the algorithm that creates the list of libraries to be linked
into tools doesn't know about the dependency and sometimes places the
libraries on the wrong order, yielding error messages like this:Ahh, I see, you handled like this.This really doesn't work. Clearly our automated process is deeply flawed if it can't handle this. Have you been looking at *why* it can't handle it? Are you trying to figure out the root cause?(I have been for the past 2 hours, which is why I haven't committed a fix yet...)
[snip]
> Any objections, shout out now! =D
Yes, I have objections. This was already discussed with Doug on the past
and I won't waste my time rehashing the topic. Just one observation: it
would be a big mistake to not make the same switch on the traditional
build as well. Why? because the automatic library dependency detection
system is the same and because people will not remember to update the
library dependencies in cmake if they are not required to update them in
the makefiles too.
> I'm hoping to do this really really soon as my builds and several
> others are completely broken due to failures not fixed by the patch
> you committed.
If this change fixes problems with the build (as much as I'll like to
see the corresponding bug reports) the Right Thing is to apply it.
I retire from the informal role of maintainer of the cmake build, not in
disgust, but just due to differences of opinion about how the build must
work to provide the best service to its users.
As a LLVM user I will be happy as long as the build works. Otherwise
I'll mail-bomb you with bug reports :-)
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev