Bug#629594: clang calls linker with wrong args -> crt*.o searched in $pwd
Urs Janssen
urs at tin.org
Tue Jun 7 22:42:45 UTC 2011
Package: clang
Version: 2.9-2
Severity: normal
Tags: sid
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.39-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages clang depends on:
ii libc6 2.13-5 Embedded GNU C Library: Shared lib
ii libffi5 3.0.9-4 Foreign Function Interface library
ii libgcc1 1:4.6.0-11 GCC support library
ii libllvm2.9 2.9+dfsg-1 Low-Level Virtual Machine (LLVM),
ii libstdc++6 4.6.0-11 The GNU Standard C++ Library v3
ii libstdc++6-4.5-dev 4.5.3-1 The GNU Standard C++ Library v3 (d
Versions of packages clang recommends:
ii llvm-2.9-dev 2.9+dfsg-1 Low-Level Virtual Machine (LLVM),
ii python 2.6.6-14 interactive high-level object-orie
clang suggests no packages.
-- no debconf information
chao% clang -v ~/foo.c
clang version 2.9 (tags/RELEASE_29/final)
Target: i386-pc-linux-gnu
Thread model: posix
"/usr/bin/clang" -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name foo.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.21.51.20110421 -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-GkAyyU.o -x c /home/urs/foo.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on i386-pc-linux-gnu
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/bin/../lib/clang/2.9/include
/usr/include
End of search list.
"/usr/bin/ld" --hash-style=both --build-id --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o a.out crt1.o crti.o /usr/lib/gcc/i486-linux-gnu/4.5.2/crtbegin.o -L/usr/lib/gcc/i486-linux-gnu/4.5.2 -L/usr/lib/gcc/i486-linux-gnu/4.5.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.5.2/../../../tmp/cc-GkAyyU.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i486-linux-gnu/4.5.2/crtend.o crtn.o
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see
/invocation)
crt1.o and crti.o are searched in $pwd instead of /usr/lib/i386-linux-gnu/
More information about the Pkg-llvm-team
mailing list