[Mono-dev] Error building mono 1.2.6

George Sherwood pilot at beernabeer.com
Fri Dec 21 05:19:53 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am attempting to update mono to 1.2.6 for our distribution and am
running into an error.  The build fails with this error:

gcc -I../.. -I../../libgc/include -pthread -I/usr/include/glib-2.0
- -I/usr/lib/glib-2.0/include -march=athlon-xp -pipe -Os
- -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused
- -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
- -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
- -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs
- -Wl,-version-script=./ldscript.mono -o mono main.o -pthread
- -Wl,--export-dynamic  ./.libs/libmono-static.a /usr/lib/libgthread-2.0.so
- -lrt /usr/lib/libglib-2.0.so -ldl -lpthread
- -lm ./.libs/libmono-static.a(boehm-gc.o): In function
`mono_gc_get_managed_allocator_by_type': /usr/src/mono-1.2.6/mono/metadata/boehm-gc.c:569:
undefined reference to
`GC_thread_tls' ./.libs/libmono-static.a(boehm-gc.o): In function
`mono_gc_get_managed_allocator': /usr/src/mono-1.2.6/mono/metadata/boehm-gc.c:500:
undefined reference to `GC_thread_tls'

The configure looks like:
       mcs source:    $(top_srcdir)/mcs
        olive source:  

	GC:	     included
	TLS:         __thread
	SIGALTSTACK: yes
	Engine:      Building and using the JIT
	2.0 Beta:    yes
	2.1 Alpha:   no
	JNI support: IKVM Native
	libgdiplus:  assumed to be installed
	zlib:        system zlib

If add the option --with-tls=pthread the compile completes
successfully.  With 1.2.5.2 and TLS=__thread it builds successfully.

Any idea what has changed in this respect with 1.2.6?

Thanks,
    George Sherwood
    Developer, Source Mage GNU/Linux
    http://www.sourcemage.org


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHa5NJkVJnfkgKg60RArRPAJ9928V6UG7oF5a16PybIn/iIsb6XQCfZ9Iu
vuHkR6o7RbIGnoI5LNsBRTI=
=rejm
-----END PGP SIGNATURE-----


More information about the Mono-devel-list mailing list