pkgsrc-Bugs archive

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

pkg/42634: Boehm GC compilation on NetBSD-5.99.23/sparc



>Number:         42634
>Category:       pkg
>Synopsis:       Boehm GC compilation on NetBSD-5.99.23/sparc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 17 17:55:00 +0000 2010
>Originator:     BERTRAND Joël
>Release:        NetBSD-current/sparc
>Organization:
>Environment:
NetBSD riemann 5.99.23 NetBSD 5.99.23 (GENERIC) #0: Tue Jan 12 10:33:02 CET 
2010  root@riemann:/usr/src/obj/sys/arch/sparc/compile/GENERIC sparc

>Description:
I'm not able to build Boehm GC on NetBSD/sparc due to a mistake in source code. 
GC_push_regs is defined in C source (mach_dep.c) and in assembler 
(sparc_netbsd_mach_dep.s).
>How-To-Repeat:
Build Boehm GC (boehm-gc-7.1nb2) from pkgsrc on sparc and wait for crash ;-)
>Fix:
Please apply this patch.

--- mach_dep.c.orig     2010-01-17 15:52:44.000000000 +0100
+++ mach_dep.c  2010-01-17 15:48:33.000000000 +0100
@@ -78,6 +78,7 @@
 #if defined(USE_ASM_PUSH_REGS)
 #  define HAVE_PUSH_REGS
 #else  /* No asm implementation */
+#if !defined(SPARC)
 void GC_push_regs()
 {
 #      if defined(M68K) && defined(AMIGA)
@@ -150,6 +151,7 @@
 #      endif   /* __MWERKS__ */
 #   endif      /* MACOS */
 }
+#endif
 #endif /* !USE_ASM_PUSH_REGS */
 
 #if defined(HAVE_PUSH_REGS) && defined(THREADS)



Home | Main Index | Thread Index | Old Index