Yes, but it doesn't work for people still using Xcode 4.6!  <div><br></div><div>Might it be more correct, albeit hacky aesthetically, to have the clang wrapper actually call GCC, because in Xcode 5 its just a wrapper around clang, and in Xcode 4.6 we need to use GCC rather than clang anyways?  </div>
<div><br></div><div>That said, that might be the best overall approach.  Though it does entail packaging the clang wrapper with ghc / hp for ghc 7.6 on OS X<br><br>On Monday, October 14, 2013, Luke Iannini  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">To briefly explain the issue with Xcode 5 and GHC 7.6.3, as it's really not that big:<div>7.6.3 passes "-x c" when running the c compiler in preprocessor mode. Clang requires "-x assembler-with-cpp" to be compatible with the GHC codebase.<br>


<div><br><div class="gmail_extra">So the workaround Austin Seipp helped me cook up is to simply wrap clang, detect it's being run in preprocessor mode (i.e. look for the args "-E -undef -traditional"), and make sure it gets passed -x assembler-with-cpp.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">You can see the entirety of it here:</div><div class="gmail_extra"><a href="https://github.com/ghc-ios/ghc-ios-scripts/blob/master/clang-xcode5-wrapper.hs" target="_blank">https://github.com/ghc-ios/ghc-ios-scripts/blob/master/clang-xcode5-wrapper.hs</a><br>


</div><div class="gmail_extra"><br></div><div class="gmail_extra">I wrote the workaround as a a Haskell script, but someone with basic bash-fu could easily write it as a shell script.</div><div class="gmail_extra"><br></div>


<div class="gmail_extra">7.6.3's settings file just has to be pointed at that wrapper instead of directly at clang and then everything works flawlessly with Xcode 5's clang, on 10.8 and 10.9 alike.</div><div class="gmail_extra">


<br></div><div class="gmail_extra">Cheers</div><div class="gmail_extra">Luke</div><div><br><div>On Mon, Oct 14, 2013 at 9:13 AM, Carter Schonwald <span dir="ltr"><<a>carter.schonwald@gmail.com</a>></span> wrote:<br>


<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I guess my point is there's a number of work arounds that are easy for a power user to support, but should NOT be the default setup or config required for new users. <div>


<br></div><div>Eg: brew also provides an installer for apple-gcc42 and you could then point your ghc settings file to. </div>
<div><br></div><div>That said, it's not a solution we probably want to encourage by default, it definitely took me a while to cook up sane directions, and some of those directions/approaches apparently become useless if you update to OS X 10.9. (I think partly because the default C++ std libs on Mac shift, so you can't easily build GCC on mavericks currently allegedly )</div>



<div><div><br>On Monday, October 14, 2013, Edward Kmett  wrote:<br></div><div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div dir="ltr">As I do most of my development on a Mac I confess I currently live in fear of accidentally clicking on the XCode 5 upgrade button and winding up in an unsupported configuration. That makes me very leery of option C, where developers like me are treading on egg-shells around system updates for the next 6 months.<div>




<div><br></div><div>-Edward</div><div><br></div></div></div><div><br><br><div>On Sun, Oct 13, 2013 at 7:26 PM, Mark Lentczner <span dir="ltr"><<a>mark.lentczner@gmail.com</a>></span> wrote:<br>



<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">It wasn't my intention to open up the whole question of scheduled releases. HP has a regular release schedule, and there were many good discussions leading up to it. As for the timing of those releases, last time we looked into this there was no good release time that worked for all the common Linux distro's release schedules. Perhaps GNOME has figured this one out - they release stable end of September and end of March. We could aim to glide toward that.<br>






<div><br></div><div>Back to this release:</div><div><br></div><div>GHC 7.8 won't be ready for inclusion in an HP for quite some time. We haven't even seen the first release yet! If it has stabilized by end of February, then it could make it into the next HP (assuming we don't move the schedule up to match GNOME).  But I think realistically, one shouldn't expect a GHC 7.8 as part of an HP release until 2014.4.0.0. <i>[Aside: If the community wants to see closer tracking, then we probably need to start talking about a different way of producing GHC - with both stable and experimental releases happening... when this idea has been raised in the past, GHC central hasn't had the person-power to do it.]</i></div>






<div><i><br></i></div><div>The next Mac OS X is indeed right around the corner (no official date from Apple, just "this Autumn") - the GM release candidate of both OS X Mavericks and Xcode 5 are already in developers (and my) hands. My understanding is that current HP just won't work on it - which means we really should get something out to support it.</div>






<div><br></div><div>SO, back to concrete ideas:<br><br></div><div><b>A) Minor release</b></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>• Minor rev:</b> since GHC and most packages haven't changed, and we won't be adding anything, just roll it as normal now.</div>






<div><b>• Bump for Mac:</b> immediately after, roll HP 2013.4.1.0 which has GHC 7.6.3 + patches (perhaps named 7.6.4?), so this works w/Xcode 5</div></blockquote><div><i>—or—</i></div><div><b>B) Delay release</b></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">






<div><b>• New packages:</b> running the normal process, just a month late</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>• Bump for Mac: </b>get GHC central to put out 7.6.4 which has what is needed to support Xcode 5</div>






</blockquote><i>—or—</i><div><b>C) Skip a release</b></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>• Go for 7.8:</b> push everyone (GHC central, library maintainers) to get 7.8 stable ASAP</div>






</blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>• Big Push for Packages:</b> use the time to push for a significant increase in the packages in the Platform</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
</blockquote></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div>
</blockquote></div>