From owner-freebsd-stable Sat Jan 27 13:53:18 2001 Delivered-To: freebsd-stable@freebsd.org Received: from level3.dynacom.net (level3.dynacom.net [206.107.213.213]) by hub.freebsd.org (Postfix) with SMTP id 48E0637B400 for ; Sat, 27 Jan 2001 13:52:52 -0800 (PST) Received: (qmail 6424 invoked by uid 0); 27 Jan 2001 21:52:45 -0000 Received: from unknown (HELO urx.com) (206.159.132.160) by mail.urx.com with SMTP; 27 Jan 2001 21:52:45 -0000 Message-ID: <3A73432D.3D8C2C74@urx.com> Date: Sat, 27 Jan 2001 13:52:45 -0800 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: anarcat Cc: freebsd-stable@freebsd.org Subject: Re: Can't build kernel under stable-2000.12.31 References: <20010126201248.A1832@dojo.tao.ca> <3A723980.DEDEE04E@urx.com> <20010127140203.A26460@dojo.tao.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG anarcat wrote: > > Ok. I do not understand very clearly why, but: > > # rm -rf /sys/compile/SHALL > > and then using the traditional "config" method (config && cd ... && make > depend && make && make install) works. > > Why can't buildkernel do this by itself? They are setting it up to do that but for right now it doesn't work. There was a thread that I was following on this subject. For right now, the buildkernel has to be looked at as if it is doing a cross compile and it totally depends on /usr/obj being populated. The config method is used for updating an existing system or fine tuning a existing system. Around the time 4.0 was upgraded to 4.1, there was a switch to a new version of the utilities and such. You had to use the buildkernel for these to be done properly. That was when I first saw the locore.s message. It wasn't too long after upgrading to 4.1 that I developed a simple script to do the cvsup and upgrade userland and my kernel. It only stops if something is broken and the rest of the time it finishes with the two "makewhatis" messages on a telnet session. I rarely do a build on the system console. A lot of the time I also exit KDE-2 on the system being upgraded, which gives the build process around 50MB more memory to play with. Running in a pure terminal session reminds me too much of MSDOS :). The config method has additional benefits. For example, once you have built a kernel using the config method, it only has to make the code that you have added using your kernel config file. The 2nd make and on can build much faster then the buildkernel appears to. The buildkernel seems to default to doing a make clean and then do the compiles. Kent > > thanks. > > A. > > On Fri, Jan 26, 2001 at 06:59:12PM -0800, Big Brother made Kent Stewart write: > > > > > > anarcat wrote: > > > > > > Hi! > > > > > > (please CC: me, I'm not on the list) > > > > > > Building a custom kernel under freebsd-stable (cvsup'd and made world on > > > 2000-12-31) fails with the following, any idea why? > > > > This error usually occurs beause you didn't do a buildworld to > > populate /usr/obj first. Read /usr/src/UPDATING because the sequence > > isn't an option. If you already have a current userland, then the > > choice can include the config method. They way it looks, you mixed > > your world's and that doesn't work. > > > > Kent > > > > > > > > shall# make KERNEL=SHALL buildkernel installkernel > > > ... > > > ===> 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/SHALL; 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 -g -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/ccO18745.s: Assembler messages: > > > /tmp/ccO18745.s:1744: Error: .space specifies non-absolute value > > > /tmp/ccO18745.s:2455: Error: undefined symbol L0 in operation setting > > > PTmap > > > /tmp/ccO18745.s:2455: Error: undefined symbol PDRSHIFT in operation > > > setting PTmap > > > /tmp/ccO18745.s:1712: Error: undefined symbol L0 in operation > > > /tmp/ccO18745.s:1712: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:1713: Error: undefined symbol L0 in operation > > > /tmp/ccO18745.s:1713: Error: undefined symbol PDESIZE in operation > > > /tmp/ccO18745.s:2455: Error: undefined symbol L0 in operation setting > > > APTmap > > > /tmp/ccO18745.s:2455: Error: undefined symbol PDRSHIFT in operation > > > setting APTmap > > > /tmp/ccO18745.s:1721: Error: undefined symbol L0 in operation > > > /tmp/ccO18745.s:1721: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:1722: Error: undefined symbol L0 in operation > > > /tmp/ccO18745.s:1722: Error: undefined symbol PDESIZE in operation > > > /tmp/ccO18745.s:1928: Error: undefined symbol UPAGES in operation > > > /tmp/ccO18745.s:1928: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2316: Error: undefined symbol BI_ESYMTAB in operation > > > /tmp/ccO18745.s:2321: Error: undefined symbol BI_SYMTAB in operation > > > /tmp/ccO18745.s:2322: Error: undefined symbol BI_ESYMTAB in operation > > > /tmp/ccO18745.s:2326: Error: undefined symbol BI_KERNEND in operation > > > /tmp/ccO18745.s:2338: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2338: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2342: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2342: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2346: Error: undefined symbol UPAGES in operation > > > /tmp/ccO18745.s:2346: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2346: Error: undefined symbol UPAGES in operation > > > /tmp/ccO18745.s:2346: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2351: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2351: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2354: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2354: Error: undefined symbol PAGE_SIZE in operation > > > /tmp/ccO18745.s:2411: Error: undefined symbol PAGE_SHIFT in operation > > > /tmp/ccO18745.s:2427: Error: undefined symbol PAGE_SHIFT in operation > > > /tmp/ccO18745.s:2428: Error: undefined symbol PAGE_SHIFT in operation > > > /tmp/ccO18745.s:1854: Error: Subtraction of two symbols in different > > > sections ".tmpstk" {.data section} - "KERNBASE" {*UND* section} at file > > > address 28. > > > /tmp/ccO18745.s:1877: Error: Subtraction of two symbols in different > > > sections "end" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 38. > > > /tmp/ccO18745.s:1878: Error: Subtraction of two symbols in different > > > sections "edata" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 43. > > > /tmp/ccO18745.s:1890: Error: Subtraction of two symbols in different > > > sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at > > > file address 61. > > > /tmp/ccO18745.s:1906: Error: Subtraction of two symbols in different > > > sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file > > > address 81. > > > /tmp/ccO18745.s:2115: Error: Subtraction of two symbols in different > > > sections "kernelname" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 371. > > > /tmp/ccO18745.s:2143: Error: Subtraction of two symbols in different > > > sections "bootinfo" {.data section} - "KERNBASE" {*UND* section} at file > > > address 411. > > > /tmp/ccO18745.s:2163: Error: Subtraction of two symbols in different > > > sections "boothowto" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 435. > > > /tmp/ccO18745.s:2165: Error: Subtraction of two symbols in different > > > sections "bootdev" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 443. > > > /tmp/ccO18745.s:2203: Error: Subtraction of two symbols in different > > > sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file > > > address 495. > > > /tmp/ccO18745.s:2208: Error: Subtraction of two symbols in different > > > sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file > > > address 511. > > > /tmp/ccO18745.s:2209: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 521. > > > /tmp/ccO18745.s:2210: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 531. > > > /tmp/ccO18745.s:2211: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 541. > > > /tmp/ccO18745.s:2212: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 551. > > > /tmp/ccO18745.s:2231: Error: Subtraction of two symbols in different > > > sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file > > > address 592. > > > /tmp/ccO18745.s:2258: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 627. > > > /tmp/ccO18745.s:2259: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 637. > > > /tmp/ccO18745.s:2260: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 647. > > > /tmp/ccO18745.s:2266: Error: Subtraction of two symbols in different > > > sections "cpu_high" {.data section} - "KERNBASE" {*UND* section} at file > > > address 662. > > > /tmp/ccO18745.s:2267: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 668. > > > /tmp/ccO18745.s:2268: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 674. > > > /tmp/ccO18745.s:2269: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 680. > > > /tmp/ccO18745.s:2270: Error: Subtraction of two symbols in different > > > sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file > > > address 686. > > > /tmp/ccO18745.s:2274: Error: Subtraction of two symbols in different > > > sections "cpu_id" {.data section} - "KERNBASE" {*UND* section} at file > > > address 699. > > > /tmp/ccO18745.s:2275: Error: Subtraction of two symbols in different > > > sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at > > > file address 705. > > > /tmp/ccO18745.s:2282: Error: Subtraction of two symbols in different > > > sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file > > > address 722. > > > /tmp/ccO18745.s:2288: Error: Subtraction of two symbols in different > > > sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file > > > address 739. > > > /tmp/ccO18745.s:2292: Error: Subtraction of two symbols in different > > > sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file > > > address 751. > > > /tmp/ccO18745.s:2305: Error: Subtraction of two symbols in different > > > sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at > > > file address 762. > > > /tmp/ccO18745.s:2313: Error: Subtraction of two symbols in different > > > sections "end" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 784. > > > /tmp/ccO18745.s:2316: Error: Negative of non-absolute symbol KERNBASE > > > /tmp/ccO18745.s:2321: Error: Negative of non-absolute symbol KERNBASE > > > /tmp/ccO18745.s:2322: Error: Negative of non-absolute symbol KERNBASE > > > /tmp/ccO18745.s:2326: Error: Negative of non-absolute symbol KERNBASE > > > /tmp/ccO18745.s:2334: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 843. > > > /tmp/ccO18745.s:2335: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 849. > > > /tmp/ccO18745.s:2338: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 855. > > > /tmp/ccO18745.s:2338: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 867. > > > /tmp/ccO18745.s:2339: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 885. > > > /tmp/ccO18745.s:2342: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 891. > > > /tmp/ccO18745.s:2342: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 903. > > > /tmp/ccO18745.s:2343: Error: Subtraction of two symbols in different > > > sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file > > > address 921. > > > /tmp/ccO18745.s:2346: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 927. > > > /tmp/ccO18745.s:2346: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 939. > > > /tmp/ccO18745.s:2347: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 957. > > > /tmp/ccO18745.s:2349: Error: Subtraction of two symbols in different > > > sections "proc0paddr" {.data section} - "KERNBASE" {*UND* section} at file > > > address 969. > > > /tmp/ccO18745.s:2351: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 975. > > > /tmp/ccO18745.s:2351: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 987. > > > /tmp/ccO18745.s:2352: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1005. > > > /tmp/ccO18745.s:2354: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1011. > > > /tmp/ccO18745.s:2354: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1023. > > > /tmp/ccO18745.s:2355: Error: Subtraction of two symbols in different > > > sections "vm86pa" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1041. > > > /tmp/ccO18745.s:2357: Error: Subtraction of two symbols in different > > > sections "vm86paddr" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1053. > > > /tmp/ccO18745.s:2372: Error: Subtraction of two symbols in different > > > sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at > > > file address 1063. > > > /tmp/ccO18745.s:2377: Error: Subtraction of two symbols in different > > > sections "etext" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 1080. > > > /tmp/ccO18745.s:2380: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1103. > > > /tmp/ccO18745.s:2383: Error: Subtraction of two symbols in different > > > sections "etext" {*UND* section} - "KERNBASE" {*UND* section} at file > > > address 1125. > > > /tmp/ccO18745.s:2389: Error: Subtraction of two symbols in different > > > sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at > > > file address 1146. > > > /tmp/ccO18745.s:2394: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1164. > > > /tmp/ccO18745.s:2397: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1183. > > > /tmp/ccO18745.s:2400: Error: Subtraction of two symbols in different > > > sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1205. > > > /tmp/ccO18745.s:2402: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1224. > > > /tmp/ccO18745.s:2405: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1247. > > > /tmp/ccO18745.s:2407: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1266. > > > /tmp/ccO18745.s:2412: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1308. > > > /tmp/ccO18745.s:2415: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1331. > > > /tmp/ccO18745.s:2417: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1350. > > > /tmp/ccO18745.s:2423: Error: Subtraction of two symbols in different > > > sections "vm86pa" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1392. > > > /tmp/ccO18745.s:2429: Error: Subtraction of two symbols in different > > > sections "vm86pa" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1434. > > > /tmp/ccO18745.s:2435: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1457. > > > /tmp/ccO18745.s:2438: Error: Subtraction of two symbols in different > > > sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1473. > > > /tmp/ccO18745.s:2441: Error: Subtraction of two symbols in different > > > sections ".data" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1496. > > > /tmp/ccO18745.s:2444: Error: Subtraction of two symbols in different > > > sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1515. > > > /tmp/ccO18745.s:2447: Error: Subtraction of two symbols in different > > > sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1538. > > > /tmp/ccO18745.s:2450: Error: Subtraction of two symbols in different > > > sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file > > > address 1557. > > > *** Error code 1 > > > > > > Stop in /u/obj/usr/src/sys/SHALL. > > > *** Error code 1 > > > > > > Stop in /usr/src. > > > *** Error code 1 > > > > > > Stop in /usr/src. > > > shall# > > > > > > ---------------------------------------------------------------------- > > > Name: SHALL > > > SHALL Type: Plain Text (text/plain) > > > Encoding: quoted-printable > > > > > > Part 1.2Type: application/pgp-signature > > > > -- > > Kent Stewart > > Richland, WA > > > > mailto:kstewart@3-cities.com > > http://kstewart.urx.com/kstewart/index.html > > ---------------------------------------------------------------------- > Part 1.2Type: application/pgp-signature -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message