<div dir="ltr">digging around in <a href="http://configure.ac">configure.ac</a> it looks like i need to set CC_STAGE0 env variable to my desired CC :) <div><br></div><div>hope this helps other folks... but it definiely seems like the current logic for CC_STAGE0 is more brittle than for CC</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 24, 2017 at 5:02 PM, Carter Schonwald <span dir="ltr"><<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hey All, the current settings for warnings etc for ghc validate do not work on mac,<div><br></div><div>this is because some gcc flag isn't in clang, or vice versa, or some version of gcc related matter</div><div><br></div><div><div>the relevant error is: <br></div><div><br></div><div>error: unknown warning option '-Werror=unused-but-set-<wbr>variable'; did you mean '-Werror=unused-const-<wbr>variable'? [-Werror,-Wunknown-warning-<wbr>option]</div></div><div><br></div><div>the culprit seems to be apple clang, at least if my reading of the config output by validate is correct </div><div><br></div><div><div>Configure completed successfully.</div><div><br></div><div> Building GHC version : 8.5.20171223</div><div> Git commit id : d7d0aa316f9d23d73ae617e0cc1b14<wbr>7907667ef4</div><div><br></div><div> Build platform : x86_64-apple-darwin</div><div> Host platform : x86_64-apple-darwin</div><div> Target platform : x86_64-apple-darwin</div><div><br></div><div> Bootstrapping using : /Users/carter/.install-ghc/<wbr>ghc-8.2.2-hq/bin/ghc</div><div> which is version : 8.2.2</div><div><br></div><div> Using (for bootstrapping) : /usr/bin/clang</div><div> Using gcc : /usr/local/bin/gcc-7</div><div> which is version : 7.2.0</div><div> Building a cross compiler : NO</div><div> Unregisterised : NO</div><div> hs-cpp : /usr/local/bin/gcc-7</div><div> hs-cpp-flags : -E -undef -traditional</div></div><div><br></div><div><br></div><div>there seem to be several take aways:</div><div><br></div><div>1) clang doesn't support unused-but-set-variable</div><div>1.5) no one has run validate on OSX in the past few months with a vanilla checkout / env?</div><div>2) how do i change the compiler selected for boot strapping, whether via env variables or other twiddles</div><div><br></div><div>thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Carter</div></font></span></div>
</blockquote></div><br></div>