Date: Sun, 2 Sep 2001 18:54:31 -0500 (CDT) From: Larry Rosenman <ler@lerctr.org> To: FreeBSD-gnats-submit@freebsd.org Subject: i386/30276: CPUTYPE=486 built on a CPUTYPE=p3 WORLD breaks on INSTALLWORLD Message-ID: <200109022354.f82NsVS84599@lerbsd.lerctr.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109022354.f82NsVS84599>
