Subject: port-playstation2/16249: playstation2 kernel build uses gratuitously odd toolchain
To: None <gnats-bugs@gnats.netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: netbsd-bugs
Date: 04/08/2002 19:07:57
>Number:         16249
>Category:       port-playstation2
>Synopsis:       playstation2 kernel build uses odd toolchain
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-playstation2-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 08 11:08:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ben Harris
>Release:        2002-04-07
>Organization:
>Environment:
Cross-compile from Debian GNU/Linux 2.2
>Description:
sys/arch/playstation2/conf/Makefile.playstation2.inc contains:

EETOOLDIR       =       /usr/pkg/cross-ps2
TARGET  =       mipsEEel-netbsd

CC      =       ${EETOOLDIR}/bin/${TARGET}-gcc
LD      =       ${EETOOLDIR}/bin/${TARGET}-ld
CXX     =       ${EETOOLDIR}/bin/${TARGET}-g++
AS      =       ${EETOOLDIR}/bin/${TARGET}-as
CPP     =       ${EETOOLDIR}/bin/${TARGET}-cpp
RANLIB  =       ${EETOOLDIR}/bin/${TARGET}-ranlib
AR      =       ${EETOOLDIR}/bin/${TARGET}-ar
NM      =       ${EETOOLDIR}/bin/${TARGET}-nm
SIZE    =       ${EETOOLDIR}/bin/${TARGET}-size
STRIP   =       ${EETOOLDIR}/bin/${TARGET}-strip

This overrides the normal cross-compile (or indeed native)  toolchain, so
that kernel builds (e.g. as part of a "make release")  have no chance of
success.

>How-To-Repeat:
	MACHINE=playstation2
        sh build.sh \
                -U -m $MACHINE \
                -T /u1/ben/netbsd/tools \
                -O /u1/ben/netbsd/obj.$MACHINE \
                -D /u1/ben/netbsd/dest.$MACHINE \
                -R /u1/ben/netbsd/release.$MACHINE \
                > build.log.$MACHINE 2>&1

>Fix:

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