Bug 51671 - mono build fails at mono_get_jit_tls_offset
Summary: mono build fails at mono_get_jit_tls_offset
Alias: None
Product: Runtime
Classification: Mono
Component: Build ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-01-20 20:18 UTC by Selva
Modified: 2017-09-06 14:03 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Selva 2017-01-20 20:18:50 UTC
in ubuntu 16.04 mono package fails to compile 

This is my configure output

        mcs source:    mcs
        olive source:  

	GC:	       sgen and bundled Boehm GC with typed GC and parallel mark
	GLIB:	       embedded
	TLS:           __thread
	Engine:        Building and using the JIT
	oprofile:      no
	BigArrays:     no
	DTrace:        no
	Parallel Mark: yes
	LLVM Back End: no (dynamically loaded: no)

	Moon Profile:  no (boehm)
	MonoDroid:     no
	MonoTouch:     no
	JNI support:   IKVM Native
	libgdiplus:    assumed to be installed
	zlib:          system zlib

i got these error

CC	libmonosgen_static_la-mini-posix.lo
LD	libmonosgen-static.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC	mono-main.o
LD	mono
./.libs/libmono-static.a(libmono_static_la-mini.o): In function `mono_get_jit_tls_offset':
/home/selva/support/mono/mono-2.10.9/mono/mini/mini.c:2481: undefined reference to `mono_jit_tls'
/home/selva/support/mono/mono-2.10.9/mono/mini/mini.c:2481: undefined reference to `mono_jit_tls'
collect2: error: ld returned 1 exit status
Makefile:1572: recipe for target 'mono' failed
make[4]: *** [mono] Error 1
make[4]: Leaving directory '/home/selva/support/mono/mono-2.10.9/mono/mini'
Makefile:1430: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/selva/support/mono/mono-2.10.9/mono/mini'
Makefile:341: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/selva/support/mono/mono-2.10.9/mono'
Makefile:415: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/selva/support/mono/mono-2.10.9'
Makefile:340: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Zoltan Varga 2017-01-22 04:49:22 UTC
The current mono stable version is 4.6.2, you are trying to compile 2.10.9. Get a newer version from here:
Comment 2 Selva 2017-01-22 13:41:00 UTC
Please can you give me a valid reason why i am getting this error on ubuntu 16.04 only.same error coming for all mono version except mono 4
Comment 3 Zoltan Varga 2017-01-23 06:37:17 UTC
Because mono 2.10 was released in 2012, and ubuntu 16 in 2015. Old mono releases are not guaranteed to work on platforms released years after their release.