pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/36498: IRIX: PKGSRC_COMPILER=gcc incorrectly calls /usr/bin/cc

>Number:         36498
>Category:       pkg
>Synopsis:       IRIX: PKGSRC_COMPILER=gcc incorrectly calls /usr/bin/cc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 15 21:55:00 +0000 2007
>Originator:     Brian Ginsbach
>Release:        pkgsrc-2007Q1
System: IRIX indy 6.5 10070055 IP22
Architecture: mips
Machine: IP22
The buildlink wrapper for the compiler ends up calling /usr/bin/cc.

This fails since this will either call the MIPSPro C front-end with
GCC flags (and fail) or fail if the MIPSPro C compiler is not

Build something simple like pkgtools/digest on an IRIX system.

A workaround seems to be to set CC=gcc in etc/mk.conf.

If using the SGI IRIX Freeware GCC this work around requires that
_LINKER_RPATH_FLAG, in mk/compiler/, be changed to -rpath
for the IRIX Development Foundation linker (/usr/bin/ld).

I'm not sure what should change with all the pkgsrc magic to make
the correct compiler choice.  It also seems like bad form to assume
that GCC will also only use GNU Binutils (as, ld).

Home | Main Index | Thread Index | Old Index