Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Compile fails OS X 10.4
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kannaballistic  
View profile  
 More options Nov 12 2009, 1:41 am
From: kannaballistic <cbraga...@gmail.com>
Date: Wed, 11 Nov 2009 22:41:31 -0800 (PST)
Local: Thurs, Nov 12 2009 1:41 am
Subject: Compile fails OS X 10.4
Hello
I'm am trying to compile Go in OS X 10.4. I set the following
variables in .profile:

export  GOROOT=$HOME/go
export GOOS=darwin
export GOARCH=386
export GOBIN=/usr/bin

When trying to compile, the compile dies at this point:

%%%% making libmach %%%%

...

/Users/test/go/src/libmach/darwin.c:656: error: parse error before
'regs'
/Users/test/go/src/libmach/darwin.c:657: error:
'x86_THREAD_STATE64_COUNT' undeclared (first use in this function)
make: *** [darwin.o] Error 1
make: *** Waiting for unfinished jobs....

Any help, please?
Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Lance Taylor  
View profile  
 More options Nov 12 2009, 10:02 am
From: Ian Lance Taylor <i...@google.com>
Date: Thu, 12 Nov 2009 07:02:49 -0800
Local: Thurs, Nov 12 2009 10:02 am
Subject: Re: [go-nuts] Compile fails OS X 10.4

kannaballistic <cbraga...@gmail.com> writes:
> Hello
> I'm am trying to compile Go in OS X 10.4. I set the following
> variables in .profile:

> export  GOROOT=$HOME/go
> export GOOS=darwin
> export GOARCH=386
> export GOBIN=/usr/bin
> /Users/test/go/src/libmach/darwin.c:656: error: parse error before
> 'regs'
> /Users/test/go/src/libmach/darwin.c:657: error:
> 'x86_THREAD_STATE64_COUNT' undeclared (first use in this function)
> make: *** [darwin.o] Error 1
> make: *** Waiting for unfinished jobs....

That code is for 64-bit Mach.  It may be that that support only
appeared in the Darwin header files in OS X 10.5 and later--I'm not
sure.

Can anybody suggest a #ifdef or something to detect this case?

Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carsten Elton Sørensen  
View profile  
 More options Nov 12 2009, 2:17 pm
From: Carsten Elton Sørensen <cso...@gmail.com>
Date: Thu, 12 Nov 2009 20:17:49 +0100
Local: Thurs, Nov 12 2009 2:17 pm
Subject: Re: [go-nuts] Compile fails OS X 10.4
2009/11/12 Ian Lance Taylor <i...@google.com>:

> That code is for 64-bit Mach.  It may be that that support only
> appeared in the Darwin header files in OS X 10.5 and later--I'm not
> sure.

10.5 is the first version to have 64 bit support, so yes, you are correct.

> Can anybody suggest a #ifdef or something to detect this case?

There's __LP64__ which is defined to 1 when compiling for a 64 bit architecture.

There's also __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__. The system
headers seem to use this to detect which specific platform you're
compiling for and enables specific types based on this.

#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) &&
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
...
#endif

1050 is the magic value for 10.5.0.

Cheers,
Carsten Sørensen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russ Cox  
View profile  
 More options Nov 12 2009, 8:41 pm
From: Russ Cox <r...@golang.org>
Date: Thu, 12 Nov 2009 17:41:43 -0800
Local: Thurs, Nov 12 2009 8:41 pm
Subject: Re: [go-nuts] Compile fails OS X 10.4

I'm afraid that we haven't tried to run Go on OS X 10.4.
Even if you get past this problem and can build everything,
there may be other surprises: Go bypasses the system
libraries and makes system calls directly, and we haven't
tested any of it on 10.4.  It might take some low-level
system hacking to get things working.  I honestly don't know.

If it makes sense for you to do so, the easiest solution is to
switch to 10.5 or 10.6, both of which are known to work.

Please feel free to add this to the issue tracker
(http://code.google.com/p/go/issues/list)
as a way to coordinate with others who might want
to work on making Go run on OS X 10.4.

Russ


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »