From owner-freebsd-bugs Sun Sep 2 17: 0:14 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5961A37B407 for ; Sun, 2 Sep 2001 17:00:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f83002F17017; Sun, 2 Sep 2001 17:00:02 -0700 (PDT) (envelope-from gnats) Received: from lerbsd.lerctr.org (lerbsd.lerctr.org [207.158.72.45]) by hub.freebsd.org (Postfix) with ESMTP id D2D7537B401 for ; Sun, 2 Sep 2001 16:54:32 -0700 (PDT) Received: (from ler@localhost) by lerbsd.lerctr.org (8.11.5/8.11.5/20010512) id f82NsVS84599; Sun, 2 Sep 2001 18:54:31 -0500 (CDT) (envelope-from ler) Message-Id: <200109022354.f82NsVS84599@lerbsd.lerctr.org> Date: Sun, 2 Sep 2001 18:54:31 -0500 (CDT) From: Larry Rosenman Reply-To: Larry Rosenman To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: i386/30276: CPUTYPE=486 built on a CPUTYPE=p3 WORLD breaks on INSTALLWORLD Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30276 >Category: i386 >Synopsis: CPUTYPE=486 built on a CPUTYPE=p3 WORLD breaks on INSTALLWORLD >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 02 17:00:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Larry Rosenman >Release: FreeBSD 4.4-RC i386 >Organization: LERCTR Consulting, Garland, TX >Environment: System: FreeBSD lerbsd.lerctr.org 4.4-RC FreeBSD 4.4-RC #17: Sat Aug 18 17:22:20 CDT 2001 ler@lerbsd.lerctr.org:/usr/obj/usr/src/sys/LERBSD i386 >Description: The cross-tools that are built use the *HOST* libc.a. Therefore certain tools that are executed on the *TARGET* machine will possibly be linked with inappropriate libraries. The strip binary used during installworld is one of these, there may be others. I've had a discussion with Marcel Moolenaar and John Baldwin on the freebsd-stable list both recently and around the 4.3-RELEASE cycle. This PR is to avoid the issue being lost. >How-To-Repeat: Build/Install world with /etc/make.conf having CPUTYPE=p3. Update /etc/make.conf to change CPUTYPE=i486 make buildworld NFS mount /usr/obj and /usr/src onto a 486 make installworld on the 486 watch strip die with SIGILL (signal #4) due to a P3 (cmova) instruction in the strip binary. >Fix: Update build system to NOT include host libc.a in any tools that will be executed on the target system. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message