Re:cvs commit: src/sys/amd64/amd64 mp_machdep.c

From: Andrew Lankford <andrew.lankford_at_verizon.net>
Date: Fri, 6 Aug 2004 22:22:56 -0500
After searching around through and memrange.h and amd64_mem.c
for obvious problems and finding nothing, it occurred to me that I should have included more of the text from buildkernel
where it fubar'd, just to make sure everyone knows exactly where during the build that the error occurred:

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  vers.c
linking kernel.debug
amd64_mem.o(.text+0xa8a): In function `amd64_mrinit':
/usr/src/sys/amd64/amd64/amd64_mem.c:562: undefined reference to `M_MEMDESC'
*** Error code 1

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

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

Stop in /usr/src.

Is _KERNEL supposed to be defined in a Makefile somewhere in the /usr/src/sys heirarchy or in a header file?  What in the kernel does this object link to if device mem/device io isn't in the kernel configuration?

Andrew Lankford
Received on Sat Aug 07 2004 - 01:22:57 UTC

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