Ryan Davis | 10 Apr 03:36
Favicon

can't build on osx

I'm on a macbook air and this is my first build on this laptop:

% uname -a
Darwin wrath.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4  
21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386

% sw_vers
ProductName:	Mac OS X
ProductVersion:	10.5.2
BuildVersion:	9C7010

# just the failures:
% make
/bin/sh -ec 'for dir in object function; do ( cd $dir; make ); done'
/Users/ryan/Work/svn/idst/object
/bin/sh -ec '( cd boot; make )'
/Users/ryan/Work/svn/idst/object/boot
/bin/sh -ec 'cd ../gc6.7/; test -f config.log || ABI_FLAG="-arch  
i486" ./configure --enable-threads=posix --enable-large-config; make  
ABI_FLAG="-arch i486"'
Making all in doc
/Users/ryan/Work/svn/idst/object/gc6.7/doc
make[4]: Nothing to be done for `all'.
Making all in include
/Users/ryan/Work/svn/idst/object/gc6.7/include
make[4]: Nothing to be done for `all'.
if /bin/sh ./libtool --mode=compile gcc -DPACKAGE_NAME=\"gc\" - 
DPACKAGE_TARNAME=\"gc\" -DPACKAGE_VERSION=\"6.7\" -DPACKAGE_STRING=\"gc 
\ 6.7\" -DPACKAGE_BUGREPORT=\"Hans.Boehm@...\" -DGC_VERSION_MAJOR=6  
-DGC_VERSION_MINOR=7 -DPACKAGE=\"gc\" -DVERSION=\"6.7\" - 
(Continue reading)

Antony Blakey | 10 Apr 07:14

Re: can't build on osx

The problem is that 10.5 changed the name of the fields in the  
i386_thread_state_t from e.g. 'esp' to '__esp', conditioned upon #if  
__DARWIN_UNIX03.

Is this meant to build on 10.5?

On 10/04/2008, at 11:09 AM, Ryan Davis wrote:

> gcc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" -DPACKAGE_VERSION= 
> \"6.7\" "-DPACKAGE_STRING=\"gc 6.7\""
-DPACKAGE_BUGREPORT=\"Hans.Boehm@... 
> \" -DGC_VERSION_MAJOR=6 -DGC_VERSION_MINOR=7 -DPACKAGE=\"gc\" - 
> DVERSION=\"6.7\" -DGC_DARWIN_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 - 
> DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - 
> DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 - 
> DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 - 
> DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSILENT=1 -DNO_SIGNALS=1 - 
> DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 - 
> DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I./ 
> include -fexceptions -g -O2 -fexceptions -MT darwin_stop_world.lo - 
> MD -MP -MF .deps/darwin_stop_world.Tpo -c darwin_stop_world.c  -fno- 
> common -DPIC -o .libs/darwin_stop_world.lo
> 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  
(Continue reading)

Michael Roberts | 27 May 21:15

Re: can't build on osx

I was wondering, does anyone have a solution to this?

thanks,

Mike

On Thu, Apr 10, 2008 at 6:14 AM, Antony Blakey
<antony.blakey@...> wrote:
> The problem is that 10.5 changed the name of the fields in the
> i386_thread_state_t from e.g. 'esp' to '__esp', conditioned upon #if
> __DARWIN_UNIX03.
>
> Is this meant to build on 10.5?
>
> On 10/04/2008, at 11:09 AM, Ryan Davis wrote:
>
>> gcc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\"
>> -DPACKAGE_VERSION=\"6.7\" "-DPACKAGE_STRING=\"gc 6.7\""
>> -DPACKAGE_BUGREPORT=\"Hans.Boehm@...\" -DGC_VERSION_MAJOR=6
>> -DGC_VERSION_MINOR=7 -DPACKAGE=\"gc\" -DVERSION=\"6.7\"
>> -DGC_DARWIN_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 -DSTDC_HEADERS=1
>> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
>> -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSILENT=1 -DNO_SIGNALS=1
>> -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1
>> -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I./include -fexceptions -g -O2
>> -fexceptions -MT darwin_stop_world.lo -MD -MP -MF
>> .deps/darwin_stop_world.Tpo -c darwin_stop_world.c  -fno-common -DPIC -o
>> .libs/darwin_stop_world.lo
>> darwin_stop_world.c: In function 'GC_push_all_stacks':
(Continue reading)

Michael Roberts | 27 May 22:39

Re: can't build on osx

sorry for replying to my own post

I think from trunk/object
make config GCDIR=gc-7.0

then make as normal.  (I had to do a distclean)

cheers,
Mike

On Tue, May 27, 2008 at 8:15 PM, Michael Roberts <mike@...> wrote:
> I was wondering, does anyone have a solution to this?
>
> thanks,
>
> Mike
>
> On Thu, Apr 10, 2008 at 6:14 AM, Antony Blakey
<antony.blakey@...> wrote:
>> The problem is that 10.5 changed the name of the fields in the
>> i386_thread_state_t from e.g. 'esp' to '__esp', conditioned upon #if
>> __DARWIN_UNIX03.
>>
>> Is this meant to build on 10.5?
>>
>> On 10/04/2008, at 11:09 AM, Ryan Davis wrote:
>>
>>> gcc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\"
>>> -DPACKAGE_VERSION=\"6.7\" "-DPACKAGE_STRING=\"gc 6.7\""
>>> -DPACKAGE_BUGREPORT=\"Hans.Boehm@...\" -DGC_VERSION_MAJOR=6
(Continue reading)

Ryan Davis | 28 May 21:13
Favicon

Re: can't build on osx


On May 27, 2008, at 13:39 , Michael Roberts wrote:

> make config GCDIR=gc-7.0

dude. thank you.

Dethe Elza | 1 Jun 06:00

Re: can't build on osx

On 27-May-08, at 1:39 PM, Michael Roberts wrote:

> sorry for replying to my own post
>
> I think from trunk/object
> make config GCDIR=gc-7.0
>
> then make as normal.  (I had to do a distclean)
>
> cheers,
> Mike

I've tried this, but I was getting a different error:

../boot/idc -B../boot/ -O  -k -c _object.st -o ../stage1/_object.o
../boot/idc: line 242: ../boot/idc1: No such file or directory
make[1]: *** [../stage1/_object.o] Error 127
idc
/bin/sh -ec 'cp -p ../gc-7.0/.libs/libgc.a ../stage1/gc.a'
cp: ../gc-7.0/.libs/libgc.a: No such file or directory
make[1]: [../stage1/gc.a] Error 1 (ignored)
../boot/idc -B../boot/ -O -I../st80 -k -c ArgumentVariableNode.st - 
o ../stage1/ArgumentVariableNode.o
../boot/idc: line 242: ../boot/idc1: No such file or directory
make[1]: *** [../stage1/ArgumentVariableNode.o] Error 127
make: *** [stage1] Error 2

I'm running OS X r10.5.2, tried on both an iMac and a MacBook.  Trying  
to build from trunk.  Any suggestions?

(Continue reading)

Michael Roberts | 2 Jun 23:06

Re: can't build on osx

Do you have the latest XCode? I don't know if that's relevant.

If I check out the repository fresh, in trunk/obect 'make boot' fails.
 However,
cd gc-7.0
./configure

then make boot seems to work.  (Not very scientific). Then I can
make stage1
make stage2
make test2
etc

does that help?
Mike

On Sun, Jun 1, 2008 at 5:00 AM, Dethe Elza <delza@...> wrote:
> On 27-May-08, at 1:39 PM, Michael Roberts wrote:
>
>> sorry for replying to my own post
>>
>> I think from trunk/object
>> make config GCDIR=gc-7.0
>>
>> then make as normal.  (I had to do a distclean)
>>
>> cheers,
>> Mike
>
> I've tried this, but I was getting a different error:
(Continue reading)

Dethe Elza | 3 Jun 23:38

Re: can't build on osx

On 2-Jun-08, at 2:06 PM, Michael Roberts wrote:

> Do you have the latest XCode? I don't know if that's relevant.

That's an interesting point.  I have XCode 3.1 beta so I can test out  
iPhone development.  Perhaps I should downgrade to the latest stable  
XCode (3.0).

> If I check out the repository fresh, in trunk/obect 'make boot' fails.
> However,
> cd gc-7.0
> ./configure

OK, I'd been trying make distclean but I have tried with a fresh  
checkout.

> then make boot seems to work.  (Not very scientific). Then I can
> make stage1
> make stage2
> make test2
> etc

Hey, that seems to have worked, where etc. is:
make stage3
cd ..  # down to cola root
make

At least it all went through the compiler OK, will run tests later,  
got to go pick up my kids from school.

(Continue reading)

Michael FIG | 9 Jun 09:11

Re: can't build on osx

Hi,

Dethe Elza <delza@...> writes:

> 1. A pointer on the web with current working instructions labelled
> "Start Here"

Ultimately, that's what the wiki should be.  I think the problem here
is that nobody who both knows Id well enough and also has compiled it
on OSX has also written up their experiences there.  I should be able
to get to it someday, but I'm new to my Mac (I have 10.4), and haven't
tried compiling Id on it yet.

> 3. Get the bootstrap to the point where typing make does the right
> thing, or at least ./configure;make

That's what should happen now.  I know for a fact that Ian's main
build machine is his Mac, so it should Just Work, and if it doesn't,
please report problems here.

Once I can run COLA successfully on my Mac and Windows boxen, I will
put up better instructions including patches for those who want to run
something more bleeding edge than the last official "stable" release,
but hopefully still working (i.e. I intend to maintain something for
COLA analogous to Debian's "testing" branch, since I need it to do my
own development).  That's what Ocean is supposed to be, but it isn't
quite there yet.

> 4. (for OS X) have a dmg or zip with a working system (or installer)
> downloadable
(Continue reading)


Gmane