[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Antw.: signal_arc.c failing to cross-compile
From:       Roger Cruz <roger_r_cruz () yahoo ! com>
Date:       2011-10-28 12:33:27
Message-ID: FDE913F7-7953-4872-8C87-41344E81F302 () yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks Andre, I realize that I'm breaking some new ground here and I don't mind doing \
the legwork.  I just like to first post to make sure someone hasn't already tried \
this and found a solution before I spend too much time on it.

It looks like you have been trying to cross-compile for Android as well.  I'm \
guessing you must have hit this missing header file as well?

Regards,
Roger R. Cruz



On Oct 28, 2011, at 3:05 AM, "André Hentschel" <nerv@dawncrow.de> wrote:

> Thats not a problem of cross compiling to ARM, but of android. Android is not \
> Linux, not fully. Maybe i can find a solution, but only maybe. BTW all the problems \
> you will find are Android specific. 
> Gesendet mit meinem HTC
> 
> ----- Reply message -----
> Von: "Roger Cruz" <roger_r_cruz@yahoo.com>
> An: "wine-devel@winehq.org" <wine-devel@winehq.org>
> Betreff: signal_arc.c failing to cross-compile
> Datum: Fr., Okt. 28, 2011 06:46
> 
> 
> Hi Andre et al,
> 
> Wondering if any of you know how to get around this?  The compiler is barfing at \
> the lack of ucontext_t when doing a typedef of SIGCONTEXT. 
> Thanks in advance,
> 
> Roger R. Cruz
> 
> arm-linux-androideabi-gcc -c -I/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll -I. \
> -I/home/rcruz/sandbox/wine-dev-branch/include -I../../include  -D__WINESRC__ \
> -D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -fno-strength-reduce \
> -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes \
> -Wtype-limits -Wwrite-strings -Wpointer-arith -Wlogical-op  -g -O2  -o signal_arm.o \
>                 /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:69: error: expected \
>                 '=', ',', ';', 'asm' or '__attribute__' before 'SIGCONTEXT'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:127: warning: type \
>                 defaults to 'int' in declaration of 'ucontext_t'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:127: error: expected \
>                 ';', ',' or ')' before '*' token
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:149: error: expected \
>                 declaration specifiers or '...' before 'ucontext_t'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
>                 'restore_context':
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:153: error: \
>                 'sigcontext' undeclared (first use in this function)
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:153: error: (Each \
>                 undeclared identifier is reported only once
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:153: error: for each \
>                 function it appears in.)
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: At top level:
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:170: warning: type \
>                 defaults to 'int' in declaration of 'ucontext_t'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:170: error: expected \
>                 ';', ',' or ')' before '*' token
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:181: warning: type \
>                 defaults to 'int' in declaration of 'ucontext_t'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:181: error: expected \
>                 ';', ',' or ')' before '*' token
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:364: error: expected \
>                 ')' before '*' token
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
>                 'segv_handler':
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:544: error: \
>                 'SIGCONTEXT' undeclared (first use in this function)
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:544: error: 'context' \
>                 undeclared (first use in this function)
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:545: warning: ISO C90 \
>                 forbids mixed declarations and code
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:556: warning: implicit \
>                 declaration of function 'setup_exception_record'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
>                 'trap_handler':
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:608: warning: implicit \
>                 declaration of function 'save_context'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:615: error: too many \
>                 arguments to function 'restore_context'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
>                 'fpe_handler':
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:629: warning: implicit \
>                 declaration of function 'save_fpu'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:683: error: too many \
>                 arguments to function 'restore_context'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:684: warning: implicit \
>                 declaration of function 'restore_fpu'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
>                 'int_handler':
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:708: error: too many \
>                 arguments to function 'restore_context'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
>                 'abrt_handler':
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:732: error: too many \
>                 arguments to function 'restore_context'
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
>                 'usr1_handler':
> /home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:758: error: too many \
> arguments to function 'restore_context' make[1]: *** [signal_arm.o] Error 1


[Attachment #5 (unknown)]

<html><body bgcolor="#FFFFFF"><div>Thanks Andre, I realize that I'm breaking some new \
ground here and I don't mind doing the legwork. &nbsp;I just like to first post to \
make sure someone hasn't already tried this and found a solution before I spend too \
much time on it.</div><div><br></div><div>It looks like you have been trying to \
cross-compile for Android as well. &nbsp;I'm guessing you must have hit this missing \
header file as well?</div><div><br></div><div>Regards,</div><div>Roger R. \
Cruz<br><br><br></div><div><br>On Oct 28, 2011, at 3:05 AM, "André Hentschel" &lt;<a \
href="mailto:nerv@dawncrow.de">nerv@dawncrow.de</a>&gt; \
wrote:<br><br></div><div></div><blockquote type="cite"><div>Thats not a problem of \
cross compiling to ARM, but of android. Android is not Linux, not fully. Maybe i can \
find a solution, but only maybe. BTW all the problems you will find are Android \
specific.<br><br>Gesendet mit meinem HTC<br><br><div id="htc_header" style="">----- \
Reply message -----<br>Von: "Roger Cruz" &lt;<a \
href="mailto:roger_r_cruz@yahoo.com">roger_r_cruz@yahoo.com</a>&gt;<br>An: "<a \
href="mailto:wine-devel@winehq.org">wine-devel@winehq.org</a>" &lt;<a \
href="mailto:wine-devel@winehq.org">wine-devel@winehq.org</a>&gt;<br>Betreff: \
signal_arc.c failing to cross-compile<br>Datum: Fr., Okt. 28, 2011 \
06:46<br><br></div><br><div style="color:#000; background-color:#fff; \
font-family:arial, helvetica, sans-serif;font-size:12pt"><div>Hi Andre et \
al,</div><div><br></div><div>Wondering if any of you know how to get around \
this?&nbsp; The compiler is barfing at the lack of ucontext_t when doing a typedef of \
SIGCONTEXT.</div><div><br></div><div>Thanks in \
advance,</div><div><br></div><div>Roger R. \
Cruz<br></div><div><br></div><div>arm-linux-androideabi-gcc -c \
-I/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll -I. \
-I/home/rcruz/sandbox/wine-dev-branch/include -I../../include&nbsp; -D__WINESRC__ \
-D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -fno-strength-reduce -fno-strict-aliasing \
-Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits \
-Wwrite-strings -Wpointer-arith -Wlogical-op&nbsp; -g -O2&nbsp; -o signal_arm.o \
/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:69: \
error: expected  '=', ',', ';', 'asm' or '__attribute__' before \
'SIGCONTEXT'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:127: \
warning: type defaults to 'int' in declaration of \
'ucontext_t'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:127: \
error: expected ';', ',' or ')' before '*' \
token<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:149: error: \
expected declaration specifiers or '...' before \
'ucontext_t'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In \
function 'restore_context':<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:153: \
error: 'sigcontext' undeclared (first use in this \
function)<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:153: error: \
(Each undeclared identifier is reported only \
once<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:153: error: for \
each function it appears \
in.)<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: At  top \
level:<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:170: warning: \
type defaults to 'int' in declaration of \
'ucontext_t'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:170: \
error: expected ';', ',' or ')' before '*' \
token<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:181: warning: \
type defaults to 'int' in declaration of \
'ucontext_t'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:181: \
error: expected ';', ',' or ')' before '*' \
token<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:364: error: \
expected ')' before '*' \
token<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In function \
'segv_handler':<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:544: \
error: 'SIGCONTEXT' undeclared (first use in this \
function)<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:544: error: \
'context' undeclared (first use in this  \
function)<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:545: \
warning: ISO C90 forbids mixed declarations and \
code<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:556: warning: \
implicit declaration of function \
'setup_exception_record'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: \
In function 'trap_handler':<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:608: \
warning: implicit declaration of function \
'save_context'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:615: \
error: too many arguments to function \
'restore_context'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In \
function 'fpe_handler':<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:629: \
warning: implicit declaration of function \
'save_fpu'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:683: error: \
too many arguments to function  \
'restore_context'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:684: \
warning: implicit declaration of function \
'restore_fpu'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In \
function 'int_handler':<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:708: \
error: too many arguments to function \
'restore_context'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In \
function 'abrt_handler':<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:732: \
error: too many arguments to function \
'restore_context'<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c: In \
function 'usr1_handler':<br>/home/rcruz/sandbox/wine-dev-branch/dlls/ntdll/signal_arm.c:758: \
error: too many arguments to function 'restore_context'<br>make[1]: *** \
[signal_arm.o] Error 1<br></div></div></div></blockquote></body></html>





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic