Subject: toolchain/18697: Suggest refering to the full build, host, target in cross compile doco
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cagney@mac.com>
List: netbsd-bugs
Date: 10/18/2002 09:36:04
>Number:         18697
>Category:       toolchain
>Synopsis:       Suggest refering to the full build, host, target in cross compile doco
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 18 09:37:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Cagney
>Release:        1.6 userland
>Organization:
>Environment:
(?) I'm reading http://www.netbsd.org/Documentation/cross/

>Description:
Suggest expanding the terminology a little.  See GCC's cross compile section.

I think it should identify all three systems potentially involved in the build process and then narrow things down to the case at hand.  Off the top of my head (i.e., don't trust this):

host: the system that the tools will run on
target: the system that the tools will generate code for
build: the system being used to compile the tools

typically either:

host=build & target
build & host=target

The NetBSD process involves two steps:

build=`uname`; host=`uname`; target=TARGET
Build a cross compiler that will generate code for TARGET.

build=`uname`; host=TARGET; target=TARGET
Cross compile the system using the just build cross compiler.


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: