26 May 2012 11:29
Re: Cython 0.16 and MacOS 10.6 : unrecognized option '-arch'
Bvaidya <coolastro <at> gmail.com>
2012-05-26 09:29:46 GMT
2012-05-26 09:29:46 GMT
The higher versions of the Compiler, I have installed using the MacPorts.
The result from gcc-4.0 -v is the following :
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc_40/gcc_40-5494~315/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-arch=apple --with-tune=generic --host=i686-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5494)
So I guess this is the C -compiler that has come with the Apple Distribution.
Regards
Bhargav
On Friday, May 25, 2012 6:59:06 PM UTC+1, Min RK wrote:
How did you install your compiler? What do you get from `gcc-4.0 -v` and `which gcc-4.0` (and `which gcc`)?It's possible that a workaround is to explicitly clear ARCHFLAGS:$> export ARCHFLAGS=""-MinRKOn Fri, May 25, 2012 at 10:32 AM, Robert Bradshaw <robertwb <at> gmail.com> wrote:On Fri, May 25, 2012 at 9:35 AM, Chris Barker <chris.barker <at> noaa.gov> wrote:This is a distutils/c compiler issue, not Cython (in fact Cython is
> On Thu, May 24, 2012 at 10:37 AM, Bvaidya <coolastro <at> gmail.com> wrote:
>
>> I am having this problem of compilation of a .pyx file.
>> This error is to do with an unrecognized option for the gcc compiler.
>>
>> I create a .pyx file and then setup.py as directed in the Cython 0.16 wiki.
>> Then I run the command -
>>
>> python setup.py build_ext -i
>>
>> With this I get the error >
>
>> gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -isysroot
>> /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -O3 -arch x86_64 -isysroot
>> /Developer/SDKs/MacOSX10.5.sdk
>> -I/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/numpy/core/include
>
> I take it this is the EPD distribution -- this may be a question for
> the EPD folks -- I wonder if they do anything odd with the compiler?
> (though I wouldn't think so) -- and Cython is certainly a common use
> case for EPD users (though this doesn't look like Cython issue --
> you'd have the same issue compiling any extension with distutils.
skipped "skipping 'laplace.c' Cython extension (up-to-date)"). It
looks like you downloaded a binary not compiled with the same compiler
that you have. You could try re-compiling Python from source to get
rid of this problem for sure; otherwise contact the people you got the
binary from for help.
- Robert
RSS Feed