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

Anders Kaseorg andersk at MIT.EDU
Mon Jun 13 21:22:39 UTC 2011


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.

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

Anders





More information about the Pkg-llvm-team mailing list