[LLVMbugs] [Bug 11298] New: unable to find crtbegin.o, lgcc, lgcc_s on my host/platform Gentoo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 2 10:40:59 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=11298

             Bug #: 11298
           Summary: unable to find crtbegin.o, lgcc, lgcc_s on my
                    host/platform Gentoo
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jreidthompson at nc.rr.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


unable to find crtbegin.o, lgcc, lgcc_s on my host/platform Gentoo
$ clang --version
clang version 3.1 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix

[13:34:59] rthompso at raker2>~
$ uname -a
Linux raker2 2.6.39-gentoo-r3 #6 SMP Wed Aug 31 20:32:00 EDT 2011 x86_64
Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz GenuineIntel GNU/Linux

[13:35:11] rthompso at raker2>~ 
$ cat /etc/lsb-release 
DISTRIB_ID="Gentoo"

[13:35:14] rthompso at raker2>~ 
$ cat /etc/gentoo-release 
Gentoo Base System release 2.0.3

[13:35:20] rthompso at raker2>~  
$ clang query-gcal-updated-events.c 
query-gcal-updated-events.c:24:13: warning: comparison between pointer and
integer ('int' and 'void *')
        if (result != NULL)
            ~~~~~~ ^  ~~~~
query-gcal-updated-events.c:31:13: warning: comparison between pointer and
integer ('int' and 'void *')
        if (result != NULL)
            ~~~~~~ ^  ~~~~
2 warnings generated.
/usr/bin/x86_64-pc-linux-gnu-ld: cannot find crtbegin.o: No such file or
directory
/usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lgcc
/usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lgcc_s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

$ locate crtbegin.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/crtbegin.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/32/crtbegin.o

$ locate libgcc
/lib32/libgcc_s.so.1
/lib64/libgcc_s.so.1
/usr/lib64/libgccpp.a
/usr/lib64/libgccpp.la
/usr/lib64/libgccpp.so
/usr/lib64/libgccpp.so.1
/usr/lib64/libgccpp.so.1.0.3
/usr/lib64/debug/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libgcc_s.so.1.debug
/usr/lib64/debug/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/32/libgcc_s.so.1.debug
/usr/lib64/debug/usr/lib64/libreoffice/ure/lib/libgcc3_uno.so.debug
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/libgcc.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/libgcc_eh.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/libgcc_s.so
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/libgcc_s.so.1
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/32/libgcc.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/32/libgcc_eh.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/32/libgcc_s.so
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/32/libgcc_s.so.1

-- 
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