NetBSD Problem Report #48424

From duck@shangtai.net  Thu Dec  5 01:03:03 2013
Return-Path: <duck@shangtai.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E83E4A644F
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  5 Dec 2013 01:03:03 +0000 (UTC)
Message-Id: <20131204232953.8F400A75CC@knightrider.shangtai.net>
Date: Thu,  5 Dec 2013 01:29:53 +0200 (EET)
From: duck@shangtai.net
Reply-To: duck@shangtai.net
To: gnats-bugs@gnats.NetBSD.org
Subject: -Wp,-MD wrapper needed for MIPSPro
X-Send-Pr-Version: 3.95

>Number:         48424
>Category:       pkg
>Synopsis:       -Wp,-MD wrapper needed for MIPSPro
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    irix-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 05 01:05:00 +0000 2013
>Last-Modified:  Tue Dec 10 10:34:09 +0000 2013
>Originator:     duck@shangtai.net
>Release:        pkgsrc-2013Q3
>Organization:
>Environment:
System: IRIX64 halo 6.5 6.5.29m 01090133 IP30
Architecture: mips
Machine: IP30
>Description:
While compiling libwww I found that it tries to pass -Wp,-MD,somedepfile to
the compiler, this gets just passed through and causes mipspro to think
it should compile somedepfile (-MD is not a valid option and does not accept
an argument) which does not exist and the build breaks.
>How-To-Repeat:
Try to build libwww on IRIX with MIPSPro (7.4.4)
>Fix:
The following patch will solve the issue. Note: this does create a depfile, and
some other pkg may incorrectly assume that the depfile is in a gnu-like format
and potentially break. I have not come across such a pkg.

Index: transform-mipspro-cc
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/transform-mipspro-cc,v
retrieving revision 1.11
diff -u -r1.11 transform-mipspro-cc
--- transform-mipspro-cc        15 Jun 2007 15:34:31 -0000      1.11
+++ transform-mipspro-cc        4 Dec 2013 23:28:40 -0000
@@ -68,6 +68,7 @@
 -R*            ) transform_to "-Wl,-rpath,${arg#-R}" ;;
 -Wl,-R*                ) transform_to "-Wl,-rpath,${arg#-Wl,-R}" ;;

+-Wp,-MD,*      ) transform_to "-Wp,-MDupdate,${arg#-Wp,-MD,}" ;;
 # The MIPSpro compiler accepts these -W* directives, so just pass them
 # on through.
 -W[ablfpR]*,*  ) transform_pass ;;

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 10 Dec 2013 10:34:09 +0000
Responsible-Changed-Why:
Problem on IRIX with PIPSPro.


>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.