Hi all,
I am trying to upgrade my (virtual, VMware) FreeBSD 9.3-RELEASE to 10.0-RELEASE.
I successfully ran
Now it is time to recompile ports.
I used this command (I use ports):
First of all, I get tons of those warnings:
I read that this issue will be auto-fixed after upgrade of pkg port.
Anyway, I get this error:
I also noticed that I am unable to compile a very "hello world" C program:
can you help me to fix upgrade issue on my system?
Thank you very much.
I am trying to upgrade my (virtual, VMware) FreeBSD 9.3-RELEASE to 10.0-RELEASE.
I successfully ran
freebsd-update install
, reboot
, and freebsd-update install
again.Now it is time to recompile ports.
I used this command (I use ports):
portmaster -afG
First of all, I get tons of those warnings:
Code:
pkg-static: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended
I read that this issue will be auto-fixed after upgrade of pkg port.
Anyway, I get this error:
Code:
===> Fetching all distfiles required by pkg-1.9.4_1 for building
===> Extracting for pkg-1.9.4_1
===> License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by pkg-1.9.4_1 for building
=> SHA256 Checksum OK for pkg-1.9.4.tar.xz.
===> Patching for pkg-1.9.4_1
===> Applying FreeBSD patches for pkg-1.9.4_1
===> Configuring for pkg-1.9.4_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... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/usr/ports/ports-mgmt/pkg/work/pkg-1.9.4':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
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.9.4/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.9.4/src/pkg-static info -g -Ea).
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1
Stop.
make: stopped in /usr/ports/ports-mgmt/pkg
===>>> make build failed for ports-mgmt/pkg
===>>> Aborting update
===>>> Update for pkg-1.9.4_1 failed
===>>> Aborting update
===>>> Update for pkgconf-1.1.0 failed
===>>> Aborting update
===>>> Update for x11/bigreqsproto failed
===>>> Aborting update
I also noticed that I am unable to compile a very "hello world" C program:
Code:
# cat prova.c
#include<stdio.h>
main()
{
printf("Hello World");
}
~# cc prova.c
In file included from prova.c:1:
In file included from /usr/include/stdio.h:41:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:6:10: fatal error: 'x86/_types.h' file not found
#include <x86/_types.h>
^
1 error generated.
can you help me to fix upgrade issue on my system?
Thank you very much.