Bug 13958 - Mono fails to compile since 1a8d9f1076046d4004f0ded072f7977d0f22cbdf
Summary: Mono fails to compile since 1a8d9f1076046d4004f0ded072f7977d0f22cbdf
Status: RESOLVED INVALID
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-08-13 12:05 UTC by Luís Reis
Modified: 2013-08-14 07:45 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED INVALID

Description Luís Reis 2013-08-13 12:05:49 UTC
Starting with 1a8d9f1076046d4004f0ded072f7977d0f22cbdf, mono refuses to compile.
The problem is the line 295: tls_get_reg

./genmdesc cpu-amd64.h amd64_desc ./cpu-amd64.md
Invalid opcode 'tls_get_reg' at line 295 in ./cpu-amd64.md

I'm using OpenSuse 12.3 running in VirtualBox 4.2.14 (64-bits)

Commit e181a1a also fails to compile on my machine but later in the compilation and for different reasons.

mono --version shows
Mono JIT compiler version 3.0.10 (master/1cdeca4 Thu Apr 25 02:02:02 WEST 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC and Parallel Mark)

cat /proc/cpuinfo shows
vendor_id	: GenuineIntel
cpu family	: 6
model		: 58
model name	: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
stepping	: 9
cpu MHz		: 3468.008
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 lahf_lm
bogomips	: 6936.01
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:
Comment 1 Zoltan Varga 2013-08-13 13:37:09 UTC
Try a full rebuild.
Comment 2 Luís Reis 2013-08-14 07:45:54 UTC
It worked now.
I assumed make clean would be run automatically with ./autogen.sh, but it is apparently not the case.
Running it after ./autogen.sh/before make fixed the problem.