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
>From d647c10b5201fd593cdd748fd6c26554786b1427 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior <[email protected]> Date: Tue, 17 May 2011 22:50:10 +0200 Subject: [PATCH] clang: compile with gcc-4.6 as host Signed-off-by: Sebastian Andrzej Siewior <[email protected]> --- tools/clang/lib/Driver/ToolChains.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/clang/lib/Driver/ToolChains.cpp b/tools/clang/lib/Driver/ToolChains.cpp index dc35a33..ca1942b 100644 --- a/tools/clang/lib/Driver/ToolChains.cpp +++ b/tools/clang/lib/Driver/ToolChains.cpp @@ -1449,7 +1449,8 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple) GccTriple = "i586-suse-linux"; } - const char* GccVersions[] = {"4.5.2", "4.5.1", "4.5", "4.4.5", "4.4.4", + const char* GccVersions[] = {"4.6", "4.6.1", + "4.5.2", "4.5.1", "4.5", "4.4.5", "4.4.4", "4.4.3", "4.4", "4.3.4", "4.3.3", "4.3.2", "4.3", "4.2.4", "4.2.3", "4.2.2", "4.2.1", "4.2"}; -- 1.7.5.1

