[Gc] FreeBSD/ia64 build error: ./include/private/gcconfig.h:2436:3: error: #error --> undefined ALIGNMENT

Anton Shterenlikht <[email protected]>
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
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
# 

I can install boehm-gc from FreeBSD ports:

# make install
===>  Installing for boehm-gc-7.2e
===>  Checking if devel/boehm-gc already installed
===>   Registering installation for boehm-gc-7.2e
Installing boehm-gc-7.2e... done
#

Are there any checks I can do to see that
it works ok?

Thanks again

Anton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.