What version of gcc are you using?
Maybe my gnu gcc is not functional, let me check it out and get back to you
On Saturday, November 21, 2015, George Colpitts <george.colpitts@gmail.com> wrote:No, it's the reverse, it is gnu gcc that fails and Apple gcc that worksAttached is the config.log for the failing case of gnu gccOn Sat, Nov 21, 2015 at 12:05 PM, Ben Gamari <ben@well-typed.com> wrote:George Colpitts <george.colpitts@gmail.com> writes:
> The hq rc3 mac binary build is where I am reporting the problem.
> I also reproduced it on a mac just now on the hq rc3 src build which I
> guess is not surprising.
>
> I believe I encountered this in previous 7.10.3 builds but failed to report
> it.
>
> Sorry
>
> On Sat, Nov 21, 2015 at 12:07 AM, Carter Schonwald <
> carter.schonwald@gmail.com> wrote:
>
>> Was this my build or the hq build?
>> On Nov 20, 2015 6:55 PM, "George Colpitts" <george.colpitts@gmail.com>
>> wrote:
>>
>>> On MacOS if your path is such that gcc is the gnu gcc rather than Apple's
>>> gcc then ./configure gives
>>>
>>> checking whether we are cross compiling... configure: error: in
>>> `/Users/gcolpitts/downloads/ghc-7.10.2.20151114':
>>> configure: error: cannot run C compiled programs.
>>> If you meant to cross compile, use `--host'.
>>> See `config.log' for more details
>>>
It's not clear to me why Apple's "GCC" (actually clang, if I'm not
mistaken) doesn't work here. Could you paste config.log somewhere?
Cheers,
- Ben