From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 14 12:10:19 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4F76159C for ; Sun, 14 Jul 2013 12:10:19 +0000 (UTC) (envelope-from bryan-lists@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id E6D0AEE0 for ; Sun, 14 Jul 2013 12:10:18 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:subject:content-type :content-transfer-encoding; q=dns; s=sweb; b=FW3T4z92pGSnqDWy++f WoSGrmTSxRVryVPvvavygL9cgPZ0R8orDlPtXhNrduAeVj6onSzCSF6h7ejjgf8D UTm2GJnAe8M6z4D5VrFupK322Eukm7seqJwDYFce9F6lCBnFTljd8WznA+KWZLKd YBV4IS3YbnVDt3hBF6BACxeQ= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=sweb; bh=Hu08+QviH0Gwzwbfqn94oor10 0KeiKrcC5swMx9Ni/E=; b=WYv/RRICCqplRnHTDFBz5uOplA5cwqx5oHLb7Kq++ 0avqUkY/IX/ppJD93sSo8u0QpVzqtUJPUtP5GRGjSgCpp9aBIFDL23v7z/+I5Iax ZhD4IsTTZQPUHdFnFkkAsxlvi2GXvwMJsgrwxA0gMJd+3lnC4sroUAhAW5xgFtzh 6Q= Received: (qmail 55743 invoked from network); 14 Jul 2013 07:10:11 -0500 Received: from unknown (HELO ?10.10.0.24?) (bryan@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 14 Jul 2013 07:10:11 -0500 Message-ID: <51E29522.1010803@shatow.net> Date: Sun, 14 Jul 2013 07:10:10 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: FreeBSD Hackers Subject: make installworld: btxld: No such file or directory [solved] X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jul 2013 12:10:19 -0000 This post is just to inform others that run into this problem. For years I have ran into this error while running 'make installworld': > # make installworld > [...] > ===> sys/boot/i386/boot2 (install) > /usr/local/libexec/ccache/world/cc -Os -fno-guess-branch-probability -fomit-frame-pointer -fno-unit-at-a-time -mno-align-long-strings -mrtd -mregparm=3 -DUSE_XREAD -DUFS1_AND_UFS2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 -I/usr/src/sys/boot/i386/boot2/../../common -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -Winline --param max-inline-insns-single=100 -march=i386 -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -m32 -std=gnu99 -S -o boot2.s.tmp /usr/src/sys/boot/i386/boot2/boot2.c > sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s > rm -f boot2.s.tmp > /usr/local/libexec/ccache/world/cc -m32 -c boot2.s > ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o boot2.out /usr/obj/usr/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/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin > btxld: No such file or directory > *** [boot2.ld] Error code 1 > > Stop in /usr/src/sys/boot/i386/boot2. > *** [realinstall] Error code 1 > There's several other mailing list posts that insist that build orders are wrong or that the date/time is incorrect or off. I always had strictly followed buildworld/installworld all while running ntpd. My workaround was to 'make -C /usr/src/sys/boot/i386' before installworld to avoid this issue, as others have done as well. I realized this time that I was applying local patches to the tree before buildworld, then reverting the patches before installworld. This changed timestamps of various source files that forced the rebuild during installworld. The real solution was to not revert the files until after installworld and to not change the source tree in any other way between buildworld/installworld. Cheers, Bryan Drewery