From owner-freebsd-current@FreeBSD.ORG Thu Sep 16 18:55:46 2004 Return-Path: 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 A63EA16A4CE; Thu, 16 Sep 2004 18:55:46 +0000 (GMT) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 746D543D2D; Thu, 16 Sep 2004 18:55:46 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from [192.168.0.10] (jn@c-24-2-72-123.client.comcast.net [24.2.72.123]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id i8GIti7j077606; Thu, 16 Sep 2004 11:55:46 -0700 (PDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-current@freebsd.org Date: Thu, 16 Sep 2004 12:55:43 -0600 User-Agent: KMail/1.7 References: <1095355065.4149cab9b58ff@webmail.jnielsen.net> <53FDD37E-080F-11D9-A3FD-003065ABFD92@mac.com> In-Reply-To: <53FDD37E-080F-11D9-A3FD-003065ABFD92@mac.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_vGeSBeMhWOB7Tn7" Message-Id: <200409161255.43859.lists@jnielsen.net> X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on ns1.jnielsen.net X-Virus-Status: Clean X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Charles Swiger cc: current@freebsd.org Subject: Re: Signal 4 installing kernel/world built for different cputype X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 16 Sep 2004 18:55:46 -0000 --Boundary-00=_vGeSBeMhWOB7Tn7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 16 September 2004 12:36 pm, Charles Swiger wrote: > On Sep 16, 2004, at 1:17 PM, John Nielsen wrote: > > I use a build machine to build world and kernels for other, slower > > machines. The build machine is an Athlon Thunderbird running > > 5.3-BETA4, > > and I'd like to upgrade the other machines to 5.3 as well. I have > > compiled everything that runs on the build system with > > CPUTYPE?=athlon-tbird. > > > > When I do a buildworld/buildkernel for a pentium machine with > > CPUTYPE=i586 > > on make's command line, it looks like I get incompatible binaries in > > obj/usr/src/i386/legacy/usr/bin. > > This is not surprising. You need to set your CPUTYPE to the lowest > common denominator of CPUs which you want the compiled code to run on. Perhaps I wasn't clear. I maintain separate obj directories for each cputype, so code compiled for athlon-tbird goes under obj/tbird, and code compiled for i586 goes under obj/586. I'm attaching my build script and my install scripts for "stealth" (the thunderbird build machine) and "neo" (one of the pentium machines). For major updates I would of course reboot with the new kernel before installing world--I mainly use the install scripts for minor updates. I have watched the build output enough to know that the correct cpu and arch flags are being used, and except for the directory I mentioned above, correct code appears to be generated. The main thing I want to know at the moment is how I could verify that the correct flags are used to build install and friends in the i386/legacy directory, since I already know that the binaries generated in that directory do not work correctly and that others do. JN --Boundary-00=_vGeSBeMhWOB7Tn7--