C compiler stopped working

Bernt Hansson bah at bananmonarki.se
Tue Aug 23 19:18:28 UTC 2016


On 2016-08-23 20:53, Roland Smith wrote:
>  From the log file, the linker cannot find libgcc_s:
>
>      configure:3581: checking whether the C compiler works
>      configure:3603: cc -O2 -pipe -Wno-error -fstack-protector -fno-strict-aliasing
>          -fstack-protector conftest.c  >&5
>      /usr/bin/ld: cannot find -lgcc_s
>      configure:3607: $? = 1
>      configure:3645: result: no
>
> Verify that you still have /lib/libgcc_s.so.1 and /usr/lib/libgcc_s.so (the
> latter should be a link to the former):
>
>      > ls -l /lib/libgcc_s.* /usr/lib/libgcc_s*
>      -r--r--r--  1 root  wheel  56344 Jun 26 11:37 /lib/libgcc_s.so.1
>      lrwxr-xr-x  1 root  wheel     18 Jun 26 11:37 /usr/lib/libgcc_s.so@ -> /lib/libgcc_s.so.1
>
> If the symbolic link is missing, you can easily recreate that.
> If the library has gone missing, restore it from a backup.
>
> Roland
Mine looks like this, so i'm

root at kw:/lib # ls -l /lib/libgcc_s.* /usr/lib/libgcc_s*
lrwxr-xr-x  1 root  wheel     34 Jul 17  2015 /lib/libgcc_s.so.1 -> 
/usr/local/lib/gcc48/libgcc_s.so.1
-r--r--r--  1 root  wheel  59728 Feb 18  2015 /lib/libgcc_s.so.1-bak
lrwxr-xr-x  1 root  wheel     18 Feb 18  2015 /usr/lib/libgcc_s.so -> 
/lib/libgcc_s.so.1

renaming the *bak file.

Thank you Roland!\


More information about the freebsd-questions mailing list