From owner-freebsd-questions@freebsd.org Tue Aug 23 19:18:28 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C76CBC4E75 for ; Tue, 23 Aug 2016 19:18:28 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9DEB01945 for ; Tue, 23 Aug 2016 19:18:25 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id u7NJIM2O063073 for ; Tue, 23 Aug 2016 21:18:23 +0200 (CEST) (envelope-from bah@bananmonarki.se) Subject: Re: C compiler stopped working To: "freebsd-questions@freebsd.org" References: <20160823185351.GA2095@slackbox.erewhon.home> From: Bernt Hansson Message-ID: Date: Tue, 23 Aug 2016 21:18:22 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160823185351.GA2095@slackbox.erewhon.home> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 19:18:28 -0000 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!\