Bug 31901

Summary: make buildkernel stops in linux module
Product: Base System Reporter: Vladimir Tchoukharev <chu>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description Vladimir Tchoukharev 2001-11-10 15:40:01 UTC
# cvsup /etc/stable-supfile
# make buildkernel KERNCONF=SVAK
...
cc -nostdinc -O -pipe    -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -DKLD_MO
DULE -nostdinc -I-  -I. -I@ -I@/../include  -mpreferred-stack-boundary=2 -Wall -Wredundant-decl
s -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu
al  -fformat-extensions -ansi -c linux_sysent.c
In file included from linux_sysent.c:14:
linux_proto.h:57: syntax error before `linux_time_t'
linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
linux_proto.h:57: syntax error before `)'
linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
linux_proto.h:57: syntax error before `)'
linux_proto.h:156: syntax error before `linux_handler_t'
...
linux_proto.h:517: syntax error before `linux_stack_t'
linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
linux_proto.h:517: syntax error before `)'
linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
linux_proto.h:517: syntax error before `)'
*** Error code 1

Stop in /usr/src/sys/modules/linux.
*** Error code 1

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

Stop in /usr/obj/usr/src/sys/SVAK.
*** Error code 1

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

Stop in /usr/src.

I beleave it worked for me on 2001.10.29, and it did not work three days ago also.
Now I can make a kernel with
  cd /usr/src/sys/i386/conf  && \
  config SVAK && \
  cd ../../compile/SVAK && \
  make depend && \
  make all install
So it is not a big deal for me...

How-To-Repeat: 
Try to make buildkernel with my KERNCONF below on current -STABLE sources.

Best regards,
V.Tchoukharev
-----------------
grep -v "^#" /usr/src/sys/i386/conf/SVAK

machine		i386
cpu		I686_CPU
ident		SVAK
maxusers	128


options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MFS			#Memory Filesystem
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev


device		isa
device		pci

device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0

device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
options 	ATA_STATIC_ID		#Static device numbering

options		SYM_SETUP_LP_PROBE_MAP=0x40
				# Allow ncr to attach legacy NCR devices when 
				# both sym and ncr are configured



device		scbus		# SCSI bus (required)
device		pass		# Passthrough device (direct SCSI access)



device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

pseudo-device	splash

device		sc0	at isa? flags 0x100


device		npx0	at nexus? port IO_NPX irq 13

device		apm0    at nexus? disable flags 0x20 # Advanced Power Management


device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device



device		miibus		# MII bus support
device		rl		# RealTek 8129/8139


pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"
pseudo-device	gif		# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

pseudo-device	bpf		#Berkeley packet filter

device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		uscanner	# Scanners
device		aue		# ADMtek USB ethernet
device		cue		# CATC USB ethernet
device		kue		# Kawasaki LSI USB ethernet



options		NETSMB		#SMB/CIFS requester
options		NETSMBCRYPTO	#encrypted password support for SMB
options		SMBFS		#SMB/CIFS filesystem
options         UFS_DIRHASH

options		LIBMCHAIN	#mbuf management library

options		LIBICONV

pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	gzip		#Exec gzipped a.out's

options		VESA

device		pcm

device		pca0 at isa? port IO_TIMER1

options USER_LDT

device	smbus
device	iicbus
device	iicsmb
device	iicbb
device	intpm
device	smb
device	bktr
device	iic
device	ic
Comment 1 Crist J. Clark 2001-11-11 07:46:28 UTC
On Sat, Nov 10, 2001 at 05:35:40PM +0200, Vladimir Tchoukharev wrote:
[snip]

> # cvsup /etc/stable-supfile
> # make buildkernel KERNCONF=SVAK
> ...
> cc -nostdinc -O -pipe    -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
>   -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -DKLD_MO
> DULE -nostdinc -I-  -I. -I@ -I@/../include  -mpreferred-stack-boundary=2 -Wall -Wredundant-decl
> s -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu
> al  -fformat-extensions -ansi -c linux_sysent.c
> In file included from linux_sysent.c:14:
> linux_proto.h:57: syntax error before `linux_time_t'
> linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
> linux_proto.h:57: syntax error before `)'
> linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
> linux_proto.h:57: syntax error before `)'
> linux_proto.h:156: syntax error before `linux_handler_t'
> ...
> linux_proto.h:517: syntax error before `linux_stack_t'
> linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
> linux_proto.h:517: syntax error before `)'
> linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
> linux_proto.h:517: syntax error before `)'
> *** Error code 1
> 
> Stop in /usr/src/sys/modules/linux.
> *** Error code 1

Do a,

  # rm -rf /usr/obj/usr/src/sys/SVAK

And try again.

> I beleave it worked for me on 2001.10.29, and it did not work three days ago also.
> Now I can make a kernel with
>   cd /usr/src/sys/i386/conf  && \
>   config SVAK && \
>   cd ../../compile/SVAK && \
>   make depend && \
>   make all install
> So it is not a big deal for me...

This works because you do not have a stale object tree in
/usr/src/sys/compile/SVAK like you do over in /usr/obj.

> >How-To-Repeat:
> 
> Try to make buildkernel with my KERNCONF below on current -STABLE sources.

It built for me without a problem,

  # cd /usr/src
  # make buildkernel KERNCONF=SVAK
  ...
  --------------------------------------------------------------
  >>> Kernel build for SVAK completed on Sat Nov 10 23:45:37 PST 2001
  --------------------------------------------------------------

-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
Comment 2 Crist J. Clark freebsd_committer freebsd_triage 2001-11-11 10:36:31 UTC
State Changed
From-To: open->closed

Nuking the old, stale object tree fixed the user's problem.