NetBSD Problem Report #36498

From  Fri Jun 15 21:54:03 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 9122063B924
	for <>; Fri, 15 Jun 2007 21:54:03 +0000 (UTC)
Message-Id: <>
Date: Fri, 15 Jun 2007 21:54:03 +0000 (UTC)
Subject: IRIX: PKGSRC_COMPILER=gcc incorrectly calls /usr/bin/cc
X-Send-Pr-Version: 3.95

>Number:         36498
>Category:       pkg
>Synopsis:       IRIX: PKGSRC_COMPILER=gcc incorrectly calls /usr/bin/cc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    cheusov
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 15 21:55:00 +0000 2007
>Last-Modified:  Mon Aug 22 22:54:29 +0000 2011
>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).



Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-When: Fri, 15 Jun 2007 22:10:30 +0000
I'll take it.

Responsible-Changed-From-To: rillig->pkg-manager
Responsible-Changed-When: Fri, 20 Nov 2009 11:36:38 +0000
I don't have access to IRIX anymore.

Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-When: Sat, 21 Nov 2009 00:39:15 +0000
Problem on IRIX.

Responsible-Changed-From-To: irix-pkg-people->cheusov
Responsible-Changed-When: Mon, 22 Aug 2011 22:54:29 +0000
bootstrap --compiler gcc
fails as described in this PR when pkgtools/digest is built.

I'll try to fix it.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.