Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 99936 Details for
Bug 151825
guile fails to compile on g/fbsd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow guile to compile on FreeBSD
guile-1.6.7-fbsd.patch (text/plain), 2.57 KB, created by
Roy Marples (RETIRED)
on 2006-10-18 05:12:58 UTC
(
hide
)
Description:
Allow guile to compile on FreeBSD
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2006-10-18 05:12:58 UTC
Size:
2.57 KB
patch
obsolete
>--- libguile/gc_os_dep.c.orig 2006-10-18 06:48:13 +0000 >+++ libguile/gc_os_dep.c 2006-10-18 07:01:34 +0000 >@@ -107,6 +107,11 @@ > # define OPENBSD > # define mach_type_known > # endif >+# if defined(__FreeBSD__) && defined(__sparc__) >+# define SPARC >+# define FREEBSD >+# define mach_type_known >+# endif > # if defined(__NetBSD__) && defined(__powerpc__) > # define POWERPC > # define NETBSD >@@ -185,7 +190,7 @@ > # define mach_type_known > # endif > # if defined(sparc) && defined(unix) && !defined(sun) && !defined(linux) \ >- && !defined(__OpenBSD__) >+ && !defined(__FreeBSD__) && !defined(__OpenBSD__) > # define SPARC > # define DRSNX > # define mach_type_known >@@ -241,7 +246,21 @@ > # define ARM32 > # define mach_type_known > # endif >-# if defined(__alpha) || defined(__alpha__) >+# if defined(__FreeBSD__) && defined(__ia64__) >+# define FREEBSD >+# define IA64 >+# define mach_type_known >+# endif >+# if defined(__FreeBSD__) && defined(__amd64__) >+# define FREEBSD >+# define AMD64 >+# define mach_type_known >+# endif >+# if defined(__FreeBSD__) && defined(__alpha__) >+# define FREEBSD >+# define ALPHA >+# define mach_type_known >+# elif defined(__alpha) || defined(__alpha__) > # define ALPHA > # if !defined(LINUX) > # define OSF1 /* a.k.a Digital Unix */ >@@ -763,6 +782,15 @@ > # define SVR4 > # define STACKBOTTOM ((ptr_t) 0xf0000000) > # endif >+# ifdef FREEBSD >+# define OS_TYPE "FREEBSD" >+# include <machine/frame.h> >+# define ALIGNMENT 8 >+# define CPP_WORDSZ 64 >+# define ALIGN_DOUBLE >+# define STACKBOTTOM ((ptr_t) 0xf8000000) >+# define DATASTART ((ptr_t)(&etext)) >+# endif > # ifdef OPENBSD > # define OS_TYPE "OPENBSD" > # define STACKBOTTOM ((ptr_t) 0xf8000000) >@@ -1148,6 +1176,13 @@ > # endif > # endif > >+# ifdef AMD64 >+# define MACH_TYPE "AMD64" >+# define ALIGN_DOUBLE >+# define ALIGNMENT 8 >+# define USE_GENERIC_PUSH_REGS >+# endif >+ > # ifdef IA64 > # define MACH_TYPE "IA64" > # define ALIGN_DOUBLE >@@ -1491,7 +1526,7 @@ > # include <setjmp.h> > #endif > >-#ifdef FREEBSD >+#if defined(FREEBSD) && defined(I386) > # include <machine/trap.h> > #endif > >--- libguile/__scm.h.orig Sat Apr 12 14:16:08 2003 >+++ libguile/__scm.h Sun Jun 1 16:32:36 2003 >@@ -354,7 +354,8 @@ > * that all the state of the process is contained in the stack. > */ > >-#if defined (sparc) || defined (__sparc__) || defined (__sparc) >+#if (defined (sparc) || defined (__sparc__) || defined (__sparc)) && \ >+ (!defined(__FreeBSD__)) > # define SCM_FLUSH_REGISTER_WINDOWS asm("ta 3") > #else > # define SCM_FLUSH_REGISTER_WINDOWS /* empty */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 151825
: 99936