Re: Error building kernel

From: Conrad J. Sabatier <conrads_at_cox.net>
Date: Sun, 01 Aug 2004 12:18:00 -0500 (CDT)
On 01-Aug-2004 Willem Jan Withagen wrote:
> cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes  -W
> missing-prototypes -Wpointer-arith -Winline -Wcast-qual 
> -fformat-extensions -st
> d=c99 -g -nostdinc -I-  -I. -I/home2/src/sys
> -I/home2/src/sys/contrib/dev/acpica
>  -I/home2/src/sys/contrib/altq -I/home2/src/sys/contrib/ipfilter
> -I/home2/src/sy
> s/contrib/pf -I/home2/src/sys/contrib/dev/ath
> -I/home2/src/sys/contrib/dev/ath/f
> reebsd -I/home2/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h
> -fno-commo
> n -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-grow
> th=1000  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone 
> -mfpmath=387 -mn
> o-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float
> -fno-asynchronous-unwind-table
> s -ffreestanding   /home2/src/sys/amd64/amd64/mem.c
> /home2/src/sys/amd64/amd64/mem.c: In function `memrw':
> /home2/src/sys/amd64/amd64/mem.c:96: warning: implicit declaration of
> function `
> PHYS_TO_DMAP'
> /home2/src/sys/amd64/amd64/mem.c:96: warning: nested extern
> declaration of `PHYS
> _TO_DMAP'
> /home2/src/sys/amd64/amd64/mem.c:96: warning: cast to pointer from
> integer of di
> fferent size
> /home2/src/sys/amd64/amd64/mem.c:102: error: `DMAP_MIN_ADDRESS'
> undeclared (firs
> t use in this function)
> /home2/src/sys/amd64/amd64/mem.c:102: error: (Each undeclared
> identifier is repo
> rted only once
> /home2/src/sys/amd64/amd64/mem.c:102: error: for each function it
> appears in.)
> /home2/src/sys/amd64/amd64/mem.c:102: error: `DMAP_MAX_ADDRESS'
> undeclared (firs
> t use in this function)
> /home2/src/sys/amd64/amd64/mem.c:103: warning: implicit declaration
> of function
> `DMAP_TO_PHYS'
> /home2/src/sys/amd64/amd64/mem.c:103: warning: nested extern
> declaration of `DMA
> P_TO_PHYS'
> /home2/src/sys/amd64/amd64/mem.c:117: error: `KERNBASE' undeclared
> (first use in
>  this function)
> *** Error code 1
> 
> I have defined
>     device    mem
>     device    null
> 
> in my config. Compilation is on an amd64 system.
> 
> --WjW

Same here on my amd64 box.  Looks like sys/amd64/include/vmparam.h is
not being included in the build.

-- 
Conrad J. Sabatier <conrads_at_cox.net> -- "In Unix veritas"
Received on Sun Aug 01 2004 - 15:18:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC