Date: Tue, 23 Aug 2016 20:53:51 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Bernt Hansson <bah@bananmonarki.se> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: C compiler stopped working Message-ID: <20160823185351.GA2095@slackbox.erewhon.home> In-Reply-To: <a0dbfb8c-7847-1824-9822-5e13c4ea882a@bananmonarki.se> References: <a0dbfb8c-7847-1824-9822-5e13c4ea882a@bananmonarki.se>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160823185351.GA2095>