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@iro.umontreal.ca Date: Mon, 5 May 2014 15:11:44 -0400 CC: gambit-list@iro.umontreal.ca To: denis.prog@hotmail.com
On May 5, 2014, at 2:23 PM, Denis Fourt denis.prog@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