<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-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-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  : d7d0aa316f9d23d73ae617e0cc1b147907667ef4</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/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><div><br></div><div>-Carter</div></div>