[cfe-dev] Error: /usr/bin/ld: cannot find -lgcc_s

Santosh Nagarakatte santosh.nagarakatte at gmail.com
Thu Nov 11 20:40:06 PST 2010


Thanks. Yes that was fixed. However, clang still does not compile the
hypervisor.

When I compile the callrealmode.c (in attached directory), clang gives
the following error.

callrealmode.c:62:3: error: invalid instruction mnemonic 'lretq'
                "push %%rax\n"
                ^
<inline asm>:20:1: note: instantiated into assembly here
lretq
^
callrealmode.c:62:3: error: warning: ignoring directive for now
                "push %%rax\n"
                ^
<inline asm>:21:1: note: instantiated into assembly here
.code32
^
callrealmode.c:62:3: error: instruction requires a CPU feature not
currently enabled
                "push %%rax\n"


However, just replace clang with gcc works. I used the following
commandline to compile the flags.

 clang -m64 -mno-red-zone -g -O -nostdinc -fno-builtin -Wall
-DCPU_MMU_SPT_3 -DCPU_MMU_SPT_USE_PAE -DF12MSG -DDBGSH -DCRYPTO_VPN
-DACPI_DSDT -DDISABLE_SLEEP -DENABLE_ASSERT -DCARDSTATUS -DIDMAN
-DVPN_VE -DTTY_PRO1000 -DDISABLE_TCG_BIOS -DACPI_TIME_SOURCE -DUSE_PAE
 -Iinclude -fno-stack-protector -mno-sse   -c -o callrealmode.o
callrealmode.c


Any suggestions? Should I file a bug report?

Thanks,
Santosh

2010/11/11 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:
> 2010/11/11 Santosh Nagarakatte <santosh.nagarakatte at gmail.com>:
>> I am using Ubuntu 10.10 maverick with Linux kernel 2.6.35-22-generic on
>> x86_64
>
> I think this was fixed on 118878. Let me know if you have any problems.
>
>> Thanks,
>> Santosh
>
> Cheers,
> Rafael
>



-- 
Santosh G Nagarakatte,
PhD Student,
Computer and Information Science Department
University of Pennsylvania,
Philadelphia-19104
http://www.cis.upenn.edu/~santoshn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.tar.gz
Type: application/x-gzip
Size: 49221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101111/8568a07c/attachment.bin>


More information about the cfe-dev mailing list