Daniele | 7 Dec 2008 13:49
Picon

Build from cvs on osx 10.5.5

Hi everybody

I'm trying to build cyclone on a osx 10.5.5 machine with
gcc version 4.0.1 (Apple Inc. build 5465),
but during the make process I get errors below:

darwin_stop_world.c: In function 'GC_push_all_stacks':
darwin_stop_world.c:105: error: 'i386_thread_state_t' has no member named 'esp'
darwin_stop_world.c:107: error: 'i386_thread_state_t' has no member named 'eax'
darwin_stop_world.c:108: error: 'i386_thread_state_t' has no member named 'ebx'
darwin_stop_world.c:109: error: 'i386_thread_state_t' has no member named 'ecx'
darwin_stop_world.c:110: error: 'i386_thread_state_t' has no member named 'edx'
darwin_stop_world.c:111: error: 'i386_thread_state_t' has no member named 'edi'
darwin_stop_world.c:112: error: 'i386_thread_state_t' has no member named 'esi'
darwin_stop_world.c:113: error: 'i386_thread_state_t' has no member named 'ebp'
make[1]: *** [darwin_stop_world.lo] Error 1
make: *** [gc_pthread/.libs/libgc.a] Error 2


Any ideas ?

Thanks

<div><p>Hi everybody <br><br>I'm trying to build cyclone on a osx 10.5.5 machine with<br>gcc version 4.0.1 (Apple Inc. build 5465),<br>but during the make process I get errors below:<br><br>darwin_stop_world.c: In function 'GC_push_all_stacks':<br>
darwin_stop_world.c:105: error: 'i386_thread_state_t' has no member named 'esp'<br>darwin_stop_world.c:107: error: 'i386_thread_state_t' has no member named 'eax'<br>darwin_stop_world.c:108: error: 'i386_thread_state_t' has no member named 'ebx'<br>
darwin_stop_world.c:109: error: 'i386_thread_state_t' has no member named 'ecx'<br>darwin_stop_world.c:110: error: 'i386_thread_state_t' has no member named 'edx'<br>darwin_stop_world.c:111: error: 'i386_thread_state_t' has no member named 'edi'<br>
darwin_stop_world.c:112: error: 'i386_thread_state_t' has no member named 'esi'<br>darwin_stop_world.c:113: error: 'i386_thread_state_t' has no member named 'ebp'<br>make[1]: *** [darwin_stop_world.lo] Error 1<br>
make: *** [gc_pthread/.libs/libgc.a] Error 2<br><br><br>Any ideas ?<br><br>Thanks <br></p></div>
Greg Morrisett | 7 Dec 2008 14:13
Picon

Re: Build from cvs on osx 10.5.5

This looks like something where you'll need to replace the
GC sub-directory with a more recent version of the Boehm-
Weiser collector.

-Greg

Daniele wrote:
> Hi everybody
> 
> I'm trying to build cyclone on a osx 10.5.5 machine with
> gcc version 4.0.1 (Apple Inc. build 5465),
> but during the make process I get errors below:
> 
> darwin_stop_world.c: In function 'GC_push_all_stacks':
> darwin_stop_world.c:105: error: 'i386_thread_state_t' has no member 
> named 'esp'
> darwin_stop_world.c:107: error: 'i386_thread_state_t' has no member 
> named 'eax'
> darwin_stop_world.c:108: error: 'i386_thread_state_t' has no member 
> named 'ebx'
> darwin_stop_world.c:109: error: 'i386_thread_state_t' has no member 
> named 'ecx'
> darwin_stop_world.c:110: error: 'i386_thread_state_t' has no member 
> named 'edx'
> darwin_stop_world.c:111: error: 'i386_thread_state_t' has no member 
> named 'edi'
> darwin_stop_world.c:112: error: 'i386_thread_state_t' has no member 
> named 'esi'
> darwin_stop_world.c:113: error: 'i386_thread_state_t' has no member 
> named 'ebp'
> make[1]: *** [darwin_stop_world.lo] Error 1
> make: *** [gc_pthread/.libs/libgc.a] Error 2
> 
> 
> Any ideas ?
> 
> Thanks
> 

Daniele | 7 Dec 2008 15:59
Picon

Re: Build from cvs on osx 10.5.5

I'm using boehmgc version  7 
provided by MacPorts version 1.6

It seems to be the latest version available.

I attached the config.log..

Thanks 

Daniele

2008/12/7 Greg Morrisett <greg <at> eecs.harvard.edu>
This looks like something where you'll need to replace the
GC sub-directory with a more recent version of the Boehm-
Weiser collector.

-Greg

Daniele wrote:
> Hi everybody
>
> I'm trying to build cyclone on a osx 10.5.5 machine with
> gcc version 4.0.1 (Apple Inc. build 5465),
> but during the make process I get errors below:
>
> darwin_stop_world.c: In function 'GC_push_all_stacks':
> darwin_stop_world.c:105: error: 'i386_thread_state_t' has no member
> named 'esp'
> darwin_stop_world.c:107: error: 'i386_thread_state_t' has no member
> named 'eax'
> darwin_stop_world.c:108: error: 'i386_thread_state_t' has no member
> named 'ebx'
> darwin_stop_world.c:109: error: 'i386_thread_state_t' has no member
> named 'ecx'
> darwin_stop_world.c:110: error: 'i386_thread_state_t' has no member
> named 'edx'
> darwin_stop_world.c:111: error: 'i386_thread_state_t' has no member
> named 'edi'
> darwin_stop_world.c:112: error: 'i386_thread_state_t' has no member
> named 'esi'
> darwin_stop_world.c:113: error: 'i386_thread_state_t' has no member
> named 'ebp'
> make[1]: *** [darwin_stop_world.lo] Error 1
> make: *** [gc_pthread/.libs/libgc.a] Error 2
>
>
> Any ideas ?
>
> Thanks
>

--
cyclone-l mailing list  ::  cyclone-l <at> lists.cs.cornell.edu
https://lists.cs.cornell.edu/mailman/listinfo/cyclone-l

Attachment (config.log): application/octet-stream, 15 KiB
<div>
<p>I'm using boehmgc version&nbsp; 7&nbsp; <br>provided by MacPorts version 1.6<br><br>It seems to be the latest version available. <br><br>I attached the config.log..<br><br>Thanks&nbsp; <br><br>Daniele<br><br></p>
<div class="gmail_quote">
2008/12/7 Greg Morrisett <span dir="ltr">&lt;<a href="mailto:greg <at> eecs.harvard.edu">greg <at> eecs.harvard.edu</a>&gt;</span><br><blockquote class="gmail_quote">
This looks like something where you'll need to replace the<br>
GC sub-directory with a more recent version of the Boehm-<br>
Weiser collector.<br><br>
-Greg<br><div>
<div></div>
<div class="Wj3C7c">
<br>
Daniele wrote:<br>
&gt; Hi everybody<br>
&gt;<br>
&gt; I'm trying to build cyclone on a osx 10.5.5 machine with<br>
&gt; gcc version 4.0.1 (Apple Inc. build 5465),<br>
&gt; but during the make process I get errors below:<br>
&gt;<br>
&gt; darwin_stop_world.c: In function 'GC_push_all_stacks':<br>
&gt; darwin_stop_world.c:105: error: 'i386_thread_state_t' has no member<br>
&gt; named 'esp'<br>
&gt; darwin_stop_world.c:107: error: 'i386_thread_state_t' has no member<br>
&gt; named 'eax'<br>
&gt; darwin_stop_world.c:108: error: 'i386_thread_state_t' has no member<br>
&gt; named 'ebx'<br>
&gt; darwin_stop_world.c:109: error: 'i386_thread_state_t' has no member<br>
&gt; named 'ecx'<br>
&gt; darwin_stop_world.c:110: error: 'i386_thread_state_t' has no member<br>
&gt; named 'edx'<br>
&gt; darwin_stop_world.c:111: error: 'i386_thread_state_t' has no member<br>
&gt; named 'edi'<br>
&gt; darwin_stop_world.c:112: error: 'i386_thread_state_t' has no member<br>
&gt; named 'esi'<br>
&gt; darwin_stop_world.c:113: error: 'i386_thread_state_t' has no member<br>
&gt; named 'ebp'<br>
&gt; make[1]: *** [darwin_stop_world.lo] Error 1<br>
&gt; make: *** [gc_pthread/.libs/libgc.a] Error 2<br>
&gt;<br>
&gt;<br>
&gt; Any ideas ?<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br><br>
</div>
</div>--<br>
cyclone-l mailing list &nbsp;:: &nbsp;<a href="mailto:cyclone-l <at> lists.cs.cornell.edu">cyclone-l <at> lists.cs.cornell.edu</a><br><a href="https://lists.cs.cornell.edu/mailman/listinfo/cyclone-l" target="_blank">https://lists.cs.cornell.edu/mailman/listinfo/cyclone-l</a><br>
</blockquote>
</div>
<br>
</div>
Daniele | 10 Dec 2008 15:34
Picon

Re: Build from cvs on osx 10.5.5

Well
I found where is the problem in compiling cyclone from cvs under mac osx 10.5.5
so
apple changed the name of members of 'i386_thread_state_t'  after 10.5 release

for example
esp member  is called __esp now;

while in the file darwin_stop_world.c under the directory gc of cyclone cvs, members are called with the old name:

...
#if defined(I386)
    lo = state.esp;

    GC_push_one(state.eax);
    GC_push_one(state.ebx);
    GC_push_one(state.ecx);
    GC_push_one(state.edx);
    GC_push_one(state.edi);
    GC_push_one(state.esi);
    GC_push_one(state.ebp);

and so on

I need to use cyclone under osx 10.5.* so I patched the file.
I really don't know how to make compatible this patch for both 10.4 and 10.5..

If some one knows it  we could make an update to the cvs version.

Thanks
Daniele


<div><p>Well <br>I found where is the problem in compiling cyclone from cvs under mac osx 10.5.5 <br>so<br>apple changed the name of members of 'i386_thread_state_t'&nbsp; after 10.5 release <br><br>for example<br>esp member&nbsp; is called __esp now; <br><br>while in the file darwin_stop_world.c under the directory gc of cyclone cvs, members are called with the old name:<br><br>...<br>#if defined(I386)<br>&nbsp;&nbsp;&nbsp; lo = state.esp;<br><br>&nbsp;&nbsp;&nbsp; GC_push_one(state.eax); <br>&nbsp;&nbsp;&nbsp; GC_push_one(state.ebx); <br>
&nbsp;&nbsp;&nbsp; GC_push_one(state.ecx); <br>&nbsp;&nbsp;&nbsp; GC_push_one(state.edx); <br>&nbsp;&nbsp;&nbsp; GC_push_one(state.edi); <br>&nbsp;&nbsp;&nbsp; GC_push_one(state.esi); <br>&nbsp;&nbsp;&nbsp; GC_push_one(state.ebp); <br><br>and so on <br><br>I need to use cyclone under osx 10.5.* so I patched the file.<br>
I really don't know how to make compatible this patch for both 10.4 and 10.5..<br><br>If some one knows it&nbsp; we could make an update to the cvs version.<br><br>Thanks<br>Daniele <br><br><br></p></div>

Gmane