[Gc] GC compile on IRIX 6.5

Boehm, Hans hans.boehm at hp.com
Wed May 18 12:04:52 PDT 2005


I have a number of Irix bug fixes in 6.5, which I think should address
these problems.  I'll try to get that out asap.
 
Parallel marking support may not work, even then.  But it should only
require a small amount of further work.
 
(In 6.4, Irix did not use the standard Pthread support, and parallel
marking is only implemented there.  In
6.5 and 7.0 it will.)
 
Hans

	-----Original Message-----
	From: gc-bounces at napali.hpl.hp.com
[mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Steven Queen
	Sent: Wednesday, May 18, 2005 4:39 AM
	To: gc at napali.hpl.hp.com
	Subject: [Gc] GC compile on IRIX 6.5
	
	
	Hello,
	
	I've built gc 6.4 on IRIX 6.5.27 using the native MIPSpro
compilers but have had a few errors.
	
	My environment varaiables for the build:
	setenv CC cc
	setenv CXX CC
	setenv F77 f77
	setenv CFLAGS '-mips4 -O3 -c99 -I/usr/nekoware/include
-I/usr/include -Wl,-rpath -Wl,/usr/nekoware/lib'
	setenv CXXFLAGS '-mips4 -O3 -I/usr/nekoware/include
-I/usr/include'
	setenv LDFLAGS '-mips4 -L/usr/nekoware/lib -L/usr/lib32'
	setenv PKG_CONFIG_PATH '/usr/nekoware/lib/pkgconfig'
	setenv PKG_CONFIG_LIBDIR '/usr/nekoware/lib'
	setenv LD_LIBRARY_PATH '/usr/nekoware/lib:/usr/lib32'
	setenv LD_LIBRARYN32_PATH '/usr/nekoware/lib:/usr/lib32'
	setenv GNOME2_DIR  '/usr/nekoware'
	setenv GNUMAKE gmake
	setenv AR 'CC -ar -o'
	setenv AS 'as -n32'
	
	My configure options:
	./configure --prefix=/usr/nekoware \
	--enable-threads=posix --enable-parallel-mark --enable-cplusplus
\
	--enable-shared=yes --enable-static=yes
	
	The make install is successful and I get the following installed
files:
	> /usr/nekoware/dev/gc6.4/.deps/gc_cpp.Plo
	> /usr/nekoware/dev/gc6.4/.libs/libgccpp.la
	> /usr/nekoware/dev/gc6.4/.libs/libgccpp.lai
	> /usr/nekoware/dev/gc6.4/.libs/libgccpp.so
	> /usr/nekoware/dev/gc6.4/.libs/libgccpp.so.2
	> /usr/nekoware/dev/gc6.4/.libs/libgccpp.so.2.2
	> /usr/nekoware/dev/gc6.4/after.list
	> /usr/nekoware/dev/gc6.4/before.list
	> /usr/nekoware/dev/gc6.4/config.log
	> /usr/nekoware/dev/gc6.4/cru
	> /usr/nekoware/dev/gc6.4/dyn_load.lo
	> /usr/nekoware/dev/gc6.4/finalize.lo
	> /usr/nekoware/dev/gc6.4/gc_cpp.lo
	> /usr/nekoware/dev/gc6.4/gc_cpp.o
	> /usr/nekoware/dev/gc6.4/gc_dlopen.lo
	> /usr/nekoware/dev/gc6.4/gc_dlopen.o
	> /usr/nekoware/dev/gc6.4/gcj_mlc.o
	> /usr/nekoware/dev/gc6.4/installed_files.txt.1
	> /usr/nekoware/dev/gc6.4/libgccpp.la
	> /usr/nekoware/dev/gc6.4/reclaim.lo
	> /usr/nekoware/dev/gc6.4/solaris_pthreads.lo
	> /usr/nekoware/dev/gc6.4/solaris_threads.lo
	> /usr/nekoware/dev/gc6.4/specific.lo
	> /usr/nekoware/dev/gc6.4/specific.o
	> /usr/nekoware/dev/gc6.4/stubborn.lo
	> /usr/nekoware/dev/gc6.4/typd_mlc.o
	> /usr/nekoware/include/gc
	> /usr/nekoware/include/gc/gc.h
	> /usr/nekoware/include/gc/gc_alloc.h
	> /usr/nekoware/include/gc/gc_allocator.h
	> /usr/nekoware/include/gc/gc_amiga_redirects.h
	> /usr/nekoware/include/gc/gc_backptr.h
	> /usr/nekoware/include/gc/gc_config_macros.h
	> /usr/nekoware/include/gc/gc_cpp.h
	> /usr/nekoware/include/gc/gc_gcj.h
	> /usr/nekoware/include/gc/gc_inl.h
	> /usr/nekoware/include/gc/gc_inline.h
	> /usr/nekoware/include/gc/gc_local_alloc.h
	> /usr/nekoware/include/gc/gc_mark.h
	> /usr/nekoware/include/gc/gc_pthread_redirects.h
	> /usr/nekoware/include/gc/gc_typed.h
	> /usr/nekoware/include/gc/leak_detector.h
	> /usr/nekoware/include/gc/new_gc_alloc.h
	> /usr/nekoware/include/gc/weakpointer.h
	> /usr/nekoware/lib/libgc.la
	> /usr/nekoware/lib/libgc.so
	> /usr/nekoware/lib/libgc.so.2
	> /usr/nekoware/lib/libgc.so.2.2
	> /usr/nekoware/lib/libgccpp.la
	> /usr/nekoware/lib/libgccpp.so
	> /usr/nekoware/lib/libgccpp.so.2
	> /usr/nekoware/lib/libgccpp.so.2.2
	> /usr/nekoware/share/gc
	> /usr/nekoware/share/gc/README
	> /usr/nekoware/share/gc/README.DGUX386
	> /usr/nekoware/share/gc/README.Mac
	> /usr/nekoware/share/gc/README.MacOSX
	> /usr/nekoware/share/gc/README.OS2
	> /usr/nekoware/share/gc/README.amiga
	> /usr/nekoware/share/gc/README.arm.cross
	> /usr/nekoware/share/gc/README.autoconf
	> /usr/nekoware/share/gc/README.changes
	> /usr/nekoware/share/gc/README.contributors
	> /usr/nekoware/share/gc/README.cords
	> /usr/nekoware/share/gc/README.darwin
	> /usr/nekoware/share/gc/README.dj
	> /usr/nekoware/share/gc/README.environment
	> /usr/nekoware/share/gc/README.ews4800
	> /usr/nekoware/share/gc/README.hp
	> /usr/nekoware/share/gc/README.linux
	> /usr/nekoware/share/gc/README.macros
	> /usr/nekoware/share/gc/README.rs6000
	> /usr/nekoware/share/gc/README.sgi
	> /usr/nekoware/share/gc/README.solaris2
	> /usr/nekoware/share/gc/README.uts
	> /usr/nekoware/share/gc/README.win32
	> /usr/nekoware/share/gc/barrett_diagram
	> /usr/nekoware/share/gc/debugging.html
	> /usr/nekoware/share/gc/gc.man
	> /usr/nekoware/share/gc/gcdescr.html
	> /usr/nekoware/share/gc/gcinterface.html
	> /usr/nekoware/share/gc/leak.html
	> /usr/nekoware/share/gc/scale.html
	> /usr/nekoware/share/gc/simple_example.html
	> /usr/nekoware/share/gc/tree.html
	
	However I also get an install script error:
	/usr/nekoware/bin/install: cannot stat `.libs/libgccpp.a': No
such file or directory
	   gmake[2]: *** [install-libLTLIBRARIES] Error 1
	   gmake[2]: Leaving directory `/usr/nekoware/dev/gc6.4'
	   gmake[1]: *** [install-am] Error 2
	   gmake[1]: Leaving directory `/usr/nekoware/dev/gc6.4'
	   gmake: *** [install-recursive] Error 1
	
	Lastly, make test fails:
	 cc -mips4 -L/usr/nekoware/lib -L/usr/lib32  test.o   -o test
	   ld32: ERROR   33 : Unresolved text symbol
"GC_malloc_stubborn" -- 1st referenced by test.o.
	           Use linker option -v to see when and which objects,
archives and dsos are loaded.  
	   ld32: ERROR   33 : Unresolved text symbol
"GC_end_stubborn_change" -- 1st referenced by test.o.
	           Use linker option -v to see when and which objects,
archives and dsos are loaded.  
	   ld32: ERROR   33 : Unresolved text symbol "GC_malloc" -- 1st
referenced by test.o.
	           Use linker option -v to see when and which objects,
archives and dsos are loaded.  
	   ld32: ERROR   33 : Unresolved text symbol "GC_printf" -- 1st
referenced by test.o.
	           Use linker option -v to see when and which objects,
archives and dsos are loaded.  
	   ld32: ERROR   33 : Unresolved text symbol
"GC_malloc_uncollectable" -- 1st referenced by test.o.
	           Use linker option -v to see when and which objects,
archives and dsos are loaded. 
	...
	
	Which I can fix by explictly addition the link libs:
	    cc -mips4 -L/usr/nekoware/lib -L/usr/lib32 test.o -o test
-lgc -lpthread
	  
	But the ./test program core dumps when run. The debugger 'where'
says:
	   0 pthread_attr_getdetachstate(0x0, 0x414ff50, 0x0,
0x10028f30, 0x1, 0x1, 0x100270b8, 0x3f0)
["/xlv46/6.5.27m/work/eoe/lib/libpthread/libpthread_n32_M3/ptattr.c":231
, 0xc06e1a4]
	   1 GC_pthread_create(0x414ffb0, 0x0, 0x10003500, 0x0, 0x0,
0x10028ea0, 0x10028fa0, 0x60)
["/usr/nekoware/dev/gc6.4/aix_irix_threads.c":583, 0x41222c]
	   2 fork_a_thread(0x0, 0x414ff50, 0x0, 0x10028f30, 0x0,
0x10028ea0, 0x10028fa0, 0x60)
["/usr/nekoware/dev/gc6.4/tests/test.c":548, 0x100035e8]
	   3 reverse_test(0x0, 0x414ff50, 0x0, 0x10028f30, 0x0,
0x10028ea0, 0x10028fa0, 0x60)
["/usr/nekoware/dev/gc6.4/tests/test.c":684, 0x10003a68]
	   4 run_one_test(0x0, 0x414ff50, 0x0, 0x10028f30, 0x0,
0x10028ea0, 0x10028fa0, 0x60)
["/usr/nekoware/dev/gc6.4/tests/test.c":1323, 0x10005154]
	   5 thr_run_one_test(0x0, 0x414ff50, 0x0, 0x10028f30, 0x0,
0x10028ea0, 0x10028fa0, 0x60)
["/usr/nekoware/dev/gc6.4/tests/test.c":1723, 0x1000585c]
	   6 GC_start_routine(0x412000, 0x414ff50, 0x0, 0x10028f30, 0x0,
0x10028ea0, 0x10028fa0, 0x60)
["/usr/nekoware/dev/gc6.4/aix_irix_threads.c":548, 0x4120f8]
	   7 _SGIPT_pt_start()
["/xlv46/6.5.27m/work/eoe/lib/libpthread/libpthread_n32_M3/pt.c":803,
0xc06d2f4]
	
	
	Did automake not set the -DGC_IRIX_THREADS option?
	
	Thanks in advance.
	
	
	-- 
	_______________________________________________
	
	   Steven.Z.Queen at nasa.gov
	   NASA, Goddard Space Flight Center
	   Flight Dynamics Analysis Branch, Code 595
	   V:(301) 286-0988  F:(301) 286-0369   
	_______________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20050518/5e0d594d/attachment.htm


More information about the Gc mailing list