Subject: kernel compilation
To: None <port-arm32@netbsd.org>
From: Ib-Michael Martinsen <imm@nethotel.dk>
List: port-arm32
Date: 02/10/1999 20:08:41
Hello list.
I am trying to compile my first kernel. Due to a buggy strongarm
I am (still) using the v1.3alfa code.
As a first step I thought it might be a good idea to try to
recompile the RISCPC kernel from the RiscBSD 1,3alpha (dated
12-nov-1997) CD, so I installed the /usr/src/sys file-tree
and executed the following commands as root:
cd /usr/src/sys/arch/arm32/conf
config RISCPC
cd ../compile/RISCPC
make depend
make
and after a while I got the following output:
cc -O2 -Werror -Wreturn-type -I. -I../../../../arch -I../../../.. -nostdinc -DMACHINE_NONCONTIG -DEXEC_AOUT -DEXEC_SCRIPT -DCPU_SA110 -DCPU_ARM6 -DCPU_ARM7 -DIOMD -DRISCPC -DARMFPE -DFFS -DMFS -DNFS -DADOSFS -DEXT2FS -DCD9660 -DMSDOSFS -DFDESC -DKERNFS -DNULLFS -DPORTAL -DPROCFS -DUMAPFS -DUNION -DQUOTA -DFIFO -DNFSSERVER -DGATEWAY -DINET -DNETATALK -DCOMPAT_43 -DCOMPAT_12 -DSYSVMSG -DSYSVSEM -DSYSVSHM -DSHMMAXPGS="0x400" -DMEMORY_DISK_HOOKS -DKTRACE -DIRQSTATS -DLKM -DMOUSE_IOC_ACK -DDIAGNOSTIC -DPOSTMORTEM -DDDB -DMAXUSERS=32 -D_KERNEL -Darm32 -Wcomment -c ../../../../arch/arm32/arm32/disassem.c
In file included from ../../../../arch/arm32/arm32/disassem.c:54:
../../../../arch/arm32/arm32/disassem.h:43: argument format specified for non-function `di_printf'
*** Error code 1
Stop.
I have been looking a bit at disassem.c and disassem.h, but I am
unable to spot any errors, however I think the di_printf definition
in the disassem.h (line 43) is a little odd (maybe because I don't
understand it :-):
typedef struct {
u_int (*di_readword) __P((u_int));
void (*di_printaddr) __P((u_int));
void (*di_printf) __P((const char *, ...))
__kprintf_attribute__((__format__(__kprintf__,1,2)));
} disasm_interface_t;
Is the above code right or is the RISCPC kernel not compilable
straight out of the box?
I also thought the above command sequence is the right way to
compile a kernel, but maybe I Am missing something fundamental?
Can anybody shed a light for me on the magic of kernel compilation?
Regards
Ib-Michael
--
Ib-Michael Martinsen Email at work: imm.it@dsg.dk
Fidomail: 2:234/181.9 Email at home: imm@nethotel.dk
Running NetBSD/arm32 v1.3alfa on an Acorn RiscPC with a 202MHz StrongArm.