Re: 5.4 - 6.0 buildworld failure

2006-02-09 Thread Anthony Chavez
On Mon, 06 Feb 2006 14:13:13 +0100 Markus Buretorp [EMAIL PROTECTED] wrote:

 For me, the problem was caused by some stupid envvars I had
 in my shell config. I removed these and the problem was solved.

 export INCLUDE_PATH=/usr/include:/usr/local/include export
 C_INCLUDE_PATH=/usr/include:/usr/local/include:/usr/X11R6/include
 export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH export
 LIBRARY_PATH=/usr/lib:/usr/local/lib export LD_LIBRARY_PATH=. 

Thanks for the info, Markus.  I didn't have anything of the sort in my
shell config, but fortunately after I upgraded to 5.4-RELEASE-p11, I
executed a successful buildworld for 6.0-RELEASE.

Cheers!

-- 
Anthony Chavez http://anthonychavez.org/
mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]


pgp3vMMxaRaGG.pgp
Description: PGP signature


Re: 5.4 - 6.0 buildworld failure

2006-02-06 Thread Anthony Chavez
Markus and freebsd-stable:

I have encountered a situation exactly the same as the one described in
this thread when attempting a source upgrade from 5.4-RELEASE-p4 to
6.0-RELEASE-p4.

I have had nothing but success on 10 other machines that were initially
running 5.4-RELEASE, 5.4-RELEASE, -p6, and -p8.  Each of these machines
has a unique hardware configuration, and the one that fails to
buildworld is no exception.

I have tried an empty /etc/make.conf as well as specifically including
CFLAGS=-O -pipe therein.  I have also tried a default /etc/profile.
The build still fails.

I'm thinking that the best course of action might be to upgrade to
5.4-RELEASE-p11 (which builds successfully), but I'm very interested to
know what's causing this error in case my intended course of action
doesn't work.  The commit logs show no changes for this particular file
since well before this problem was reported, so the problem must have
lied somewhere else in the source tree.

Any ideas what could be causing this?  Am I on the right track?  I have
included my dmesg.boot below.

Cheers!

On Sat, 05 Nov 2005 23:49:34 +0100 Markus Buretorp [EMAIL PROTECTED] wrote:

 Peter Jeremy wrote:

On Sat, 2005-Nov-05 21:17:58 +0100, Markus Buretorp wrote:
  
 I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a
 cvsup to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make
 clean, rm -rf /usr/obj/*, etc; but nothing helps.

...

  /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev'
  isn't known

Where is this error occurring during the buildworld?  (What are the
latest lines beginning '' and '===')
What non-standard bits do you have in your command line, /etc/make.conf
or MAKEOBJDIRPREFIX?

   stage 4.2: building libraries
 ...
 === lib/libkvm (depend,all,install)

 make.conf:

 WITHOUT_X11=yes
 CPUTYPE?=athlon-xp
 CFLAGS=-O2 -pipe
 COPTFLAGS=-O -pipe
 # added by use.perl 2005-06-24 23:01:50
 PERL_VER=5.8.7
 PERL_VERSION=5.8.7

 Note, I've tried without the first four lines.

 $ cd lib/libkvm
 /usr/src [EMAIL PROTECTED]
 $ make
 ...r/src/lib/libkvm [EMAIL PROTECTED]
 cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c
 /usr/src/lib/libkvm/kvm_proc.c
 /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist':
 /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev'
 isn't known
 /usr/src/lib/libkvm/kvm_proc.c:114: error: storage size of 'pr'
 isn't known
 /usr/src/lib/libkvm/kvm_proc.c:176: error: structure has no member
 named `ki_jid'
 /usr/src/lib/libkvm/kvm_proc.c:377: error: structure has no member
 named `p_rux'
 *** Error code 1

 Stop in /usr/src/lib/libkvm.

 I found this, http://www.freebsd.org/cgi/query-pr.cgi?pr=77821 , but
 it doesn't help me much. I don't now what I've done. I've used cvsup
 and buildworld several times.

-- 
Anthony Chavez http://anthonychavez.org/
mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]

--8---cut here---start-8---
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.4-RELEASE-p4 #1: Sun Sep 11 20:13:50 MDT 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYBOX
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3010.67-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Hyperthreading: 2 logical CPUs
real memory  = 1073414144 (1023 MB)
avail memory = 1040855040 (992 MB)
ACPI APIC Table: A M I  OEMAPIC 
ioapic0 Version 2.0 irqs 0-23 on motherboard
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: A M I OEMRSDT on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
Timecounter ACPI-safe frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 28.0 on pci0
pci2: ACPI PCI bus on pcib1
uhci0: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A port 0xb880-0xb89f 
irq 23 at device 29.0 on pci0
usb0: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 

Re: 5.4 - 6.0 buildworld failure

2005-11-06 Thread Markus Buretorp

Markus Buretorp wrote:


Hello,

I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a 
cvsup to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make 
clean, rm -rf /usr/obj/*, etc; but nothing helps.


This is the error

   cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm  -c
   /usr/src/lib/libkvm/kvm_getloadavg.c
   cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm  -c
   /usr/src/lib/libkvm/kvm_getswapinfo.c
   cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm  -c
   /usr/src/lib/libkvm/kvm_proc.c
   /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist':
   /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev'
   isn't known
   /usr/src/lib/libkvm/kvm_proc.c:114: error: storage size of 'pr'
   isn't known
   /usr/src/lib/libkvm/kvm_proc.c:176: error: structure has no member
   named `ki_jid'
   /usr/src/lib/libkvm/kvm_proc.c:377: error: structure has no member
   named `p_rux'
   *** Error code 1

   Stop in /usr/src/lib/libkvm.
   *** Error code 1

   Stop in /usr/src.
   *** Error code 1

   Stop in /usr/src.
   *** Error code 1

   Stop in /usr/src.
   *** Error code 1

   Stop in /usr/src.

Some info

   FreeBSD jmb.mine.nu 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Aug 15
   21:16:37 CEST 2005   
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386



Regards,
Markus

Ok, I solved it. I had some stupid exports (INCLUDE_PATH etc) in my 
shell config.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.4 - 6.0 buildworld failure

2005-11-05 Thread Chris
Markus Buretorp wrote:
 Hello,
 
 I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a cvsup
 to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make clean, rm -rf
 /usr/obj/*, etc; but nothing helps.
 
 This is the error
 

I'm not entirely sure why so many users have so much troube upgrading.
The process is outlined well on the FBSD site and to surmise:

Assuming you have done your cvsup of the src tree:

# cd /usr/src/usr.sbin/mergemaster
# ./mergemaster.sh -p

Drop to Single User Mode:
As the superuser, you can execute:

# shutdown now

from a running system, which will drop it to single user mode.
Alternatively, reboot the system, and at the boot prompt,
enter the -s flag. The system will then boot single user.
At the shell prompt you should then run:

# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# cd /usr/obj
# chflags -R noschg *
# rm -rf *

# cd /usr/src

# make buildworld

# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

# shutdown now

# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# cd /usr/src
# make installworld

# shutdown -r now

Done.

-- 
Best regards,
Chris

Nature always sides with the hidden flaw.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.4 - 6.0 buildworld failure

2005-11-05 Thread Peter Jeremy
On Sat, 2005-Nov-05 21:17:58 +0100, Markus Buretorp wrote:
I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a cvsup 
to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make clean, rm -rf 
/usr/obj/*, etc; but nothing helps.
...
   /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev'
   isn't known

I've just done a buildworld of RELENG_6 on 5.3 without problems so I
suspect it's something you've done.  It looks very much like
kvm_proc.c is being built using the wrong include files - the ones in
/usr/include/sys rather than the ones in /usr/src/sys/sys.

Where is this error occurring during the buildworld?  (What are the
latest lines beginning '' and '===')
What non-standard bits do you have in your command line, /etc/make.conf
or MAKEOBJDIRPREFIX?

-- 
Peter Jeremy
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.4 - 6.0 buildworld failure

2005-11-05 Thread Markus Buretorp

Peter Jeremy wrote:


On Sat, 2005-Nov-05 21:17:58 +0100, Markus Buretorp wrote:
 

I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a cvsup 
to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make clean, rm -rf 
/usr/obj/*, etc; but nothing helps.
   


...
 


 /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev'
 isn't known
   



I've just done a buildworld of RELENG_6 on 5.3 without problems so I
suspect it's something you've done.  It looks very much like
kvm_proc.c is being built using the wrong include files - the ones in
/usr/include/sys rather than the ones in /usr/src/sys/sys.

Where is this error occurring during the buildworld?  (What are the
latest lines beginning '' and '===')
What non-standard bits do you have in your command line, /etc/make.conf
or MAKEOBJDIRPREFIX?

 


 stage 4.2: building libraries
   ...
   === lib/libkvm (depend,all,install)

make.conf:

   WITHOUT_X11=yes
   CPUTYPE?=athlon-xp
   CFLAGS=-O2 -pipe
   COPTFLAGS=-O -pipe
   # added by use.perl 2005-06-24 23:01:50
   PERL_VER=5.8.7
   PERL_VERSION=5.8.7

Note, I've tried without the first four lines.

   $ cd lib/libkvm   
   /usr/src [EMAIL PROTECTED]
   $ make 
   ...r/src/lib/libkvm [EMAIL PROTECTED]

   cc -O -pipe  -DLIBC_SCCS -I/usr/src/lib/libkvm  -c
   /usr/src/lib/libkvm/kvm_proc.c
   /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist':
   /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev'
   isn't known
   /usr/src/lib/libkvm/kvm_proc.c:114: error: storage size of 'pr'
   isn't known
   /usr/src/lib/libkvm/kvm_proc.c:176: error: structure has no member
   named `ki_jid'
   /usr/src/lib/libkvm/kvm_proc.c:377: error: structure has no member
   named `p_rux'
   *** Error code 1

   Stop in /usr/src/lib/libkvm.



I found this, http://www.freebsd.org/cgi/query-pr.cgi?pr=77821 , but it 
doesn't help me much. I don't now what I've done. I've used cvsup and 
buildworld several times.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]