Bug#642278: clang failed to build a C source file when linking
Hong Xu
xuhdev at gmail.com
Wed Sep 21 01:30:54 UTC 2011
Package: clang
Version: 2.9-11
Severity: important
Dear Maintainer,
*** Please consider answering these questions, where appropiate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
Save the following lines as tmp.c:
int main()
{
return 0;
}
$ clang tmp.c
* What was the outcome of this action?
The output is:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/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)
* What outcome did you expect instead?
The compilation should be successful.
*** End of the template - remove these lines ***
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages clang depends on:
ii libc6 2.13-18
ii libffi5 3.0.10~rc10-3
ii libgcc1 1:4.6.1-4
ii libllvm2.9 2.9+dfsg-3
ii libstdc++6 4.6.1-4
ii libstdc++6-4.6-dev 4.6.1-4
Versions of packages clang recommends:
ii llvm-2.9-dev <none>
ii python 2.6.7-3
clang suggests no packages.
-- no debconf information
More information about the Pkg-llvm-team
mailing list