[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc-4.6 and "-arch x86-64"
From: |
Ben Abbott |
Subject: |
Re: gcc-4.6 and "-arch x86-64" |
Date: |
Fri, 16 Dec 2011 21:44:41 -0500 |
On Dec 16, 2011, at 3:43 PM, Alexander Hansen wrote:
> On 12/16/11 3:37 PM, Ben Abbott wrote:
>
>> On Dec 16, 2011, at 3:15 PM, Alexander Hansen wrote:
>>
>>> On 12/16/11 1:42 PM, Ben Abbott wrote:
>>>
>>>> I tried building Octave using gcc 4.6. Linking liboctinterp
>>>> ended with ...
>>>>
>>>> g++-mp-4.6: error: x86_64: No such file or directory
>>>> g++-mp-4.6: error: unrecognized option '-arch' make[3]: ***
>>>> [liboctinterp.la] Error 1 make[2]: *** [all] Error 2 make[1]:
>>>> *** [all-recursive] Error 1 make: *** [all] Error 2
>>>>
>>>> Is anyone using gcc-4.6 to build octave? Did anyone encounter
>>>> this error ?
>>>>
>>>> Ben
>>>
>>> (Assuming you're on OS X)
>>>
>>> The gcc-4.6 we use in Fink doesn't accept the -arch option, so
>>> "-arch x86_64" isn't valid. That could well be the case for the
>>> one that you're using.
>>
>> I'm currently using MacPorts, but it looks like the same problem.
>>
>> Should "-arch x86-64" just be removed or should it be replaced by
>> another option?
>>
>> Ben
>
> I'd say remove it.
I removed "-arch x86_64" from GRAPHICS_LIBS in each Makefile.
Using the both the stable and then the default branch with gcc 4.6 (from
MacPorts), "make check" passed all tests.
Using gcc-4.5 both branches also build and pass all tests (without needing to
modify the Makefiles).
Ben