<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Issue #72 describes the same problem. I have just done some tests and compared between gsc from the installer and HomeBrew</div><div><br></div>Ok here is the error message :<div><div><br></div><div>The full verbose (gsc -verbose test.scm)</div><div><div>Parsing:</div><div>  fact-aux</div><div>  fact</div><div><br></div><div>Compiling:</div><div>  fact-aux</div><div>fact</div><div><br></div><div>Dumping:</div><div>  #<primitive | test|></div><div>  #<procedure fact-aux></div><div>  #<procedure fact></div><div><br></div><div>Compilation finished.</div><div>gcc -arch x86_64 -m64 -arch x86_64 -m64  -bundle  -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp   -flat_namespace -undefined suppress  -D___SINGLE_HOST -D___DYNAMIC -I"/Library/Gambit-C/v4.7.2/include" -o "test.o1"   test.c </div><div>clang: error: unknown argument: '-fschedule-insns2' [-Wunused-command-line-argument-hard-error-in-future]</div><div>clang: note: this will be a hard error (cannot be downgraded to a warning) in the future</div><div>*** ERROR IN ##main -- C compilation or link failed while compiling "test.scm"</div></div><div><br></div><div>Here is the code:</div><div><div>;(standard-bindings) (extended-bindings) (block))</div><div>(define (fact-aux n a)</div><div>  (if (<= n 1)</div><div>      a</div><div>      (fact-aux (- n 1) (* a n))))</div><div><br></div><div>(define (fact n)</div><div>  (fact-aux n 1))</div></div><div><br></div><div>**************************************************</div><div>Then I reinstalled the HomeBrew gambit and I got this :</div><div><div><br></div><div>Parsing:</div><div>  fact-aux</div><div>  fact</div><div><br></div><div>Compiling:</div><div>  fact-aux</div><div>fact</div><div><br></div><div>Dumping:</div><div>  #<primitive | test|></div><div>  #<procedure fact-aux></div><div>  #<procedure fact></div><div><br></div><div>Compilation finished.</div><div>clang    -bundle  -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common   -flat_namespace -undefined suppress  -D___DYNAMIC -I"/usr/local/Cellar/gambit-scheme/4.7.2/include" -o "test.o1"   test.c </div></div><div><br></div><div>************************** to compare with (from the installer)</div><div>gcc -arch x86_64 -m64 -arch x86_64 -m64  -bundle  -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp   -flat_namespace -undefined suppress  -D___SINGLE_HOST -D___DYNAMIC -I"/Library/Gambit-C/v4.7.2/include" -o "test.o1"   test.c </div><div><br></div><div>***************************************************</div><div><br></div><div>To my surprise the HomeBrew gsc uses clang and not the gcc-4.2 though it was given the path at installation.</div><div><br></div><div>Same gambit versions but different command lines !!!!!</div><div><br></div><div>-<font size="3">fschedule-insns2 seems to be </font>o<font size="3">ne part of the problem</font></div><div><br></div><div>Thanks,</div><div><br></div><div>Denis</div><br><div>> Subject: Re: [gambit-list] macos 10.9<br>> From: feeley@iro.umontreal.ca<br>> Date: Mon, 5 May 2014 12:50:04 -0400<br>> CC: gambit-list@iro.umontreal.ca<br>> To: denis.prog@hotmail.com<br>> <br>> <br>> On May 5, 2014, at 12:34 PM, Denis Fourt <denis.prog@hotmail.com> wrote:<br>> <br>> > Hi,<br>> > <br>> > I tried to install gambit with the installer. The interpreter worked, the compiler failed to compile a simple file (xcode and its command lines tools were installed). I finally installed apple's old gcc4.2 and then gambit with HomeBrew (the gambit formula allows to specify a compiler) and it seems to work fine. Well I might get some problems when linking with some 10.9 libs, I have no idea whether apple's previous and present compilers produce compatible binaries or not.<br>> > <br>> > Any thoughts, similar troubles related to this topic?<br>> > <br>> > Thanks,<br>> > <br>> > Denis<br>> <br>> Can you open an issue for this on github?  (https://github.com/feeley/gambit/issues)<br>> <br>> It would help if you could give the error messages that were produced.  You should try to call gsc with the -verbose option so that the invocations of the C compiler are shown.<br>> <br>> Marc<br>> <br></div></div>                                    </div></body>
</html>