Bug#629861: closed by Sylvestre Ledru <sylvestre at debian.org> (Bug#629861: fixed in clang 2.9-4)

Sylvestre Ledru sylvestre at debian.org
Mon Jun 13 21:26:37 UTC 2011


Le lundi 13 juin 2011 à 17:22 -0400, Anders Kaseorg a écrit :
> On Mon, 13 Jun 2011, Sylvestre Ledru wrote:
> > I wrote this crappy patch:
> > http://anonscm.debian.org/viewvc/pkg-llvm/clang/trunk/debian/patches/14-multiarchi386.diff?revision=64&view=markup
> > it fixes the problem on my system.
> 
> Alright, but that isn’t going to fix the original issue I reported; 
> GccTriple is still "", so it won’t find 
> /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/crtbegin.o on x86_64.
Well, it works for me on my system.

> I certainly agree that piling distro-specific, GCC-version-specific, and 
> arch-specific hacks into ToolChains.cpp is unpleasant; that’s why I think 
> we should make the path be configured and tested at build time.
> 
> GCC does come with an easy way to find the right path, though:
>   $ gcc -print-file-name=crtbegin.o
>   /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtbegin.o
Interesting. Do you know why upstream is not using this ?

Sylvestre







More information about the Pkg-llvm-team mailing list