Does gcc45 support -arch?

Ryan Schmidt ryandesign at macports.org
Sat Dec 17 22:35:44 PST 2011


On Dec 18, 2011, at 00:23, Brandon Allbery wrote:
> On Sun, Dec 18, 2011 at 01:02, Ryan Schmidt wrote:
>> On Dec 17, 2011, at 23:53, Brandon Allbery wrote:
>> > The problem is, they're expecting you to have Apple's compiler as the default.  Other compilers do not support -arch, nor can they build for multiple architectures simultaneously as this package is trying to do.
>> >
>> > One way to work around this is to temporarily put /usr/bin at the start of your $PATH while building this package (e.g. "PATH=/usr/bin:$PATH make").
>> 
>> ...that will make it use Apple's gcc, right? I thought the goal of the exercise was to compile the program with gcc45.
> 
> That may be the objective, but since it's passing "-arch i386 -arch x86_64", that's likely to be a rather tall order.

But it's not the software he's trying to build that's adding -arch flags. At the moment I presume it's his non-MacPorts perl. So he should try MacPorts perl instead, since I believe we've fixed this problem there.



More information about the macports-users mailing list