[Gc] Problem compiling gc 6.3 alpha2

Boehm, Hans hans_boehm@hp.com
Mon, 10 Nov 2003 19:58:45 -0800


The problem is that ECOS is defined for a Linux target.  You basically have
two options:

1) Check that you passed reasonable (or no) configure options.  If so,
determine why configure added the -DECOS=1.  (I have not seen this failure
before even though Linux is my primary development platform, and I'm sure
the same is true for many other users.)

2) If a static gc.a library is sufficient:

	cp Makefile.direct Makefile; make test

Hans
> -----Original Message-----
> From: gc-admin@napali.hpl.hp.com [mailto:gc-admin@napali.hpl.hp.com]On
> Behalf Of Pierre
> Sent: Saturday, November 08, 2003 6:32 PM
> To: gc@napali.hpl.hp.com
> Subject: [Gc] Problem compiling gc 6.3 alpha2
> 
> 
> Hi,
> 
> I try to compile gc6.3alpha2 on my GNU/Linux system with gcc-3.3
> there was no problem with the configure, but for the make I got this :
> 
> # gmake
> Making all in doc
> gmake[1]: Entering directory `/tmp/gc6.3alpha2/doc'
> gmake[1]: Nothing to be done for `all'.
> gmake[1]: Leaving directory `/tmp/gc6.3alpha2/doc'
> Making all in include
> gmake[1]: Entering directory `/tmp/gc6.3alpha2/include'
> gmake[1]: Nothing to be done for `all'.
> gmake[1]: Leaving directory `/tmp/gc6.3alpha2/include'
> gmake[1]: Entering directory `/tmp/gc6.3alpha2'
> source='os_dep.c' object='os_dep.lo' libtool=yes \
> depfile='.deps/os_dep.Plo' tmpdepfile='.deps/os_dep.TPlo' \
> depmode=gcc3 /bin/sh ./depcomp \
> /bin/sh ./libtool --mode=compile gcc -s -DPACKAGE_NAME=\"gc\" 
> -DPACKAGE_TARNAME=\"gc\" -DPACKAGE_VERSION=\"6.3alpha2\" 
> -DPACKAGE_STRING=\"gc\ 6.3alpha2\" 
> -DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\" -DGC_VERSION_MAJOR=6 
> -DGC_VERSION_MINOR=3 -DGC_ALPHA_VERSION=2 -DPACKAGE=\"gc\" 
> -DVERSION=\"6.3alpha2\" -DGC_LINUX_THREADS=1 -D_REENTRANT=1 
> -DPARALLEL_MARK=1 -DTHREAD_LOCAL_ALLOC=1 -DECOS=1 -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 
> -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 
> -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 
> -DATOMIC_UNCOLLECTABLE=1  -I./include 
> -I/usr/local/BerkeleyDB.4.1/include -fexceptions -O3 -march=i686 
> -fexceptions  -c -o os_dep.lo `test -f 'os_dep.c' || echo 
> './'`os_dep.c
> rm -f .libs/os_dep.lo
> gcc -s -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" 
> -DPACKAGE_VERSION=\"6.3alpha2\" "-DPACKAGE_STRING=\"gc 6.3alpha2\"" 
> -DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\" -DGC_VERSION_MAJOR=6 
> -DGC_VERSION_MINOR=3 -DGC_ALPHA_VERSION=2 -DPACKAGE=\"gc\" 
> -DVERSION=\"6.3alpha2\" -DGC_LINUX_THREADS=1 -D_REENTRANT=1 
> -DPARALLEL_MARK=1 -DTHREAD_LOCAL_ALLOC=1 -DECOS=1 -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 
> -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 
> -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 
> -DATOMIC_UNCOLLECTABLE=1 -I./include 
> -I/usr/local/BerkeleyDB.4.1/include 
> -fexceptions -O3 -march=i686 -fexceptions -c os_dep.c -MT 
> os_dep.lo -MD 
> -MP -MF .deps/os_dep.TPlo  -fPIC -DPIC -o .libs/os_dep.lo
> os_dep.c:355:1: warning: "setjmp" redefined
> os_dep.c:130:1: warning: this is the location of the previous 
> definition
> os_dep.c:362: error: `brk' redeclared as different kind of symbol
> /usr/include/unistd.h:866: error: previous declaration of `brk'
> os_dep.c:362: warning: `brk' was declared `extern' and later `static'
> os_dep.c: In function `GC_get_stack_base':
> os_dep.c:820: error: `STACKBOTTOM' undeclared (first use in 
> this function)
> os_dep.c:820: error: (Each undeclared identifier is reported only once
> os_dep.c:820: error: for each function it appears in.)
> gmake[1]: *** [os_dep.lo] Error 1
> gmake[1]: Leaving directory `/tmp/gc6.3alpha2'
> gmake: *** [all-recursive] Error 1
> 
> 
> 
> It would be great if you could help me with this !
> 
> 
> Best regards,
> 
> 
> Pierre.
> 
> _______________________________________________
> Gc mailing list
> Gc@linux.hpl.hp.com
> http://linux.hpl.hp.com/cgi-bin/mailman/listinfo/gc
>