Subject: port-pmax/2897: Kernel build fails on DS3100
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik Bertelsen <erik@aarhus1.uni-c.dk>
List: netbsd-bugs
Date: 10/28/1996 08:35:59
>Number: 2897
>Category: port-pmax
>Synopsis: Kernel build fails on DS3100 (dc_ioasic_consinit)
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 27 23:20:00 1996
>Last-Modified:
>Originator: Erik Bertelsen
>Organization:
>Release: NetBSD-current 27 oct. 1996
>Environment:
System: NetBSD aarhus1.uni-c.dk 1.2A NetBSD 1.2A (AARHUS1) #9: Thu Oct 24 12:00:37 MET DST 1996 erik@aarhus1.uni-c.dk:/usr/src/sys/arch/pmax/compile/AARHUS1 pmax
>Description:
kernel build fails during link phase when configuring kernels
for a DS3100:
sh ../../../../conf/newvers.sh
cc -Werror -O2 -I. -I../../../../arch -I../../../.. -nostdinc -DEXEC_ELF32 -DEXEC_SCRIPT -DCPU_R3000 -DDS3100 -DMIPS1 -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DDEBUG -DCOMPAT_43 -DKTRACE -DNKMEMCLUSTERS=1024 -DNTP -DFIFO -DFFS -DMFS -DNFSCLIENT -DNFSSERVER -DKERNFS -DNULLFS -DINET -DHZ=256 -DCOMPAT_ULTRIX -DCOMPAT_12 -DSYSVSHM -DSYSVSEM -DSYSVMSG -DMAXUSERS=16 -D_KERNEL -Dpmax -c vers.c
ld -N -Ttext 80030000 -e start -x -o netbsd ${SYSTEM_OBJ} vers.o
cpu_cons.o: In function `consinit':
../../../../arch/pmax/pmax/cpu_cons.c(.text+0x2a0): undefined reference to `dc_ioasic_consinit'
*** Error code 1
This happens both with my custom kernel configuration file, but
also with the distributed DS3100 configuration.
>How-To-Repeat:
config DS3100 + make
>Fix:
After config, I can fix the problem temporarily by adding the source
files arch/pmax/tc/asic.c and arch/pmax/dev/dc_ioasic.c to the
compilation. Of course this is not a solution, it has to be done
in the parameter files used by config(8), but I leave that to
someone more knowledgeable about these files.
Another possibility is that these files are not really needed, but
then the code pulling them in should be conditionalised appropriately.
>Audit-Trail:
>Unformatted: