pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45834: devel/bison dumps core in net/libIDL on NetBSD/arm -current



>Number:         45834
>Category:       pkg
>Synopsis:       devel/bison dumps core in net/libIDL on NetBSD/arm -current
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 14 12:50:01 +0000 2012
>Originator:     Izumi Tsutsui
>Release:        NetBSD 5.99.59 201201010000Z
>Organization:
>Environment:
System: NetBSD 5.99.59 (WZERO3) #0: Sun Jan  1 06:08:38 UTC 2012 \
 
builds%b8.netbsd.org@localhost:/home/builds/ab/HEAD/hpcarm/201201010000Z-obj/home/builds/ab/HEAD/src/sys/arch/hpcarm/compile/WZERO3
 hpcarm
Architecture: arm
Machine: hpcarm (and also zaurus)
>Description:
pkgsrc bison dumps core in lib/libIDL on creating stamp-parser
on NetBSD/hpcarm 5.99.59 while packages bison binary built on 5.99.55
(using gcc-4.1.3) works fine.

>How-To-Repeat:
# cd pkgsrc/net/libIDL
# make

then bison segfaults.

>Fix:
bison/hacks.mk already mentions the similar problem on sunpro compiler.
Building bison with -O (not -O2) works around too.
(though probably the bison source has some real problem)

Index: hacks.mk
===================================================================
RCS file: /cvsroot/pkgsrc/devel/bison/hacks.mk,v
retrieving revision 1.2
diff -u -p -r1.2 hacks.mk
--- hacks.mk    22 Feb 2007 19:26:20 -0000      1.2
+++ hacks.mk    14 Jan 2012 12:42:16 -0000
@@ -15,4 +15,11 @@ PKG_HACKS+=          optimisation
 BUILDLINK_TRANSFORM+=  rm:-O[0-9]*
 .endif
 
+### gcc-4.5.3 in NetBSD/arm 5.99.59 also breaks bison in net/libIDL.
+### -O seems enough for workaround in this case.
+.if !empty(MACHINE_PLATFORM:MNetBSD-5.99.*-arm) && 
!empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+=            optimisation
+BUILDLINK_TRANSFORM+=  rename:-O[0-9]*:-O
+.endif
+
 .endif # BISON_HACKS_MK



Home | Main Index | Thread Index | Old Index