[gambit-list] macos 10.9
Marc Feeley
feeley at iro.umontreal.ca
Mon May 5 15:11:44 EDT 2014
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
More information about the Gambit-list
mailing list