hello tim,

i want to disable the garbage collector, too. you wrote "This can be done by setting USE_GC to 0 in object/id/libid.c". this does not work for me. i did a fresh svn checkout of the repository, applied the change to the libid.c file and called make. it compiles a lot of things but stops in the function/objects directory (see output at the bottom).

what else did you do to get it working? did you use another version instead of the HEAD revision? i am using linux with gcc 4.3.3. is this maybe a problem?

regards,
ingo

$ make
<everything is fine until this error pops up>
/bin/sh -ec 'for dir in object function; do ( cd $dir; make ); done'
make[1]: Entering directory `/home/ingo/svn/clean_idst/object'
cp -p idc/idc stage1/idc
cp -p idc/idc stage2/idc
make[1]: Leaving directory `/home/ingo/svn/clean_idst/object'
make[1]: Entering directory `/home/ingo/svn/clean_idst/function'
/bin/sh -ec 'for dir in objects jolt-burg jolt2; do ( cd $dir; make ); done'
make[2]: Entering directory `/home/ingo/svn/clean_idst/function/objects'
./idc -O -k -g -c _object.st -o _object.o
/home/ingo/svn/clean_idst/function/objects/../../object/stage2/st80.so: /home/ingo/svn/clean_idst/function/objects/../../object/stage2/st80.so: undefined symbol: GC_init

import: st80.so: No such file or directory

make[2]: *** [_object.o] Error 1
make[2]: Leaving directory `/home/ingo/svn/clean_idst/function/objects'
make[2]: Entering directory `/home/ingo/svn/clean_idst/function/jolt-burg'
/bin/sh -ec 'cd ../objects;  make'
make[3]: Entering directory `/home/ingo/svn/clean_idst/function/objects'
./idc -O -k -g -c _object.st -o _object.o
/home/ingo/svn/clean_idst/function/objects/../../object/stage2/st80.so: /home/ingo/svn/clean_idst/function/objects/../../object/stage2/st80.so: undefined symbol: GC_init

import: st80.so: No such file or directory

make[3]: *** [_object.o] Error 1
make[3]: Leaving directory `/home/ingo/svn/clean_idst/function/objects'
make[2]: *** [../objects/objects.a] Error 2
make[2]: Leaving directory `/home/ingo/svn/clean_idst/function/jolt-burg'
make[2]: Entering directory `/home/ingo/svn/clean_idst/function/jolt2'
/bin/sh -ec 'cd ../objects;  make'
make[3]: Entering directory `/home/ingo/svn/clean_idst/function/objects'
./idc -O -k -g -c _object.st -o _object.o
/home/ingo/svn/clean_idst/function/objects/../../object/stage2/st80.so: /home/ingo/svn/clean_idst/function/objects/../../object/stage2/st80.so: undefined symbol: GC_init

import: st80.so: No such file or directory

make[3]: *** [_object.o] Error 1
make[3]: Leaving directory `/home/ingo/svn/clean_idst/function/objects'
make[2]: *** [../objects/objects.a] Error 2
make[2]: Leaving directory `/home/ingo/svn/clean_idst/function/jolt2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ingo/svn/clean_idst/function'
make: *** [all] Error 2

Tim Molderez schrieb:
Hi Mike,

I have encountered GC issues as well. I think an error message with something about "GC_INNER_STACK_CLEAR" was displayed infinitely at the end of my multithreaded programs... The quickest way to solve that problem was to simply disable the garbage collector, which is what I've done. (This can be done by setting USE_GC to 0 in object/id/libid.c)

However, I've also discovered that the GC already should have multithreading support. I thought the only change I needed to make was to add the flags "-DGC_LINUX_THREADS -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC" to the CFLAGS variable in object/gc6.7/Makefile. Just doing that didn't seem to be sufficient though, since the gcc linker complained about every call to the pthreads library. I'm guessing I should add another -lpthread flag somewhere, but I haven't figured out yet where exactly...

Cheers,
Tim

Michael Roberts schreef:
Hi, i find this intersting. I had made a start a while back on trying
to naively integrate pthreads into COLA.  I got distracted from that
but at the time got stuck with what I thought were GC issues.  Has
this been a problem for you? do you do anything specific in your build
for multi-threaded GC support.

many thanks,
Mike

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc


_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to