NetBSD Problem Report #47199

From www@NetBSD.org  Fri Nov 16 12:34:35 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id A919263E845
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 16 Nov 2012 12:34:34 +0000 (UTC)
Message-Id: <20121116123433.E2BB063E845@www.NetBSD.org>
Date: Fri, 16 Nov 2012 12:34:33 +0000 (UTC)
From: glynastill@yahoo.co.uk
Reply-To: glynastill@yahoo.co.uk
To: gnats-bugs@NetBSD.org
Subject: Libffi 3.0.11 fails to compile on NetBSD 5.1.2
X-Send-Pr-Version: www-1.0

>Number:         47199
>Category:       pkg
>Synopsis:       Libffi 3.0.11 fails to compile on NetBSD 5.1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 16 12:35:01 +0000 2012
>Closed-Date:    Tue Feb 05 23:47:40 +0000 2013
>Last-Modified:  Tue Feb 05 23:47:40 +0000 2013
>Originator:     Glyn Astill
>Release:        5.1.2 cobalt generic
>Organization:
see tickets
>Environment:
NetBSD bsd.8kb.co.uk 5.1.2 NetBSD 5.1.2 (GENERIC) #0: Thu Feb  2 13:33:26 UTC 2012  builds@b7.netbsd.org:/home/builds/ab/netbsd-5-1-2-RELEASE/cobalt/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/cobalt/compile/GENERIC cobalt
>Description:
Libffi 3.0.11 from pkgsrc fails to compile on cobalt qube2 in ffitarget.h with the error;

         -- something is very wrong --

The issue appears to be due to _MIPS_SIM not being defined.  I defined it as 32 bit just before the error in ffitarget.h to get around for now as below, however I'm not sure of the implications of this not being set to begin with.

         #ifndef _MIPS_SIM
         #  define _MIPS_SIM _ABIO32
         #endif

>How-To-Repeat:
Cobalt qube on 5.1.2 using restorecd
Get pkgsrc 2012Q3, (attempted to update via cvs but no updates)
Make install libffi from pkgsrc
>Fix:
Add the following in ffitarget.h:

         #ifndef _MIPS_SIM
         #  define _MIPS_SIM _ABIO32
         #endif

Just before 

         #if !defined(_MIPS_SIM)
         # error -- something is very wrong --

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-cobalt-maintainer->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 18 Nov 2012 14:09:48 +0000
Responsible-Changed-Why:
pkgsrc problem.


From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47199 CVS commit: pkgsrc/devel/libffi
Date: Tue, 18 Dec 2012 12:33:07 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Tue Dec 18 12:33:07 UTC 2012

 Modified Files:
 	pkgsrc/devel/libffi: distinfo
 	pkgsrc/devel/libffi/patches: patch-ae

 Log Message:
 Fix PR/47199

 Restore _MIPS_SIM workaround, removed during updating to rev. 1.4 of patch-ae.
 Functionality is not tested yet.


 To generate a diff of this commit:
 cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/libffi/distinfo
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/libffi/patches/patch-ae

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

State-Changed-From-To: open->feedback
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Tue, 18 Dec 2012 12:36:41 +0000
State-Changed-Why:
Please test latest libffi.
Thank you.


From: Glyn Astill <glynastill@yahoo.co.uk>
To: "gnats-bugs@gnats.netbsd.org" <gnats-bugs@gnats.netbsd.org>
Cc: 
Subject: Re: port-cobalt/47199
Date: Tue, 5 Feb 2013 11:35:28 +0000 (GMT)

 =0A=0A=0A=0A----- Original Message -----=0A> From: Glyn Astill <glynastill@=
 yahoo.co.uk>=0A> Pkgsrc compile tested and working.=0A> 

From: Glyn Astill <glynastill@yahoo.co.uk>
To: "gnats-bugs@gnats.netbsd.org" <gnats-bugs@gnats.netbsd.org>
Cc: 
Subject: RE: pkg/47199
Date: Tue, 5 Feb 2013 11:34:09 +0000 (GMT)

 Pkgsrc compile tested and working.=0A

State-Changed-From-To: feedback->closed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Tue, 05 Feb 2013 23:47:40 +0000
State-Changed-Why:
Reportedly fixed. Thank you!


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