Re: [Gc] FreeBSD/ia64 build error: ./include/private/gcconfig.h:2436:3: error: #error --> undefined ALIGNMENT
Vitaly Magerya <[email protected]>
| Newsgroups | gmane.comp.programming.garbage-collection.boehmgc |
|---|---|
| Message-ID | <[email protected]> |
Anton Shterenlikht wrote: > Ivan, Vitaly, thank you. > > With this patch: > > # cat files/patch-include-private-gcconfig.h > --- include/private/gcconfig.h.orig 2013-11-10 08:51:30.000000000 +0000 > +++ include/private/gcconfig.h 2014-04-28 09:04:12.000000000 +0100 > @@ -1846,6 +1846,20 @@ > # endif > # define ALIGNMENT 8 > # endif > +# ifdef FREEBSD > +# define OS_TYPE "FREEBSD" > +# define CPP_WORDSZ 64 > +# define ALIGNMENT 8 > +# define SEARCH_FOR_DATA_START > +# define FREEBSD_STACKBOTTOM > +# ifdef __ELF__ > +# define DYNAMIC_LOADING > +# endif > +# define BACKING_STORE_ALIGNMENT 0x100000 > +# define BACKING_STORE_DISPLACEMENT 0x80000000 > + extern ptr_t GC_register_stackbottom; > +# define BACKING_STORE_BASE GC_register_stackbottom > +# endif > # endif > > # ifdef M88K > # It is my understanding that this patch should not work. It should compile, but the GC should leak memory, or possibly crash with it. > Are there any checks I can do to see that > it works ok? Yes, run "make regression-test" from the ports directory. If it succeeds, do the same for devel/boehm-gc-threaded. If that succeeds as well, repeat the test a few more times (a hundred will do).