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

Rafael Espíndola rafael.espindola at gmail.com
Thu Nov 11 20:46:32 PST 2010


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

Please do. Run the above command with -v -save-temps and include both
the callrealmode.i file and the "clang -cc1" command line.

> Thanks,
> Santosh

Thanks,
Rafael




More information about the cfe-dev mailing list