[LLVMbugs] [Bug 10935] New: Clang cannot find system libraries on Ubuntu 11.4
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Sep 15 12:08:42 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10935
Summary: Clang cannot find system libraries on Ubuntu 11.4
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: scshunt at csclub.uwaterloo.ca
CC: llvmbugs at cs.uiuc.edu
scshunt at overthere:~/code/c++/llvm-build$ clang -x c - -v
clang version 3.0 ()
Target: i386-pc-linux-gnu
Thread model: posix
"/home/scshunt/usr/bin/clang-3.0" -cc1 -triple i386-pc-linux-gnu -emit-obj
-mrelax-all -disable-free -main-file-name - -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4
-momit-leaf-frame-pointer -v -resource-dir
/home/scshunt/usr/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 276
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-cuPGrM.o -x c -
clang -cc1 version 3.0 based upon llvm 3.0 hosted on i386-pc-linux-gnu
ignoring nonexistent directory "/usr/include/x86_64-linux-gnu/32"
ignoring nonexistent directory "/usr/include/i686-linux-gnu"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/scshunt/usr/bin/../lib/clang/3.0/include
/usr/include
End of search list.
"/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 -o a.out /usr/lib/../lib/crt1.o
/usr/lib/../lib/crti.o crtbegin.o -L -L/../../../../lib -L/lib/../lib
-L/usr/lib/../lib -L/../../.. -L/usr/lib/ /tmp/cc-cuPGrM.o -lgcc --as-needed
-lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crtend.o
/usr/lib/../lib/crtn.o
/usr/bin/ld: error: cannot open crtbegin.o: No such file or directory
/usr/bin/ld: error: cannot open crtend.o: No such file or directory
/usr/bin/ld: error: cannot find -lgcc
/usr/bin/ld: error: cannot find -lgcc_s
/usr/bin/ld: error: cannot find -lc
/usr/bin/ld: error: cannot find -lgcc
/usr/bin/ld: error: cannot find -lgcc_s
/usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0xc): error: undefined reference to
'__libc_csu_fini'
/usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0x11): error: undefined reference to
'__libc_csu_init'
/usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0x18): error: undefined reference to
'main'
/usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0x1d): error: undefined reference to
'__libc_start_main'
clang-3: error: linker command failed with exit code 1 (use -v to see
invocation)
scshunt at overthere:~/code/c++/llvm-build$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list