Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Mar 2001 18:28:33 -0600
From:      Oscar Ricardo Silva <oscars@mail.utexas.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Failure on compile of new kernel in 4.2-RELEASE
Message-ID:  <5.0.2.1.2.20010306182618.00a3db80@mail.utexas.edu>
In-Reply-To: <5.0.2.1.2.20010306180546.036438d0@mail.utexas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Funny what just a little more searching will do.  Getting on deja.com, I 
found several threads about the same problem and the answer came from a 
direct quote in the FreeBSD handbook:

*******************
If you have not upgraded your source tree in any way (you have not run 
CVSup, CTM, or used anoncvs), then you should use the config, make depend, 
make, make install sequence.

WarningIf you have upgraded your sources since your last kernel build, you 
must use the make buildkernel method to build your kernel. Otherwise, old 
utilities will be used to build the kernel, which will probably fail. Do 
not use the config/make sequence to build your kernel if you have updated 
the sources!
.*******************

Soooooo, since this was a fresh install and I hadn't upgraded my sources, I 
should be building the kernel in the old manner.  I did that and am in the 
process of recompiling the kernel, already having made it past the point 
where I was having problems.



Oscar


At 06:10 PM 3/6/01 -0600, Oscar Ricardo Silva, you wrote:
>I just did a fresh install of 4.2-RELEASE, using the iso image.  In trying 
>to recompile the kernel, I received errors looking like this:
>
>===> wi
>@ -> /usr/src/sys
>machine -> /usr/src/sys/i386/include
>perl @/kern/makedevops.pl -h @/kern/device_if.m
>perl @/kern/makedevops.pl -h @/kern/bus_if.m
>rm -f .depend
>mkdep -f .depend -a   -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@ 
>-I@/../include -I/usr/obj/usr/src/i386/usr/include 
>/usr/src/sys/modules/wi/../../i386/isa/if_wi.c
>cd /usr/obj/usr/src/sys/newkernel;  MAKEOBJDIRPREFIX=/usr/obj 
>COMPILER_PATH=/usr/obj/usr/src/i386/usr/libexec:/usr/obj/usr/src/i386/usr/bin 
>LIBRARY_PATH=/usr/obj/usr/src/i386/usr/lib:/usr/obj/usr/src/i386/usr/lib 
>OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec 
>PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503 
>DESTDIR=/usr/obj/usr/src/i386  INSTALL="sh /usr/src/tools/install.sh" 
>PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin 
>MACHINE=i386 make KERNEL=kernel all
>cc -c -x assembler-with-cpp -DLOCORE -O -Wall -Wredundant-decls 
>-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
>-Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. 
>-I/usr/src/sys -I/usr/src/sys/../include  -D_KERNEL -include opt_global.h 
>-elf  -mpreferred-stack-boundary=2 /usr/src/sys/i386/i386/locore.s
>/tmp/ccz60166.s: Assembler messages:
>/tmp/ccz60166.s:1744: Error: .space specifies non-absolute value
>/tmp/ccz60166.s:2455: Error: undefined symbol L0 in operation setting PTmap
>/tmp/ccz60166.s:2455: Error: undefined symbol PDRSHIFT in operation 
>setting PTmap
>/tmp/ccz60166.s:1712: Error: undefined symbol L0 in operation
>
>/tmp/ccz60166.s:2389: Error: Subtraction of two symbols in different 
>sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at 
>file address 1146.
>/tmp/ccz60166.s:2394: Error: Subtraction of two symbols in different 
>sections ".data" {.data section} - "KERNBASE" {*UND* section} at file 
>address 1164.
>/tmp/ccz60166.s:2397: Error: Subtraction of two symbols in different 
>sections ".data" {.data section} - "KERNBASE" {*UND* section} at file 
>address 1183.
>/tmp/ccz60166.s:2400: Error: Subtraction of two symbols in different 
>sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file 
>address 1205.
>
>
>A previous response to a question of the same type was:
>
>
>>Typical message from doing a buildkernel with out doing a buildworld
>>first. Buildkernel depends on /usr/obj being populated by the
>>buildworld.
>
>If I did a fresh install, would /usr/obj be populated with anything?  I 
>want to keep the system at 4.2-RELEASE and don't think I need to do a 
>'make buildworld' before recompiling the kernel.  Also, why does the 
>failure appear to be in building the components of 'wi'?  In the other 
>question, the failure also seemed to occur in 'wi'.
>
>Any help would be appreciated.
>
>
>
>Thanks,
>
>Oscar
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.2.1.2.20010306182618.00a3db80>