[gambit-list] macos 10.9

Denis Fourt denis.prog at hotmail.com
Mon May 5 19:21:40 EDT 2014


Well, the gsc from the pre-built calls gcc which on macos 10.9 seems to be clang in fact. HomeBrew provides a precompiled gambit actually and I do not know which compiler was used, likely clang.
Denis

> Subject: Re: [gambit-list] macos 10.9
> From: feeley at iro.umontreal.ca
> Date: Mon, 5 May 2014 15:11:44 -0400
> CC: gambit-list at iro.umontreal.ca
> To: denis.prog at hotmail.com
> 
> 
> On May 5, 2014, at 2:23 PM, Denis Fourt <denis.prog at hotmail.com> wrote:
> 
> > To my surprise the HomeBrew gsc uses clang and not the gcc-4.2 though it was given the path at installation.
> > 
> > Same gambit versions but different command lines !!!!!
> > 
> > -fschedule-insns2 seems to be one part of the problem
> > 
> > Thanks,
> > 
> 
> The problem is that the Gambit compiler installed by the prebuilt installer has been configured to use the C compiler that was used when building the installer.  Moreover the “preferred” C compiler when installing Gambit is not clearly defined.  A developper could in fact have different C compilers for different projects.  One approach would be to have a compiler switch to select the C compiler to use, with all of the necessary otions.  But this seems complex for a novice user to use.  People usually prefer when it “just works”.
> 
> A simple solution would be to drop the use of -fschedule-insns2 so that clang will not raise an error if it is the C compiler that ends up being used.  That option is for performance reasons but as I recall it doesn’t improve performance by very much.
> 
> Marc
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20140505/0116f18b/attachment.htm>


More information about the Gambit-list mailing list