Solved Issue after upgrade from 9.3 to 10.0

Hi all,

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.
 
Why did you go for 10.0-RELEASE? It's been end-of-life longer than 9.3-RELEASE. And there's no need for 10.0 -> 10.1 -> 10.2 -> 10.3 upgrade path, you can upgrade directly to 10.3.
 
Hi,
yes, you are right, but now I already upgraded base system to 10.0-RELEASE.
According to release notes, I need to recompile my ports first and the repeat freebsd-update install command.
In your opinion, can I upgrade to 10.3 at this stage?
Thank you
 
In your opinion, can I upgrade to 10.3 at this stage?
Yeah, that's what I would try. Forget about the ports for now and try to get the system itself in a correct state. Hopefully the upgrade to 10.3 will fix the compiler issues.
 
Hi,
unfortunately, I get same error:

Code:
===>  Cleaning for pkg-1.9.4_1
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
===>  License BSD2CLAUSE accepted by the user
===> 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

Thank you
 
Did you exclude things in /etc/freebsd-update.conf?
 
Hi, this is my /etc/freebsd-update.conf

Code:
# grep -v ^# /etc/freebsd-update.conf

KeyPrint 800651ef4b4c71c27e60786d7b487188970f4b4169cc055784e21eb71d410cc5

ServerName update.FreeBSD.org

Components src world kernel


IgnorePaths /boot/kernel/linker.hints
IgnorePaths /etc/ntp.conf
IgnorePaths /etc/snmpd.config
IgnorePaths /etc/mtree/BSD.usr.dist
IgnorePaths /var/db/mergemaster.mtree

IDSIgnorePaths /usr/share/man/cat
IDSIgnorePaths /usr/share/man/whatis
IDSIgnorePaths /var/db/locate.database
IDSIgnorePaths /var/log

UpdateIfUnmodified /etc/ /var/ /root/ /.cshrc /.profile

MergeChanges /etc/ /boot/device.hints
 
I just noticed that I am able to compile new kernel.
I fetched and extracted src (from 10.3-RELEASE) and now kernel is building (I made very few changes to config, just to make a test).
Anyway, I am still unable to compile a very basic C program.
How is it possible?

According to my previous post, I figuerd that in the past I excluded /boot/kernel/linker.hints in freebsd-update.conf, please refer to:

https://lists.freebsd.org/pipermail/freebsd-questions/2013-May/250989.html

is this a potentially issue with my problem?
Thank you
 
Back
Top