Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 21:18:22 +0200
From:      Bernt Hansson <bah@bananmonarki.se>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: C compiler stopped working
Message-ID:  <bf4cc3ee-5214-55eb-8c5b-4aebe3123152@bananmonarki.se>
In-Reply-To: <20160823185351.GA2095@slackbox.erewhon.home>
References:  <a0dbfb8c-7847-1824-9822-5e13c4ea882a@bananmonarki.se> <20160823185351.GA2095@slackbox.erewhon.home>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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!\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bf4cc3ee-5214-55eb-8c5b-4aebe3123152>