From owner-freebsd-current@FreeBSD.ORG Wed Aug 17 02:13:36 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 571A216A41F for ; Wed, 17 Aug 2005 02:13:36 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail1.fluidhosting.com (mail1.fluidhosting.com [204.14.90.61]) by mx1.FreeBSD.org (Postfix) with SMTP id 40EB443D46 for ; Wed, 17 Aug 2005 02:13:34 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 83755 invoked by uid 399); 17 Aug 2005 02:13:34 -0000 Received: from 69-175-228-47.vnnyca.adelphia.net (HELO ?192.168.1.101?) (dougb@dougbarton.net@69.175.228.47) by mail1.fluidhosting.com with SMTP; 17 Aug 2005 02:13:34 -0000 Message-ID: <43029D4A.9010602@FreeBSD.org> Date: Tue, 16 Aug 2005 19:13:30 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050726) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: installworld problem in sys/boot/i386/boot2 ($PATH?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 02:13:36 -0000 Howdy, Since Sunday I've been having the following problem. With unmodified sources, I get this: ===> sys/boot/i386/boot2 (install) as -o boot2.o boot2.s ld -static -N --gc-sections -nostdlib -Ttext 0x2000 -o boot2.out /usr/local/obj/ usr/local/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o objcopy -S -O binary boot2.out boot2.bin btxld -v -E 0x2000 -f bin -b /usr/local/obj/usr/local/src/sys/boot/i386/boot2/.. /btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin btxld:No such file or directory *** Error code 1 If I add btxld to the list of programs for the distributworld target in src/Makfile.inc1, I get: ===> sys/boot/i386/boot2 (install) btxld -v -E 0x2000 -f bin -b /usr/local/obj/usr/local/src/sys/boot/i386/boot2/.. /btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin kernel: ver=1.01 size=780 load=9000 entry=9010 map=16M pgctl=1:1 client: fmt=bin size=14b5 text=0 data=0 bss=0 entry=0 output: fmt=bin size=1d49 text=114 data=1c35 org=0 entry=0 ls: not found arithmetic expression: syntax error: "7680-" *** Error code 2 So the problem seems to the PATH at this point in the process. I added an echo in the Makefile, and this is what it says: PATH in sh is: /usr/obj/usr/local/src/tmp/legacy/usr/sbin:/usr/obj/usr/local/src/tmp/legacy/usr/bin:/usr/obj/usr/local/src/tmp/legacy/usr/games:/usr/obj/usr/local/src/tmp/usr/sbin:/usr/obj/usr/local/src/tmp/usr/bin:/usr/obj/usr/local/src/tmp/usr/games:/tmp/install.1pfQmq1 In /usr/obj: find . -name ls -type f ./usr/local/src/bin/ls/ls So I'm at a loss here. The only way I've found around this is to cd to /usr/src, then do 'make install ; make installworld' which completes successfully. Doug -- This .signature sanitized for your protection