Sorry to bump a super old thread but I can't get this to work either ...
First off, I know there is an extension in the TC 8.x repo but we cannot use TC8 because it breaks intel graphics on older platforms (same goes for TC7). TC6 runs Xorg correctly on our hardware, albeit in software rendering mode. @bmarkus, if you can share your source for this tcz, I'd appreciate it so I know if you are patching anything or using different compilation options than me.
Anyway so I am using TC 6.4.1 to compile Mono. The only dependencies it requires seem to be gcc > 4.8 (needs to support C++11) and cmake > 2.8.10. I am loading compiletc autoconf libtool-dev automake gettext-dev cmake. Using ./configure --prefix=/usr/local/ and make. The build will always fail on a file in mono utils here:
mono-context.c: In function 'mono_sigctx_to_monoctx':
mono-context.c:51:2: error: implicit declaration of function 'UCONTEXT_REG_EAX' [-Werror=implicit-function-declaration]
mctx->eax = UCONTEXT_REG_EAX (ctx);
^
mono-context.c:51:2: warning: nested extern declaration of 'UCONTEXT_REG_EAX' [-Wnested-externs]
mono-context.c:52:2: error: implicit declaration of function 'UCONTEXT_REG_EBX' [-Werror=implicit-function-declaration]
mctx->ebx = UCONTEXT_REG_EBX (ctx);
^
mono-context.c:52:2: warning: nested extern declaration of 'UCONTEXT_REG_EBX' [-Wnested-externs]
mono-context.c:53:2: error: implicit declaration of function 'UCONTEXT_REG_ECX' [-Werror=implicit-function-declaration]
mctx->ecx = UCONTEXT_REG_ECX (ctx);
^
mono-context.c:53:2: warning: nested extern declaration of 'UCONTEXT_REG_ECX' [-Wnested-externs]
mono-context.c:54:2: error: implicit declaration of function 'UCONTEXT_REG_EDX' [-Werror=implicit-function-declaration]
mctx->edx = UCONTEXT_REG_EDX (ctx);
^
mono-context.c:54:2: warning: nested extern declaration of 'UCONTEXT_REG_EDX' [-Wnested-externs]
mono-context.c:55:2: error: implicit declaration of function 'UCONTEXT_REG_EBP' [-Werror=implicit-function-declaration]
mctx->ebp = UCONTEXT_REG_EBP (ctx);
^
mono-context.c:55:2: warning: nested extern declaration of 'UCONTEXT_REG_EBP' [-Wnested-externs]
mono-context.c:56:2: error: implicit declaration of function 'UCONTEXT_REG_ESP' [-Werror=implicit-function-declaration]
mctx->esp = UCONTEXT_REG_ESP (ctx);
^
mono-context.c:56:2: warning: nested extern declaration of 'UCONTEXT_REG_ESP' [-Wnested-externs]
mono-context.c:57:2: error: implicit declaration of function 'UCONTEXT_REG_ESI' [-Werror=implicit-function-declaration]
mctx->esi = UCONTEXT_REG_ESI (ctx);
^
mono-context.c:57:2: warning: nested extern declaration of 'UCONTEXT_REG_ESI' [-Wnested-externs]
mono-context.c:58:2: error: implicit declaration of function 'UCONTEXT_REG_EDI' [-Werror=implicit-function-declaration]
mctx->edi = UCONTEXT_REG_EDI (ctx);
^
mono-context.c:58:2: warning: nested extern declaration of 'UCONTEXT_REG_EDI' [-Wnested-externs]
mono-context.c:59:2: error: implicit declaration of function 'UCONTEXT_REG_EIP' [-Werror=implicit-function-declaration]
mctx->eip = UCONTEXT_REG_EIP (ctx);
^
mono-context.c:59:2: warning: nested extern declaration of 'UCONTEXT_REG_EIP' [-Wnested-externs]
mono-context.c: In function 'mono_monoctx_to_sigctx':
mono-context.c:95:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_EAX (ctx) = mctx->eax;
^
mono-context.c:96:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_EBX (ctx) = mctx->ebx;
^
mono-context.c:97:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_ECX (ctx) = mctx->ecx;
^
mono-context.c:98:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_EDX (ctx) = mctx->edx;
^
mono-context.c:99:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_EBP (ctx) = mctx->ebp;
^
mono-context.c:100:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_ESP (ctx) = mctx->esp;
^
mono-context.c:101:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_ESI (ctx) = mctx->esi;
^
mono-context.c:102:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_EDI (ctx) = mctx->edi;
^
mono-context.c:103:25: error: lvalue required as left operand of assignment
UCONTEXT_REG_EIP (ctx) = mctx->eip;
cc1: some warnings being treated as errors
Makefile:760: recipe for target 'mono-context.lo' failed
make[4]: Leaving directory '/home/tc/build/mono-3.12.1/mono/utils'
make[4]: *** [mono-context.lo] Error 1
Makefile:625: recipe for target 'all' failed
make[3]: Leaving directory '/home/tc/build/mono-3.12.1/mono/utils'
Makefile:434: recipe for target 'all-recursive' failed
make[2]: Leaving directory '/home/tc/build/mono-3.12.1/mono'
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
Makefile:518: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/home/tc/build/mono-3.12.1'
make: *** [all] Error 2
Makefile:445: recipe for target 'all' failed
Any ideas? This is a run of mono 3.12.1, but I've also tried mono-4.4.2.11 (the one that is in the TC8 repo), mono-4.8.1.0, and mono-5.4.0.201 and they produce the same error. I build other packages just fine in this same environment.