NetBSD Problem Report #36498

From ginsbach@netbsd.org  Fri Jun 15 21:54:03 2007
Return-Path: <ginsbach@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9122063B924
	for <gnats-bugs@gnats.netbsd.org>; Fri, 15 Jun 2007 21:54:03 +0000 (UTC)
Message-Id: <20070615215403.84EF863B132@mail.netbsd.org>
Date: Fri, 15 Jun 2007 21:54:03 +0000 (UTC)
From: ginsbach@NetBSD.org
Reply-To: ginsbach@NetBSD.org
To: gnats-bugs@NetBSD.org
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
>Organization:
NetBSD
>Environment:
System: IRIX indy 6.5 10070055 IP22
Architecture: mips
Machine: IP22
>Description:
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
installed.

>How-To-Repeat:
Build something simple like pkgtools/digest on an IRIX system.

>Fix:
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/gcc.mk, 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).

>Release-Note:

>Audit-Trail:

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


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


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


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

I'll try to fix it.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

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