GForth 6.2 built on Mac Xcode troubles
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
GForth 6.2 built on Mac Xcode troubles         


Author: brian.fox
Date: Mar 10, 2008 19:43

Hello GForth experts,

I have inherited a 'hand-me-down' Dual G5 from my wife, the graphic
designer (ellyfox.com). I of course had to install the newest Xcode
tools for the Leopard version of OS/X. And of course I don't know
very much about C. I have built GForth in the past using the command
line. (Even I can type 'make' :-) )

So, I think... wouldn't it be neat if I could build GForth with Xcode
(uses GCC 4.0) . So I did my best to put the appropriate files into
an Apple 'Standard Tool' project, which builds a command line app in
C.

I removed all "Arch" folder files except the ones for Power PC and 386
and here are the errors I get from file strerror.c :

#include
#include
extern char *sys_errlist[];
error: conflicting types for 'sys_errlist'

extern int sys_nerr;
error: conflicting type qualifiers for 'sys_nerr'
< end errors>
Show full article (3.66Kb)
11 Comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: John Doty
Date: Mar 10, 2008 20:19

brian.fox@rogers.com wrote:
> Hello GForth experts,
>
> I have inherited a 'hand-me-down' Dual G5 from my wife, the graphic
> designer (ellyfox.com). I of course had to install the newest Xcode
> tools for the Leopard version of OS/X. And of course I don't know
> very much about C. I have built GForth in the past using the command
> line. (Even I can type 'make' :-) )

The easy way is to install Fink (http://www.finkproject.org/). That's a
Unix open source software importation system for MacOSX. Then just "fink
install gforth" from the command line.

--
John Doty, Noqsi Aerospace, Ltd.
http://www.noqsi.com/
--
History teaches that logical consistency is neither sufficient nor
necessary to establish practical, real world truth. Those who attempt to
use logic for that purpose are abusing it.
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: brian.fox
Date: Mar 10, 2008 20:42

On Mar 10, 11:19 pm, John Doty whispertel.LoseTheH.net> wrote:
> brian....@rogers.com wrote:
>> Hello GForth experts,
>
>> I have inherited a 'hand-me-down' Dual G5 from my wife, the graphic
>> designer (ellyfox.com). I of course had to install the newest Xcode
>> tools for the Leopard version of OS/X. And of course I don't know
>> very much about C. I have built GForth in the past using the command
>> line. (Even I can type 'make' :-) )
>
> The easy way is to install Fink (http://www.finkproject.org/). That's a
> Unix open source software importation system for MacOSX. Then just "fink
> install gforth" from the command line.
>
> --
> John Doty, Noqsi Aerospace, Ltd.http://www.noqsi.com/
> --
> History teaches that logical consistency is neither sufficient nor
> necessary to establish practical, real world truth. Those who attempt to
> use logic for that purpose are abusing it. ...
Show full article (1.58Kb)
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: John Doty
Date: Mar 10, 2008 20:52

brian.fox@rogers.com wrote:
> On Mar 10, 11:19 pm, John Doty whispertel.LoseTheH.net> wrote:
>> brian....@rogers.com wrote:
>>> Hello GForth experts,
>>> I have inherited a 'hand-me-down' Dual G5 from my wife, the graphic
>>> designer (ellyfox.com). I of course had to install the newest Xcode
>>> tools for the Leopard version of OS/X. And of course I don't know
>>> very much about C. I have built GForth in the past using the command
>>> line. (Even I can type 'make' :-) )
>> The easy way is to install Fink (http://www.finkproject.org/). That's a
>> Unix open source software importation system for MacOSX. Then just "fink
>> install gforth" from the command line.
>>
>> --
>> John Doty, Noqsi Aerospace, Ltd.http://www.noqsi.com/
>> --
>> History teaches that logical consistency is neither sufficient nor
>> necessary to establish practical, real world truth. Those who attempt to
>> use logic for that purpose are abusing it.
> ...
Show full article (2.32Kb)
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: Dennis Ruffer
Date: Mar 11, 2008 07:21

Brian, the warnings are typical, but the errors are a problem (I suspect).

I haven't updated to Leopard yet, nor have I tried to do it on a G5 in
quite a while, but the gforth TOT on CVS works fine on my PowerBook G4
with Tiger and the following gcc:

powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370)

Which gforth are you trying to compile?

DaR
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: brian.fox
Date: Mar 11, 2008 17:04

On Mar 11, 10:21 am, Dennis Ruffer speakeasy.net> wrote:
> Brian, the warnings are typical, but the errors are a problem (I suspect).
>
> I haven't updated to Leopard yet, nor have I tried to do it on a G5 in
> quite a while, but the gforth TOT on CVS works fine on my PowerBook G4
> with Tiger and the following gcc:
>
> powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370)
>
> Which gforth are you trying to compile?
>
> DaR

Thanks for the reply Dennis. Here is the welcome screen from the
version I have when I compile from the terminal command line

Gforth 0.6.2, Copyright (C) 1995-2003 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit

So when you compiled it on your Powerbook, did you use Xcode?
Show full article (0.91Kb)
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: Dennis Ruffer
Date: Mar 12, 2008 10:22

On 2008-03-11 18:04:25 -0600, brian.fox@rogers.com said:
> On Mar 11, 10:21 am, Dennis Ruffer speakeasy.net> wrote:
>> Brian, the warnings are typical, but the errors are a problem (I suspect).
>>
>> I haven't updated to Leopard yet, nor have I tried...
Show full article (2.72Kb)
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: Robert Spykerman
Date: Mar 29, 2008 20:57

20 days later (sorry I am very busy IRL at the mo...)

On Mar 11, 12:43 pm, brian....@rogers.com wrote:
> Hello GForth experts,
>
> I have inherited a 'hand-me-down' Dual G5 from my wife, the graphic
> designer (ellyfox.com). I of course had to install the newest Xcode
> tools for the Leopard version of OS/X. And of course I don't know
> very much about C. I have built GForth in the past using the command
> line. (Even I can type 'make' :-) )
,,,snip

ROFL - I got a hand me down too - I wish I could say I got me a
duallie G5 but the ibook will do - I spent most of last night trying
to build 0,6.2 on the G4 with GCC3.3 OS X 10.3.9.

I built ffcall 1.1 then proceeded to go for gforth...

I finally got 0.6.2 compiled with the long long switch

http://www.complang.tuwien.ac.at/forth/gforth/Known-problems.html

It runs, it links to ffcall dynamically but there are a few issues I
have yet to sit down and figure out ie the word see seems to crash the
system.
Show full article (1.74Kb)
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: Dennis Ruffer
Date: Mar 30, 2008 17:58

On 2008-03-29 22:57:36 -0500, Robert Spykerman
gmail.com> said:
> I finally got 0.6.2 compiled with the long long switch
>
> http://www.complang.tuwien.ac.at/forth/gforth/Known-problems.html
>
> It runs, it links to ffcall dynamically but there are a few issues I
> have yet to sit down and figure out ie the word see seems to crash the
> system.
>
> *** Has anyone build a gforth 0.6.x on an old PPC G4 set up like mine
> succesfully and can tell me about their experiences?
>
> I know it's been done :

Robert, I have been running gforth on G3/4/5 systems for years. You
found one of the issues with 0.6.2. There are others, but I don't
remember what they were at the moment. Anton and I worked most...
Show full article (2.04Kb)
no comments
Re: GForth 6.2 built on Mac Xcode troubles         


Author: Robert Spykerman
Date: Mar 31, 2008 02:54

On Mar 31, 10:58 am, Dennis Ruffer speakeasy.net> wrote:
> On 2008-03-29 22:57:36 -0500, Robert Spykerman
> gmail.com> said:
>> ...
>> *** Has anyone build a gforth 0.6.x on an old PPC G4 set up like mine
>> succesfully and can tell me about their experiences?
>> ...
>
> Robert, I have been running gforth on G3/4/5 systems for years. You
> found one of the issues with 0.6.2. There are others, but I don't
> remember what they were at the moment. Anton and I worked most
> recently on MacIntel boxes, and last I checked, his latest CVS version
> has all the wrinkles worked out. I'm sure Anton would agree that you
> should be using it. On PPC systems you might be able to get away with
> the 0.6.9 snapshot, but as others have commented, waiting for gforth
> releases...
Show full article (2.34Kb)
no comments
1 2