Re: Upgrade 7.0 to 7.2 installworld failed - SOLVED

2009-12-26 Thread Colin

On 25/12/2009 00:44, Mel Flynn wrote:

Take the reboot out of the equation and keep  it simple:
su to root
mkdir /usr/testdir
cd /usr/src
env -i make buildworld
env -i make installworld DESTDIR=/usr/testdir

Kernel has nothing to do with installworld target.
   


Taking the reboot out of the equation with the normal process doesn't 
make a difference however using env -i doe thus it must be a setting. 
Can I safely rm /ust/testdir without anything breaking now?


On 25/12/2009 06:36, Igor V. Ruzanov wrote:

These things are for cvsup utility setup and they are not invoked to point
on options responsible for specific system building. Try to add the
following lines to /etc/make.conf:
   
CFLAGS= -O -pipe

NO_FORTRAN= true
NO_OBJC=true
NO_X=   true
NO_GAMES=true
NO_PROFILE=  true

and re-make buildworld, then make installworld.


When I run cvsup it uses a specific supfile anyway that has much the 
same settings, I think the ones in make.conf are there for one of my 
nightly port updating scripts.
Adding the options you have mentioned to make.conf however made no 
difference to the installworld error.


Thus I started playing I took out the following which make it work:

#PERL_VERSION=5.8.9
#BATCH=YES
#CRYPT_DES=0
#WITHOUT_ALT_CONFIG_PREFIX=YES

Take your pick as to which one it was but I thought I'd post back so 
anyone else having the problem can look into it. Its a bit odd that 
moving make.conf aside didn't work though so there must be some other 
stuff in make.conf that is also required to prevent the problem..


Thanks for all the help folks! Now on to the ports...

--

Regards,
Colin Waring,
+44 (0)1704 564047

Southport Computers
Local IT Support
http://www.southportcomputers.co.uk

Southport Web
Web Design and Hosting Services
http://www.southportweb.co.uk

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Colin

Hi folks,
I have started trying to upgrade my 7.0 to 7.2 and it all seemed to be 
going well until I got to installworld.


First off I did a cvsup for src-all from cvsup.ie.freebsd.org with the 
tag RELENG_7_2


I have then done:

cd /usr/src
make buildworld
make kernel-toolchain
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=TED
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=TED
shutdown -r now
mergemaster -p
make installworld

installworld goes through Making hierarchy fine then gets to Installing 
everything and goes:



 Installing everything
--
cd /usr/src; make -f Makefile.inc1 install
=== share/info (install)
=== lib (install)
=== lib/csu/i386-elf (install)
cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/lib/csu/i386-elf/../common 
 -I/usr/src/lib/csu/i386-elf/../../libc/include -Wsystem-headers -Wall 
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual 
-Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter 
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls 
-Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1.c
/usr/src/lib/csu/i386-elf/crt1.c:33:20: error: stdlib.h: No such file or 
directory

In file included from /usr/src/lib/csu/i386-elf/crt1.c:35:
/usr/src/lib/csu/i386-elf/../../libc/include/libc_private.h:184:24: 
error: sys/_types.h: No such file or directory


(Full output at http://www.pastebin.org/68429 )

Both the .h files referenced are in the /usr/src directory

ted# find ./ -name stdlib.h
./cddl/compat/opensolaris/include/stdlib.h
./contrib/bind9/lib/isc/include/isc/stdlib.h
./contrib/bind9/lib/lwres/include/lwres/stdlib.h
./contrib/libstdc++/include/c_compatibility/stdlib.h
./contrib/libstdc++/include/tr1/stdlib.h
./include/stdlib.h

ted# find ./ -name _types.h
./sys/amd64/include/_types.h
./sys/arm/include/_types.h
./sys/i386/include/_types.h
./sys/ia64/include/_types.h
./sys/pc98/include/_types.h
./sys/powerpc/include/_types.h
./sys/sparc64/include/_types.h
./sys/sun4v/include/_types.h
./sys/sys/_types.h

So I did some looking around, someone recommended removing the src 
folders and pulling a fresh copy for someone else that had the same 
problem. I did this to no joy.


So, the only thing that I'm left with is the custom kernel, I haven't 
tried generic as I don't want to be left running with a server and no 
firewall. I am doing this all remotely by SSH so no single user mode.


My kernel conf file is here:

http://www.pastebin.org/68430

I went through the new GENERIC that came down with the cvsup and pulled 
in most of the options and disabled the same devices as with my 7.0 kernel.


So can anyone see something I'm missing in the kernel or is there 
another solution I'm missing?


Thanks,
Colin.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Yuri Pankov
On Thu, Dec 24, 2009 at 03:10:21PM +, Colin wrote:
 Hi folks,
 I have started trying to upgrade my 7.0 to 7.2 and it all seemed to
 be going well until I got to installworld.
 
 First off I did a cvsup for src-all from cvsup.ie.freebsd.org with
 the tag RELENG_7_2
 
 I have then done:
 
 cd /usr/src
 make buildworld

Are you sure that buildworld phase completed successfully? Have you
tried cleaning /usr/obj/ before building world? Have you tried updating
your src tree from different cvsup mirror (cvsup.freebsd.org, just to be
sure)?

 make kernel-toolchain
 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=TED
 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=TED
 shutdown -r now
 mergemaster -p
 make installworld

snip

 Thanks,
 Colin.


Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Igor V. Ruzanov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 24 Dec 2009, Colin wrote:

|Hi folks,
|I have started trying to upgrade my 7.0 to 7.2 and it all seemed to be going
|well until I got to installworld.
|
|First off I did a cvsup for src-all from cvsup.ie.freebsd.org with the tag
|RELENG_7_2
|
|I have then done:
|
|cd /usr/src
|make buildworld
,|make kernel-toolchain
|make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=TED
|make -DALWAYS_CHECK_MAKE installkernel KERNCONF=TED
|shutdown -r now
|mergemaster -p
|make installworld
|
|installworld goes through Making hierarchy fine then gets to Installing
|everything and goes:
|
|
| Installing everything
|--
|cd /usr/src; make -f Makefile.inc1 install
|=== share/info (install)
|=== lib (install)
|=== lib/csu/i386-elf (install)
|cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/lib/csu/i386-elf/../common
|-I/usr/src/lib/csu/i386-elf/../../libc/include -Wsystem-headers -Wall
|-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
|-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings
|-Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
|-Wnested-externs -Wredundant-decls -Wno-pointer-sign -c
|/usr/src/lib/csu/i386-elf/crt1.c
|/usr/src/lib/csu/i386-elf/crt1.c:33:20: error: stdlib.h: No such file or
|directory
|In file included from /usr/src/lib/csu/i386-elf/crt1.c:35:
|/usr/src/lib/csu/i386-elf/../../libc/include/libc_private.h:184:24: error:
|sys/_types.h: No such file or directory
|

Did you edit /etc/make.conf before make buildworld? Its usefull to set 
NO_PROFILE to true to avoid compilation of profiled userland libraries.


+---+
! CANMOS ISP Network!
+---+
! Best regards  !
! Igor V. Ruzanov, network operational staff!
! e-Mail: ig...@canmos.ru   !
+---+
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQFLM5HVbt6QiUlK9twRAimEAJ4/3Jmg15g/AE2M+8w/NSLKpI7QAwCdFK8B
ERNxC5kdl4oMiPTAxXZWyZ0=
=M2WT
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Mel Flynn
On Thursday 24 December 2009 06:10:21 Colin wrote:
 Hi folks,
 I have started trying to upgrade my 7.0 to 7.2 and it all seemed to be
 going well until I got to installworld.
 
 First off I did a cvsup for src-all from cvsup.ie.freebsd.org with the
 tag RELENG_7_2
 
 I have then done:
 
 cd /usr/src
 make buildworld
 make kernel-toolchain
 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=TED
 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=TED
 shutdown -r now

I'm going to guess from the fact that installworld tries to build stuff, that 
/usr/obj is a filesystem that isn't mounted after your reboot or that the 
MAKEOBJDIRPREFIX you had set in your environment before reboot, is unset.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Colin

On 24/12/2009 16:04, Yuri Pankov wrote:

Are you sure that buildworld phase completed successfully? Have you
tried cleaning /usr/obj/ before building world? Have you tried updating
your src tree from different cvsup mirror (cvsup.freebsd.org, just to be
sure)?


Well seen as the output goes on for a long time I've not checked every 
single line of it but there were no errors output.
All the same I have now cleared /usr/obj and done a cvsup from 
cvsup.freebsd.org with the output being captured by tee.

It ends with:

 World build completed on Thu Dec 24 17:41:45 GMT 2009

It hasn't reported any errors and thus should be successful

On 24/12/2009 16:30, Mel Flynn wrote:


I'm going to guess from the fact that installworld tries to build stuff, that
/usr/obj is a filesystem that isn't mounted after your reboot or that the
MAKEOBJDIRPREFIX you had set in your environment before reboot, is unset.
   


/usr/obj is a folder within the /usr partition not its own filesystem 
and /usr is mounted fine so unfortunately for me its nothing as simple 
as that.


As to the prefix, I haven't manually set that anywhere. The buildworld 
log seems to set it during the build as there are several make lines 
with things like MAKEOBJDIRPREFIX=/usr/obj/usr/src/rescue/rescue and 
MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp


On 24/12/2009 16:07, Igor V. Ruzanov wrote:

Did you edit /etc/make.conf before make buildworld? Its usefull to set
NO_PROFILE to true to avoid compilation of profiled userland libraries.
   
No, I didn't see that in any of the upgrade guides that I was following. 
After looking it up I can see mention of it in a rebuilding world doc.


This is my make.conf:

SUP=/usr/local/bin/cvsup
SUPFLAGS=   -g -L 2
SUPHOST=cvsup.FreeBSD.org
SUPFILE=/root/standard-supfile
PORTSSUPFILE=   /root/ports-supfile

#*REMOVE* OPENSSL_OVERWRITE_BASE=NO

# added by use.perl 2009-06-14 11:10:18
PERL_VERSION=5.8.9
BATCH=YES
WITHOUT_X11=YES
SKIP_DNS_CHECK=YES
CRYPT_DES=0
WITH_PORT_REPLACES_BASE_BIND8=YES
WITH_PORT_REPLACES_BASE_BIND9=YES
WITHOUT_ALT_CONFIG_PREFIX=YES
WITH_OPENSSL_PORT=YES
X11BASE=${LOCALBASE}

Can I put NO_PROFILE=TRUE in there now and start again or is it too late 
and does it require other action to correct the problem?


--
Regards,
Colin Waring,
+44 (0)1704 564047

Southport Computers
Local IT Support
http://www.southportcomputers.co.uk

Southport Web
Web Design and Hosting Services
http://www.southportweb.co.uk

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Colin

Ok,
After looking into NO_PROFILE I found that things had been moved to 
src.conf and I didn't have that file.

I made src.conf with the following in it:

WITHOUT_ATM=yes
WITHOUT_BLUETOOTH=yes
WITHOUT_GAMES=yes
WITHOUT_I4B=yes
WITHOUT_IPX=yes
WITHOUT_NCP=yes
WITHOUT_NIS=yes
WITHOUT_SENDMAIL=yes
WITHOUT_INET6=yes
WITHOUT_PROFILE=yes

It had exactly the same result so I'm out of ideas..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Colin

Final update before Christmas.
Still no joy.
I removed my make.conf and dropped back to GENERIC (although I did add 
in IPFILTER, IPFILTER_LOG and QUOTA).

This produced exactly the same result so I don't think its the kernel.

I feel like a giant oak tree that has just been cut down after being 
around for hundreds of years - stumped!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Mel Flynn
On Thursday 24 December 2009 09:47:26 Colin wrote:

 On 24/12/2009 16:30, Mel Flynn wrote:
  I'm going to guess from the fact that installworld tries to build stuff,
  that /usr/obj is a filesystem that isn't mounted after your reboot or
  that the MAKEOBJDIRPREFIX you had set in your environment before reboot,
  is unset.
 
 /usr/obj is a folder within the /usr partition not its own filesystem
 and /usr is mounted fine so unfortunately for me its nothing as simple
 as that.
 
 As to the prefix, I haven't manually set that anywhere. The buildworld
 log seems to set it during the build as there are several make lines
 with things like MAKEOBJDIRPREFIX=/usr/obj/usr/src/rescue/rescue and
 MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp

Take the reboot out of the equation and keep  it simple:
su to root
mkdir /usr/testdir
cd /usr/src
env -i make buildworld
env -i make installworld DESTDIR=/usr/testdir

Kernel has nothing to do with installworld target.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade 7.0 to 7.2 installworld failed

2009-12-24 Thread Igor V. Ruzanov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 24 Dec 2009, Colin wrote:

|No, I didn't see that in any of the upgrade guides that I was following. After
|looking it up I can see mention of it in a rebuilding world doc.
|
|This is my make.conf:
|
|SUP=/usr/local/bin/cvsup
|SUPFLAGS=   -g -L 2
|SUPHOST=cvsup.FreeBSD.org
|SUPFILE=/root/standard-supfile
|PORTSSUPFILE=   /root/ports-supfile
|
These things are for cvsup utility setup and they are not invoked to point 
on options responsible for specific system building. Try to add the 
following lines to /etc/make.conf:

CFLAGS= -O -pipe
NO_FORTRAN= true
NO_OBJC=true
NO_X=   true
NO_GAMES=true
NO_PROFILE=  true

and re-make buildworld, then make installworld.


+---+
! CANMOS ISP Network!
+---+
! Best regards  !
! Igor V. Ruzanov, network operational staff!
! e-Mail: ig...@canmos.ru   !
+---+
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQFLNF1Tbt6QiUlK9twRArvpAKC5hoEkBr2CMVOvvr/Bv7mhw2TaUQCgidcf
lnvA0RDPKNmU/rSUkOzAs8c=
=HGMu
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org