Subject: pkg/30234: IRIX: PKGSRC_COMPILER=gcc uses mk/wrapper/gcc.mk, but calls /usr/bin/cc (which is MIPSpro)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jmcneill@NetBSD.org>
List: pkgsrc-bugs
Date: 05/15/2005 16:36:00
>Number:         30234
>Category:       pkg
>Synopsis:       IRIX: PKGSRC_COMPILER=gcc uses mk/wrapper/gcc.mk, but calls /usr/bin/cc (which is MIPSpro)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 15 16:36:00 +0000 2005
>Originator:     Jared D. McNeill
>Release:        IRIX 6.5.26m IP32
>Organization:
>Environment:
IRIX iris 6.5 10060437 IP32
>Description:
From /etc/mk.conf:

 PKGSRC_COMPILER=gcc
 OPSYS=IRIX
 ABI=32
 PKG_DBDIR=/var/db/pkg
 LOCALBASE=/usr/pkg
 X11BASE=/usr/pkg
 FETCH_CMD=/usr/pkg/bin/ftp
 PAX=/usr/pkg/bin/pax
 SED=/usr/pkg/bin/nbsed
 IMAKEOPTS+=-DBuildN32 -DSgiISA32=4

The buildlink wrapper for the compiler ends up calling /usr/bin/cc, which is MIPSpro. Since it tries to pass GCC-specific flags, this fails.
>How-To-Repeat:
See above.
>Fix:
Workaround is to set PKGSRC_COMPILER=mipspro and deal with all of the pains that presents.