NetBSD Problem Report #48424

From  Thu Dec  5 01:03:03 2013
Return-Path: <>
Received: from ( [])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id E83E4A644F
	for <>; Thu,  5 Dec 2013 01:03:03 +0000 (UTC)
Message-Id: <>
Date: Thu,  5 Dec 2013 01:29:53 +0200 (EET)
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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 05 01:05:00 +0000 2013
>Closed-Date:    Tue Nov 20 09:21:52 +0000 2018
>Last-Modified:  Tue Nov 20 09:25:00 +0000 2018
>Release:        pkgsrc-2013Q3
System: IRIX64 halo 6.5 6.5.29m 01090133 IP30
Architecture: mips
Machine: IP30
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.
Try to build libwww on IRIX with MIPSPro (7.4.4)
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 ;;



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

State-Changed-From-To: open->closed
State-Changed-When: Tue, 20 Nov 2018 09:21:52 +0000
Applied, sorry for the delay. Thanks for the patc.

From: "Maya Rashish" <>
Subject: PR/48424 CVS commit: pkgsrc/mk/wrapper
Date: Tue, 20 Nov 2018 09:21:23 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Tue Nov 20 09:21:23 UTC 2018

 Modified Files:
 	pkgsrc/mk/wrapper: transform-mipspro-cc

 Log Message:
 Add a rule for -Wp,-MD, which isn't provided by MIPSPro.
 MDupdate is the equivalent.

 From duck in PR pkg/48424.

 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/mk/wrapper/transform-mipspro-cc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.