installation problem

292 views
Skip to first unread message

joePython

unread,
Nov 9, 2009, 10:39:26 AM11/9/09
to cython-users
Hello,
I'm having an issue with cython installation in Mac and hoping to get
some help.
I have installed the Xcode tools. Running the install script gives me
the following...

...
creating build/temp.macosx-10.4-i386-2.5/Users/joebarfett/Desktop/
Cython-0.11.3/Cython/Plex
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/
Python.framework/Versions/2.5/include/python2.5 -c /Users/joebarfett/
Desktop/Cython-0.11.3/Cython/Plex/Scanners.c -o build/temp.macosx-10.4-
i386-2.5/Users/joebarfett/Desktop/Cython-0.11.3/Cython/Plex/Scanners.o
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/1I/
1IOFcx8xHPWOBxtsQ1BZgE+++TI/-Tmp-//ccBQDK4k.out
error: command 'gcc' failed with exit status 1

Importantly, Xcode is supposed to have the GCC compiler. Any
suggestions would be appreciated. I'm running snow leopard. Thanks for
this great tool!
joe

Lisandro Dalcin

unread,
Nov 9, 2009, 11:50:13 AM11/9/09
to cython...@googlegroups.com

This is a known issue in OS X with some Python installs (note: never
ever used a Mac). It has nothing to do with Cython, and you will run
on the same trouble EVERY time you want to build an C extension
module.

This is the most sane (if not the only) way to fix it:

1) Enter Python prompt, and type this:

>>> from distutils import sysconfig
>>> sysconfig.get_makefile_filename()

That should output the full path of a 'Makefile'... Open that file
with any text editor and remove all occurrences of '-Wno-long-double'
flag.

--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

Robert Bradshaw

unread,
Nov 9, 2009, 1:35:40 PM11/9/09
to cython...@googlegroups.com

Thanks. I've added

http://wiki.cython.org/FAQ#HowdoIworkthe-Wno-long-doubleerrorwheninstallingonOSX

As this is bound to come up again.

- Robert

Tom Machinski

unread,
Nov 9, 2009, 10:34:04 PM11/9/09
to cython-users
A good way to install Cython on OS X is to use Macports. Just:

sudo port install py26-cython

And you're set.

-- Tom

Robert Bradshaw

unread,
Nov 10, 2009, 2:11:21 AM11/10/09
to cython...@googlegroups.com

It looks like the py-cython and py25-cython are out of date (only one
version, which is way better than most cython packages), but the py26-
cython is indeed the latest release. Does this work on 10.6?

- Robert

Tom Machinski

unread,
Nov 10, 2009, 4:16:52 AM11/10/09
to cython...@googlegroups.com
On Mon, Nov 9, 2009 at 11:11 PM, Robert Bradshaw 
It looks like the py-cython and py25-cython are out of date (only one version, which is way better than most cython packages), but the py26-cython is indeed the latest release. Does this work on 10.6?

Can't be sure, unfortunately, I'm on latest 10.5 (10.5.8) here.

-- Tom
 
- Robert
Reply all
Reply to author
Forward
0 new messages