Bug#627131: clang in exp fails to link if only gcc-4.6 is installed

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Tue May 17 20:57:24 UTC 2011


Package: clang
Version: 2.9-1~exp1
Severity: serious
Tags: patch

Clang from experimental (maybe sid as well) fails to work if only
gcc-4.6 is installed:

|clang -o limi limi.c 
|/usr/bin/ld: cannot find crtbegin.o: No such file or directory
|/usr/bin/ld: cannot find -lgcc
|/usr/bin/ld: cannot find -lgcc_s
|clang: error: linker command failed with exit code 1 (use -v to see invocation)

The patch attached fixes the issue by adding 4.6 into the seatch path. A
nicer patch could follow in a few days so we don't have the same problem
with 4.6.2 or 4.7 again :)

Sebastian


More information about the Pkg-llvm-team mailing list