swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maybe a magic Mac bullet here[Fwd: gcc with GNU ObjC Runtime on MacO


From: W . Northcott
Subject: Re: Maybe a magic Mac bullet here[Fwd: gcc with GNU ObjC Runtime on MacOSX]
Date: Fri, 20 Sep 2002 16:09:59 +1000

Its a kind thought on his part to send it. 

However, although it makes some useful observations, it is not really 
relevant to compiling Swarm.  Our problem is to access both the Swarm 
(modified GNU) runtime and the Apple one in the same program.  So that we 
can use all the good stuff in Apple's AppKit.

All his tip does is change the default compiler flag, which I would 
certainly NOT do on my computer because all sorts of other code written 
for MacOS X would not compile once you had done this.  The correct way is 
to add the '-fgnu-runtime' flag to the compiler flags for the relevant 
Swarm code.

That symbolic link he is suggesting is also pretty hazardous and 
unnecessary for Swarm which does not use the standard gnu runtime.

I'll send him a thanks for his thought.  You never know he may have some 
other ideas.

Bill Northcott

> If it works, please send him a thank you.

> --------------------------------------------
> Dear Paul:
> I just read your mail in gcc-archive, and since I solved exactly your
> problem some time ago, here is a solution:
> Download the gcc - Sources, for Objective C, you need the core and ObjC,
> of course. Don't use a version older than 3.1, because it won't compile
> on OSX.
> Now edit gcc-3.x/gcc/config/darwin.h: There is a line
> #define NEXT_OBJC_RUNTIME
> Change it to
> #undef NEXT_OBJC_RUNTIME
> Now gcc compiles for the gnu-runtime as a default (you can still use
> -fnext-runtime to use Apples runtime).
> At the end of bootstrap, a gnu Objective C runtime is compiled and
> installed, when you make install. But to use it, you have to change into
> install-dir/lib/gcc-lib/powerpc-apple-whatever/3.x
> (excuse the uncertainties, I can't access my Mac at the moment.)
> There, just produce this link:
> ln -s libobjc.a libobjc.dylib
> Only because of this link, Apples linker will use the Objective C 
Library!

> It workes perfectly for me. I use it to compile (and work
> with) gnustep-library on a Mac, and the compiler is not better or worse
> than on other systems I use.
> If you still have any problems, please send me a mail for more precise
> explanations. (Please mail anyway, if it worked)
> Good luck, Carl Eugen

> 
> --
> Paul E. Johnson                       email: address@hidden
> Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
> 1541 Lilac Lane, Rm 504
> University of Kansas                  Office: (785) 864-9086
> Lawrence, Kansas 66044-3177           FAX: (785) 864-5700
> 
> Received: from kuhub.cc.ku.edu by lark.cc.ku.edu 
> (8.8.8/1.1.8.2/12Jan95-0207PM) id NAA0000004921; Thu, 19 Sep 2002 
> 13:25:27 -0500 (CDT)
> From: <address@hidden>
> Received: from DIRECTORY-DAEMON.KUHUB.CC.KU.EDU by KUHUB.CC.KU.EDU 
> (PMDF V6.1-1 #39362) id <address@hidden> for 
> address@hidden (ORCPT address@hidden); Thu, 19 Sep 2002
> 13:25:26 -0500 (UTC -05:00)
> Received: from rainbow.studorg.tuwien.ac.at 
> (address@hidden [128.130.43.98]) by 
> KUHUB.CC.KU.EDU (PMDF V6.1-1 #39362) with ESMTP id 
> <address@hidden> for address@hidden; Thu, 19 
> Sep 2002 13:25:26 -0500 (UTC -05:00)
> Received: from localhost (address@hidden) by 
> rainbow.studorg.tuwien.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) with 
> ESMTP id UAA27798 for <address@hidden>; Thu, 19 Sep 2002 20:25:21 +0200
> Date: Thu, 19 Sep 2002 20:25:21 +0200 (CEST)
> Subject: gcc with GNU ObjC Runtime on MacOSX
> X-X-Sender: address@hidden
> To: address@hidden
> Message-id: 
> <address@hidden>
> MIME-version: 1.0
> Content-type: TEXT/PLAIN; charset=US-ASCII
> X-Authentication-warning: rainbow.studorg.tuwien.ac.at: cehoyos 
> owned process doing -bs
> 
> Dear John!
> I just read your mail in gcc-archive, and since I solved exactly your
> problem some time ago, here is a solution:
> Download the gcc - Sources, for Objective C, you need the core and ObjC,
> of course. Don't use a version older than 3.1, because it won't compile 
on
> OSX.
> Now edit gcc-3.x/gcc/config/darwin.h: There is a line
> #define NEXT_OBJC_RUNTIME
> Change it to
> #undef NEXT_OBJC_RUNTIME
> Now gcc compiles for the gnu-runtime as a default (you can still use
> -fnext-runtime to use Apples runtime).
> At the end of bootstrap, a gnu Objective C runtime is compiled and
> installed, when you make install. But to use it, you have to change into
> install-dir/lib/gcc-lib/powerpc-apple-whatever/3.x
> (excuse the uncertainties, I can't access my Mac at the moment.)
> There, just produce this link:
> ln -s libobjc.a libobjc.dylib
> Only because of this link, Apples linker will use the Objective C 
Library!

> It workes perfectly for me. I use it to compile (and work
> with) gnustep-library on a Mac, and the compiler is not better or worse
> than on other systems I use.
> If you still have any problems, please send me a mail for more precise
> explanations. (Please mail anyway, if it worked)
> Good luck, Carl Eugen

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]