C compiler stopped working

Bernt Hansson bah at bananmonarki.se
Tue Aug 23 17:14:23 UTC 2016


Hello list!

FreeBSD 9.3-RELEASE-p43 #0: Sat May 28 00:19:32 UTC 2016
root at 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 at 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 at 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



More information about the freebsd-questions mailing list