Dennis Lee | 16 Feb 17:20 2013
Picon

cython install error

Hello,


I'm trying to install Cython 0.18 on Lion.
But this is what i got.

Kiui-MacBook-Pro:Cython-0.18 kihyukyee$ python setup.py installrunning installrunning buildrunning build_pyrunning build_ext
building 'Cython.Plex.Scanners' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Cython/Plex/Scanners.c -o build/temp.macosx-10.6-intel-2.7/Cython/Plex/Scanners.o
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
                 from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
                 from Cython/Plex/Scanners.c:4:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
                 from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
                 from Cython/Plex/Scanners.c:4:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/q2/1x5nxgzj53n8cw_vtd8wk53w0000gn/T//ccfL4Loj.out
error: command 'gcc-4.2' failed with exit status 1

Anyone knows how to fix this?

--
 
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Bradley Froehle | 17 Feb 03:53 2013
Picon

Re: cython install error

Hi Dennis:


I ran into this problem a while ago but don't remember how I sovled it.  Which versions of Python and Xcode do you have installed?

Google searches seem to suggest a lot of different remedies but many boil down to uninstalling and reinstalling Xcode.

You might also want to try running as:
    CC=llvm-gcc-4.2 python setup.py install

-Brad

On Saturday, February 16, 2013 8:20:58 AM UTC-8, Dennis Lee wrote:
Hello,

I'm trying to install Cython 0.18 on Lion.
But this is what i got.

Kiui-MacBook-Pro:Cython-0.18 kihyukyee$ python setup.py installrunning installrunning buildrunning build_pyrunning build_ext
building 'Cython.Plex.Scanners' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Cython/Plex/Scanners.c -o build/temp.macosx-10.6-intel-2.7/Cython/Plex/Scanners.o
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
                 from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
                 from Cython/Plex/Scanners.c:4:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
                 from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
                 from Cython/Plex/Scanners.c:4:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/q2/1x5nxgzj53n8cw_vtd8wk53w0000gn/T//ccfL4Loj.out
error: command 'gcc-4.2' failed with exit status 1

Anyone knows how to fix this?

--
 
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Stefan Behnel | 17 Feb 07:08 2013
Picon

Re: cython install error

Dennis Lee, 16.02.2013 17:20:
> I'm trying to install Cython 0.18 on Lion.
> But this is what i got.
> 
> Kiui-MacBook-Pro:Cython-0.18 kihyukyee$ python setup.py installrunning 
> installrunning buildrunning build_pyrunning build_ext
> building 'Cython.Plex.Scanners' extension
> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g 
> -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
> -c Cython/Plex/Scanners.c -o 
> build/temp.macosx-10.6-intel-2.7/Cython/Plex/Scanners.o
> In file included from 
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
>                  from 
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
>                  from Cython/Plex/Scanners.c:4:
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: 
> No such file or directory
> In file included from 
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
>                  from 
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
>                  from Cython/Plex/Scanners.c:4:
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: 
> No such file or directory
> lipo: can't figure out the architecture type of: 
> /var/folders/q2/1x5nxgzj53n8cw_vtd8wk53w0000gn/T//ccfL4Loj.out
> error: command 'gcc-4.2' failed with exit status 1
> 
> Anyone knows how to fix this?

Most likely just the usual Crappy Apple problem. Take a look at this
thread, there should be some help in it.

http://thread.gmane.org/gmane.comp.python.lxml.devel/6722/focus=6726

Stefan

--

-- 

--- 
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Dennis Lee | 17 Feb 12:17 2013
Picon

Re: cython install error

Thanks, Bradley and Stefan for helpful information!

Running "CC=llvm-gcc-4.2 python setup.py install" works!


2013년 2월 17일 일요일 오후 3시 8분 19초 UTC+9, Stefan Behnel 님의 말:
Dennis Lee, 16.02.2013 17:20:
> I'm trying to install Cython 0.18 on Lion.
> But this is what i got.
>
> Kiui-MacBook-Pro:Cython-0.18 kihyukyee$ python setup.py installrunning
> installrunning buildrunning build_pyrunning build_ext
> building 'Cython.Plex.Scanners' extension
> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g
> -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
> -c Cython/Plex/Scanners.c -o
> build/temp.macosx-10.6-intel-2.7/Cython/Plex/Scanners.o
> In file included from
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
>                  from
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
>                  from Cython/Plex/Scanners.c:4:
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:
> No such file or directory
> In file included from
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
>                  from
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
>                  from Cython/Plex/Scanners.c:4:
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:
> No such file or directory
> lipo: can't figure out the architecture type of:
> /var/folders/q2/1x5nxgzj53n8cw_vtd8wk53w0000gn/T//ccfL4Loj.out
> error: command 'gcc-4.2' failed with exit status 1
>
> Anyone knows how to fix this?

Most likely just the usual Crappy Apple problem. Take a look at this
thread, there should be some help in it.

http://thread.gmane.org/gmane.comp.python.lxml.devel/6722/focus=6726

Stefan

--
 
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Gmane