Re: Kernel Compile Error

From: Nawfal bin Mohmad Rouyan <opal_at_mmu.edu.my>
Date: Tue, 19 Jul 2005 16:24:56 +0800
On Tue, 2005-07-19 at 12:19 +0530, Joseph Koshy wrote:
> > export_syms | xargs -J% objcopy % if_xl.kld
> > ld -Bshareable  -d -warn-common -o if_xl.ko if_xl.kld
> > objcopy --strip-debug if_xl.ko
> > 1 error
> > *** Error code 2
> > 1 error
> > *** Error code 2
> > 1 error
> 
> The real error was somewhere earlier on.  Retry the build
> without a -jN option?
> 

Without -jN option, the compile stopped below:

cc -c -O2 -pipe -fno-strict-aliasing -march=pentium4 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -std=c99  -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 -I/usr/src/sys/dev/twa -D_KERNEL -include
opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -ffreestanding
-Werror  /usr/src/sys/i386/isa/clock.c
/usr/src/sys/i386/isa/clock.c: In function `rtcin':
/usr/src/sys/i386/isa/clock.c:424: error: `IO_RTC' undeclared (first use
in this function)
/usr/src/sys/i386/isa/clock.c:424: error: (Each undeclared identifier is
reported only once
/usr/src/sys/i386/isa/clock.c:424: error: for each function it appears
in.)
/usr/src/sys/i386/isa/clock.c: In function `writertc':
/usr/src/sys/i386/isa/clock.c:438: error: `IO_RTC' undeclared (first use
in this function)
*** Error code 1

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

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

Stop in /usr/src.
Received on Tue Jul 19 2005 - 06:25:09 UTC

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