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
System: NetBSD 5.99.59 (WZERO3) #0: Sun Jan  1 06:08:38 UTC 2012 \
Architecture: arm
Machine: hpcarm (and also zaurus)
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.

# cd pkgsrc/net/libIDL
# make

then bison segfaults.

bison/ 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)

RCS file: /cvsroot/pkgsrc/devel/bison/,v
retrieving revision 1.2
diff -u -p -r1.2
---    22 Feb 2007 19:26:20 -0000      1.2
+++    14 Jan 2012 12:42:16 -0000
@@ -15,4 +15,11 @@ PKG_HACKS+=          optimisation
+### 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) && 
+PKG_HACKS+=            optimisation
+BUILDLINK_TRANSFORM+=  rename:-O[0-9]*:-O
 .endif # BISON_HACKS_MK

Home | Main Index | Thread Index | Old Index