Port-amiga archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Building the Kernel using audio12-src...
I have rebuilt the kernel several times on this EGA A3000/25
system. I patched the cc.h anf cc.c files using patch <kern.diff, with
no errors. I noticed that the diff between the cc.h and cc.h.orig was a
single line entry to add:
+ typedef int (*handler_func_t)();
+
I don't see any other changes that apply to the kernel so i do the
regular 'config Amiga' and 'make depend' and see no problems. I go on
to make the new kernel but now we fail as follows:
cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch
-I../../../.. -DGPROF -DTIMEZONE="0x168" -DDST="1" -DM68030 -DFPCOPROC
-DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DINET -DGATEWAY -DMROUTING -DPPP_BSDCOMP
-DPPP_DEFLATE -DFFS -DQUOTA -DL
FS -DMFS -DNFSSERVER -DNFSCLIENT -DADOSFS -DCD9660 -DMSDOSFS -DFDESC -DFIFO
-DKERNFS -DNULLFS -DPROCFS -DUMAPFS -DUNION -DCOMPAT_10 -DCOMPAT_09 -DCOMPAT_43
-DCOMPAT_SUNOS -DTCP_COMPAT_42 -DCOMPAT_NOMID -DSYSVSHM -DSYSVMSG -DSYSVSEM
-DUCONSOLE -DINSECURE -
DGENERIC -DLKM -DNKMEMCLUSTERS=256 -DDDB -DDIAGNOSTIC -DKTRACE -DDEBUG
-DMACHINE_NONCONTIG -DKBDRESET -DSERIBUF_SIZE=4096 -DSEROBUF_SIZE=32 -DGRF_ECS
-DGRF_NTSC -DGRF_PAL -D_KERNEL -Dmc68020 -Damiga -c
../../../../arch/m68k/m68k/random.s
cc -g -O2 -Werror -Wall -Wstrict-prototypes -m68020 -msoft-float -I.
-I../../../../arch -I../../../.. -DGPROF -DTIMEZONE="0x168" -DDST="1" -DM68030
-DFPCOPROC -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DINET -DGATEWAY -DMROUTING
-DPPP_BSDCOMP -DPPP_DEFLATE -DF
FS -DQUOTA -DLFS -DMFS -DNFSSERVER -DNFSCLIENT -DADOSFS -DCD9660 -DMSDOSFS
-DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUMAPFS -DUNION -DCOMPAT_10
-DCOMPAT_09 -DCOMPAT_43 -DCOMPAT_SUNOS -DTCP_COMPAT_42 -DCOMPAT_NOMID -DSYSVSHM
-DSYSVMSG -DSYSVSEM -DUCONSOL
E -DINSECURE -DGENERIC -DLKM -DNKMEMCLUSTERS=256 -DDDB -DDIAGNOSTIC -DKTRACE
-DDEBUG -DMACHINE_NONCONTIG -DKBDRESET -DSERIBUF_SIZE=4096 -DSEROBUF_SIZE=32
-DGRF_ECS -DGRF_NTSC -DGRF_PAL -D_KERNEL -Dmc68020 -Damiga -pg -c
../../../../arch/amiga/dev/zbus.c
cc -g -O2 -Werror -Wall -Wstrict-prototypes -m68020 -msoft-float -I.
-I../../../../arch -I../../../.. -DGPROF -DTIMEZONE="0x168" -DDST="1" -DM68030
-DFPCOPROC -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DINET -DGATEWAY -DMROUTING
-DPPP_BSDCOMP -DPPP_DEFLATE -DF
FS -DQUOTA -DLFS -DMFS -DNFSSERVER -DNFSCLIENT -DADOSFS -DCD9660 -DMSDOSFS
-DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUMAPFS -DUNION -DCOMPAT_10
-DCOMPAT_09 -DCOMPAT_43 -DCOMPAT_SUNOS -DTCP_COMPAT_42 -DCOMPAT_NOMID -DSYSVSHM
-DSYSVMSG -DSYSVSEM -DUCONSOL
E -DINSECURE -DGENERIC -DLKM -DNKMEMCLUSTERS=256 -DDDB -DDIAGNOSTIC -DKTRACE
-DDEBUG -DMACHINE_NONCONTIG -DKBDRESET -DSERIBUF_SIZE=4096 -DSEROBUF_SIZE=32
-DGRF_ECS -DGRF_NTSC -DGRF_PAL -D_KERNEL -Dmc68020 -Damiga -pg -c
../../../../arch/amiga/dev/event.c
cc -g -O2 -Werror -Wall -Wstrict-prototypes -m68020 -msoft-float -I.
-I../../../../arch -I../../../.. -DGPROF -DTIMEZONE="0x168" -DDST="1" -DM68030
-DFPCOPROC -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DINET -DGATEWAY -DMROUTING
-DPPP_BSDCOMP -DPPP_DEFLATE -DF
FS -DQUOTA -DLFS -DMFS -DNFSSERVER -DNFSCLIENT -DADOSFS -DCD9660 -DMSDOSFS
-DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUMAPFS -DUNION -DCOMPAT_10
-DCOMPAT_09 -DCOMPAT_43 -DCOMPAT_SUNOS -DTCP_COMPAT_42 -DCOMPAT_NOMID -DSYSVSHM
-DSYSVMSG -DSYSVSEM -DUCONSOL
E -DINSECURE -DGENERIC -DLKM -DNKMEMCLUSTERS=256 -DDDB -DDIAGNOSTIC -DKTRACE
-DDEBUG -DMACHINE_NONCONTIG -DKBDRESET -DSERIBUF_SIZE=4096 -DSEROBUF_SIZE=32
-DGRF_ECS -DGRF_NTSC -DGRF_PAL -D_KERNEL -Dmc68020 -Damiga -pg -c
../../../../arch/amiga/dev/clock.c
cc -g -O2 -Werror -Wall -Wstrict-prototypes -m68020 -msoft-float -I.
-I../../../../arch -I../../../.. -DGPROF -DTIMEZONE="0x168" -DDST="1" -DM68030
-DFPCOPROC -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DINET -DGATEWAY -DMROUTING
-DPPP_BSDCOMP -DPPP_DEFLATE -DF
FS -DQUOTA -DLFS -DMFS -DNFSSERVER -DNFSCLIENT -DADOSFS -DCD9660 -DMSDOSFS
-DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUMAPFS -DUNION -DCOMPAT_10
-DCOMPAT_09 -DCOMPAT_43 -DCOMPAT_SUNOS -DTCP_COMPAT_42 -DCOMPAT_NOMID -DSYSVSHM
-DSYSVMSG -DSYSVSEM -DUCONSOL
E -DINSECURE -DGENERIC -DLKM -DNKMEMCLUSTERS=256 -DDDB -DDIAGNOSTIC -DKTRACE
-DDEBUG -DMACHINE_NONCONTIG -DKBDRESET -DSERIBUF_SIZE=4096 -DSEROBUF_SIZE=32
-DGRF_ECS -DGRF_NTSC -DGRF_PAL -D_KERNEL -Dmc68020 -Damiga -pg -c
../../../../arch/amiga/dev/kbd.c
cc -g -O2 -Werror -Wall -Wstrict-prototypes -m68020 -msoft-float -I.
-I../../../../arch -I../../../.. -DGPROF -DTIMEZONE="0x168" -DDST="1" -DM68030
-DFPCOPROC -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DINET -DGATEWAY -DMROUTING
-DPPP_BSDCOMP -DPPP_DEFLATE -DF
FS -DQUOTA -DLFS -DMFS -DNFSSERVER -DNFSCLIENT -DADOSFS -DCD9660 -DMSDOSFS
-DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUMAPFS -DUNION -DCOMPAT_10
-DCOMPAT_09 -DCOMPAT_43 -DCOMPAT_SUNOS -DTCP_COMPAT_42 -DCOMPAT_NOMID -DSYSVSHM
-DSYSVMSG -DSYSVSEM -DUCONSOL
E -DINSECURE -DGENERIC -DLKM -DNKMEMCLUSTERS=256 -DDDB -DDIAGNOSTIC -DKTRACE
-DDEBUG -DMACHINE_NONCONTIG -DKBDRESET -DSERIBUF_SIZE=4096 -DSEROBUF_SIZE=32
-DGRF_ECS -DGRF_NTSC -DGRF_PAL -D_KERNEL -Dmc68020 -Damiga -pg -c
../../../../arch/amiga/dev/ser.c
cc1: warnings being treated as errors
In file included from ../../../../arch/amiga/dev/ser.c:59:
../../../../arch/amiga/amiga/cc.h:150: warning: function declaration isn't a
prototype
*** Error code 1
Stop.
Now that was different, removeing the offending new line from
cc.h will cause the system to build up to cc.c. Many other errors will
then be generated. Has anyone applied the audio12-src to a standard
NetBSD-1.2 system and gotten it to compile? My kernel config does
include LKM support but just in case anyone might know of an option that
might be missing or wrong that i do or do not have set, the config
options file follows:
=======================================================================
# $NetBSD: SEMPCo_Amiga,v 1.57.4.4 1996/09/06 00:34:18 jtc Exp $
#
# SEMPCo_Amiga
#
# This configuration file contains all possible options
#
include "std.amiga"
maxusers 16
options TIMEZONE=360, DST=1
#
# processors this kernel should support
#
options "M68030" # support for 030
options FPCOPROC # Support for MC6888[12] (Required)
#
# pagers:
#
options SWAPPAGER # Pager for processes (Required)
options VNODEPAGER # Pager for vnodes (Required)
options DEVPAGER # Pager for devices (Required)
#
# Networking options
#
options INET # IP networking support (Required)
options GATEWAY # Packet forwarding
options MROUTING # Multicast routing
options PPP_BSDCOMP,PPP_DEFLATE # BSD compression for PPP
#
# File systems
#
options FFS # Berkeley fast file system
options QUOTA # UFS quotas
options LFS # log-structured filesystem
options MFS # Memory based filesystem
options NFSSERVER # Network File System server side code
options NFSCLIENT # Network File System client side code
options ADOSFS # AmigaDOS file system
options CD9660 # ISO 9660 + Rock Ridge file system
options MSDOSFS # MS-DOS file system
options FDESC # /dev/fd
options FIFO # FIFOs; RECOMMENDED
options KERNFS # /kern
options NULLFS # loopback file system
options PROCFS # /proc
options UMAPFS # NULLFS + uid and gid remapping
options UNION # union file system
#
# Compatability options for various existing systems
#
options "COMPAT_10" # compatability with older NetBSD release
options "COMPAT_09" # compatability with older NetBSD release
options "COMPAT_43" # 4.3 BSD compatible system calls
options COMPAT_SUNOS # Support to run Sun (m68k) executables
options "TCP_COMPAT_42" # Use 4.2 BSD style TCP
options "COMPAT_NOMID" # allow nonvalid machine id executables
#
# Support for System V IPC facilities.
#
options SYSVSHM # System V-like shared memory
options SYSVMSG # System V-like messages
options SYSVSEM # System V-like semaphores
#
# Support for various kernel options
#
options UCONSOLE # anyone can redirect a virtual console
options INSECURE # allow, among other insecure stuff, LKM
# loading in multi-user mode.
options GENERIC # Mini-root boot support
options LKM # Loadable kernel modules
options "NKMEMCLUSTERS=256" # Size of kernel malloc area
#
# Misc. debuging options
#
options DDB # Kernel debugger
options DIAGNOSTIC # Add additional error checking code
options KTRACE # Add kernel tracing system call
options DEBUG # Add debugging statements
#options KGDB # Kernel debugger (KGDB) support
#options PANICBUTTON # Forced crash via keypress (???)
#
# Amiga specific options
#
options MACHINE_NONCONTIG # Non-contiguous memory support
options KBDRESET # sync on Ctrl-Amiga-Amiga
# These options improve performance with the built-in serial port
# on slower Amigas. Try the larger buffers first then lev6_defer.
options "SERIBUF_SIZE=4096"
options "SEROBUF_SIZE=32"
#options LEV6_DEFER # defers l6 to l4 (below serial l5)
options GRF_ECS # Enhanced Chip Set
options GRF_NTSC # NTSC
options GRF_PAL # PAL
grfcc0 at mainbus0 # custom chips
grf0 at grfcc0
ite0 at grf0 # terminal emulators for grf's
msc0 at zbus0 # A2232 MSC multiport serial.
mfc0 at zbus0 # MultiFaceCard I/O board
mfcs0 at mfc0 unit 0 # MFC serial
mfcs1 at mfc0 unit 1 # MFC serial
#mfcp0 at mfc0 unit 0 # MFC parallel [not available yet]
mfc1 at zbus0 # MultiFaceCard 2nd I/O board
mfcs2 at mfc1 unit 0
mfcs3 at mfc1 unit 1
#mfcp1 at mfc1 unit 0
le0 at zbus0 # Lance ethernet.
ed0 at zbus0 # dp8390 ethernet
es0 at zbus0 # SMC 91C90 ethernet
qn0 at zbus0 # quicknet ethernet
ae0 at zbus0 # Ariadne ethernet
bah0 at zbus0 # C= arcnet
# scsi stuff, all possible
ahsc0 at mainbus0 # A3000 scsi
scsibus* at ahsc0
# each hard drive from low target to high
# will configure to the next available sd unit number
sd* at scsibus? target ? lun ? # scsi disks
st* at scsibus? target ? lun ? # scsi tapes
ss* at scsibus? target ? lun ? # scsi scanner
cd* at scsibus? target ? lun ? # scsi cd's
pseudo-device loop 1 # network loopback
pseudo-device sl 5 # slip
pseudo-device ppp 5 # ppp
#pseudo-device tun 3 # network tunnel line discipline
pseudo-device bpfilter 4 # berkeley packet filters
pseudo-device view 10 # views
pseudo-device pty 16 # pseudo terminals
pseudo-device vnd 8 # paging to files
pseudo-device ccd 8 # concatenated disk devices
config netbsd swap on generic
=======================================================================
Any insight would be deeply appreciated. Thanks in advance.
--
Simeon A. Layne Jr., please address E-Mail as follows,
from INTERNET: slayne%mail.sempco.org@localhost
UUCP: sempco.org!slayne
Home |
Main Index |
Thread Index |
Old Index