From owner-freebsd-questions@freebsd.org Tue Aug 23 18:55:06 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 47D11BC4700 for ; Tue, 23 Aug 2016 18:55:06 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from lb3-smtp-cloud3.xs4all.net (lb3-smtp-cloud3.xs4all.net [194.109.24.30]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "*.xs4all.nl", Issuer "GlobalSign Domain Validation CA - SHA256 - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D2B3F173E for ; Tue, 23 Aug 2016 18:55:05 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud3.xs4all.net with ESMTP id aitr1t00907iGuj01itshK; Tue, 23 Aug 2016 20:53:52 +0200 Received: from rsmith (uid 1001) (envelope-from rsmith@xs4all.nl) id 123d2 by slackbox.erewhon.home (DragonFly Mail Agent v0.11); Tue, 23 Aug 2016 20:53:51 +0200 Date: Tue, 23 Aug 2016 20:53:51 +0200 From: Roland Smith To: Bernt Hansson Cc: "freebsd-questions@freebsd.org" Subject: Re: C compiler stopped working Message-ID: <20160823185351.GA2095@slackbox.erewhon.home> Mail-Followup-To: Bernt Hansson , "freebsd-questions@freebsd.org" References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.6.1 (2016-04-27) 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 18:55:06 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 23, 2016 at 07:14:10PM +0200, Bernt Hansson wrote: > Hello list! >=20 > FreeBSD 9.3-RELEASE-p43 #0: Sat May 28 00:19:32 UTC 2016 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >=20 >=20 > About a week or so back i did a pkg delete -af > and that broke the C compiler in some strange way. That should not be possible. The compiler is part of the base system. > If i try pkg add /usr/ports/packages/Latest/pkg.txz the error is missing= =20 > signature file. >=20 > Moving to /usr/ports/ports-mgmt/pkg and doing a simple make i get this er= ror >=20 > root@kw:/usr/ports/ports-mgmt/pkg # make > =3D=3D=3D> Configuring for pkg-1.8.7_1 > configure: loading site script /usr/ports/Templates/config.site > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p > checking for gawk... (cached) /usr/bin/awk > checking whether make sets $(MAKE)... yes > checking whether make supports nested variables... yes > checking whether make supports nested variables... (cached) yes > checking whether to enable maintainer-specific portions of Makefiles... no > checking for style of include used by make... GNU > checking for gcc... cc > checking whether the C compiler works... no > configure: error: in `/usr/ports/ports-mgmt/pkg/work/pkg-1.8.7': > configure: error: C compiler cannot create executables > See `config.log' for more details > =3D=3D=3D> Script "configure" failed unexpectedly. > Please report the problem to pkg@FreeBSD.org [maintainer] and attach the > "/usr/ports/ports-mgmt/pkg/work/pkg-1.8.7/config.log" including the output > of the failure of your make command. Also, it might be a good idea to=20 > provide > an overview of all packages installed on your system (e.g. a > /usr/ports/ports-mgmt/pkg/work/pkg-1.8.7/src/pkg-static info -g -Ea). > *** [do-configure] Error code 1 >=20 > Stop in /usr/ports/ports-mgmt/pkg. > *** [/usr/ports/ports-mgmt/pkg/work/.configure_done.pkg._usr_local]=20 > Error code 1 >=20 > Stop in /usr/ports/ports-mgmt/pkg. >=20 > Then i do >=20 > /usr/ports/ports-mgmt/pkg/work/pkg-1.8.7/src/pkg-static info -g -Ea >=20 > /usr/ports/ports-mgmt/pkg/work/pkg-1.8.7/src/pkg-static: Command not foun= d. >=20 > I've uploaded the config.log to >=20 > https://minfil.org/W5tcoab2b5/config.log >=20 =46rom 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-a= liasing -fstack-protector conftest.c >&5 /usr/bin/ld: cannot find -lgcc_s configure:3607: $? =3D 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 --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJXvJu3AAoJEED21dyjijPg6C0P+QGlFTihfGgxVVP5d06Y0vfb 34X0aFimc8MDrvpld9R0xxifDTbqkaDCIdY4QDlQPwU2LVnXlWTg2gS9kn3dQqz5 rmGasE0lAkrq7GWSpJBW9pzxZWL34L32ijq9e0/8OpTiy4fZ48EE+rdUWI3wBemb 2oloCfyCQV0SNwu9N+rdeKUyCwVSRizP3gsC/2GMfSxIz6bpgdqBM4qkwfIhZYLs ii7E8NzzEmUCHf+B8xg9zw4+NzIHGg5JfyYdoQTxiCH8VRd4ik0UVpl3hs6NIbnD +qiESWXZKJdVoM4LYhz63fZXSj3n6Mf6VwPWLjpWmKzAhHAx+I5BYQN5zNkPkHLj PqeIarc+bxiKGICRGYkfjnOAOfpyWt0C+6UjRiB0NrZ7yTNlqjhf3PKTVbEcidDw ibN8RiA3cVgSUluK5qdxBSb53RlprdRxwRoyl8cWQDxEp9rkCqd2jvdQf5sZ7XD5 5/78WDIRCmfpz+jElpYl06khBSzExZgAYdz/kErkHw6w5V3gSSWaEGhDqT+4lHtX 8gpAZNlTFgWQxi/pa0IhUwEp1NMTGfzz3r9GMDa2o5MiEwE/LAUBu3lLUVN7eLSL BFYqgxK7aFKmlrYAVs2A+q/eUgazralq2uciTaxPDpbLNgoSDdH3Iklfai7h5Ehz rvEvrPR7vbxr+l8OWwZf =VInG -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--