From owner-freebsd-qa Mon Mar 12 12:48:22 2001 Delivered-To: freebsd-qa@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 49D4437B718; Mon, 12 Mar 2001 12:48:15 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f2CKjPA86143; Mon, 12 Mar 2001 12:45:25 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3AAD2ADB.51D810D8@cup.hp.com> Date: Mon, 12 Mar 2001 12:45:06 -0800 (PST) From: John Baldwin To: Marcel Moolenaar Subject: Re: cputype=486 Cc: Larry Rosenman , qa@FreeBSD.org, marcel@FreeBSD.org Sender: owner-freebsd-qa@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12-Mar-01 Marcel Moolenaar wrote: > John Baldwin wrote: >> >> It looks like strip is linked against /usr/lib/libc.a. >> >> Marcel, >> >> It looks like there may be a bug in buildworld. It seems that static >> binaries >> are being linked against /usr/lib/libc.a rather than >> /usr/obj/usr/src/i386/lib/libc/libc.a. > > In what stage? The final strip binary that will live in /usr/bin/strip on the target machine. >> across architectures could work if this is so. In the case described, the >> host >> machine was built with -march=pentiumpro, and world was built w/o this flag >> because it was intended to be installed on a 486. > > This doesn't work. The object tree will contain binaries compiled for > Pentium Pro processors and thus may contain instructions not present on > i486. The binaries I'm talking about are those that are *explicitly* > compiled to be run on the build machine. This includes the bootstrap, > build and cross tools. These tools are also used during install and thus > must be compatible with the machine you're installing on. > > In short: Do not not build on Pentium with -march=pentiumsomething and > then later install on non-pentiums! Uh, how can cross-builds _possibly_ work then???? If I do a i386 -> alpha cross build does the alpha /usr/bin/strip get linked against the i386 /usr/lib/libc.a on the host machine?? Or is libc treated magically by the compiler? For that matter, what if a static binary uses a new function added to libc, how in the world will that link if we all our binaries against the old libc during the world? That's just wrong. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-qa" in the body of the message