Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 19:14:10 +0200
From:      Bernt Hansson <bah@bananmonarki.se>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   C compiler stopped working
Message-ID:  <a0dbfb8c-7847-1824-9822-5e13c4ea882a@bananmonarki.se>

next in thread | raw e-mail | index | archive | help
Hello list!

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


About a week or so back i did a pkg delete -af
and that broke the C compiler in some strange way.

If i try pkg add /usr/ports/packages/Latest/pkg.txz the error is missing 
signature file.

Moving to /usr/ports/ports-mgmt/pkg and doing a simple make i get this error

root@kw:/usr/ports/ports-mgmt/pkg # make
===>  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
===>  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 
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

Stop in /usr/ports/ports-mgmt/pkg.
*** [/usr/ports/ports-mgmt/pkg/work/.configure_done.pkg._usr_local] 
Error code 1

Stop in /usr/ports/ports-mgmt/pkg.

Then i do

/usr/ports/ports-mgmt/pkg/work/pkg-1.8.7/src/pkg-static info -g -Ea

/usr/ports/ports-mgmt/pkg/work/pkg-1.8.7/src/pkg-static: Command not found.

I've uploaded the config.log to

https://minfil.org/W5tcoab2b5/config.log




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a0dbfb8c-7847-1824-9822-5e13c4ea882a>