Re: [Gc] FreeBSD/ia64 build error: ./include/private/gc config.h:2436:3: error: #error --> undefined ALIG NMENT

Ivan Maidanski <ivmai-JGs/[email protected]>
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
 Hi Anton,

Try to add the following:
#       define BACKING_STORE_ALIGNMENT 0x100000
#       define BACKING_STORE_DISPLACEMENT 0x80000000
        extern ptr_t GC_register_stackbottom;
#       define BACKING_STORE_BASE GC_register_stackbottom

Regards,
Ivan

Fri, 25 Apr 2014 15:06:40 +0100 (BST) from Anton Shterenlikht <[email protected]>:
>>From  [email protected] Fri Apr 25 15:02:40 2014
>>
>>Anton Shterenlikht wrote:
>>>>  # 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
>>>>  # endif
>>> 
>>> Thank you. With your patch I get to this failure:
>>> 
>>> /bin/sh ./libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H    -I./include -I./include  -I./libatomic_ops/src -I./libatomic_ops/src   -fexceptions -O2 -pipe  -fno-strict-aliasing -fno-strict-aliasing -MT mark_rts.lo -MD -MP -MF .deps/mark_rts.Tpo -c -o mark_rts.lo mark_rts.c
>>> libtool: compile:  cc -DHAVE_CONFIG_H -I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src -fexceptions -O2 -pipe -fno-strict-aliasing -fno-strict-aliasing -MT mark_rts.lo -MD -MP -MF .deps/mark_rts.Tpo -c mark_rts.c  -fPIC -DPIC -o .libs/mark_rts.o
>>> mark_rts.c: In function 'GC_push_current_stack':
>>> mark_rts.c:652: error: 'BACKING_STORE_BASE' undeclared (first use in this function)
>>> mark_rts.c:652: error: (Each undeclared identifier is reported only once
>>> mark_rts.c:652: error: for each function it appears in.)
>>> *** Error code 1
>>
>>Ah, right. The backing store. Unfortunately I have no clue where it is
>>located in FreeBSD.
>>
>>Tell you what. I'll ask  [email protected] about it (in a few hours) and
>>if I'll get any answer, I'll report back to you with a better suggestion.
>>
>>
>
>Marcel Moolenaar ([email protected]) is the lead freebsd/ia64
>developer. He will know! He will read  [email protected] too.
>
>Many thanks for your help.
>
>Anton
>_______________________________________________
>bdwgc mailing list
>[email protected]
>https://lists.opendylan.org/mailman/listinfo/bdwgc

_______________________________________________
bdwgc mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/bdwgc
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.