shunwang / numexpr

Automatically exported from code.google.com/p/numexpr
MIT License
0 stars 0 forks source link

Build fails on OSX 10.6.6 #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am not able to build numexpr on OSX 10.6.6 due to what appears to be lack of 
support for ppc in gcc 4.2.1 (see below). I have no interest in building for 
ppc architecture, but there does not appear to be a way of excluding it. Any 
idea how to get numexpr built on OSX?

creating build/temp.macosx-10.6-universal-2.6
creating build/temp.macosx-10.6-universal-2.6/numexpr
compile options: 
'-I/Library/Python/2.6/site-packages/numpy-1.6.0.dev_b28b115_20110307-py2.6-maco
sx-10.6-universal.egg/numpy/core/include 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c'
extra options: '-funroll-all-loops'
gcc-4.2: numexpr/interpreter.c
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler 
(/usr/bin/../libexec/gcc/darwin/ppc/as or 
/usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
numexpr/interpreter.c:1934: fatal error: error writing to -: Broken pipe
compilation terminated.
numexpr/interpreter.c: In function ‘NumExpr_run’:
numexpr/interpreter.c:1458: warning: comparison is always false due to limited 
range of data type
numexpr/interpreter.c:1461: warning: comparison is always false due to limited 
range of data type
numexpr/interpreter.c:1679: warning: comparison is always false due to limited 
range of data type
lipo: can't open input file: 
/var/folders/kf/kfvsPUulHTyPN2AtGPwOdk+++TI/-Tmp-//cc0PBe1c.out (No such file 
or directory)
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler 
(/usr/bin/../libexec/gcc/darwin/ppc/as or 
/usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
numexpr/interpreter.c:1934: fatal error: error writing to -: Broken pipe
compilation terminated.
numexpr/interpreter.c: In function ‘NumExpr_run’:
numexpr/interpreter.c:1458: warning: comparison is always false due to limited 
range of data type
numexpr/interpreter.c:1461: warning: comparison is always false due to limited 
range of data type
numexpr/interpreter.c:1679: warning: comparison is always false due to limited 
range of data type
lipo: can't open input file: 
/var/folders/kf/kfvsPUulHTyPN2AtGPwOdk+++TI/-Tmp-//cc0PBe1c.out (No such file 
or directory)
error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g 
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc 
-arch x86_64 -pipe 
-I/Library/Python/2.6/site-packages/numpy-1.6.0.dev_b28b115_20110307-py2.6-macos
x-10.6-universal.egg/numpy/core/include 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c 
numexpr/interpreter.c -o 
build/temp.macosx-10.6-universal-2.6/numexpr/interpreter.o -funroll-all-loops" 
failed with exit status 1
removed __svn_version__.py

Original issue reported on code.google.com by fonnesb...@gmail.com on 22 Mar 2011 at 10:59

GoogleCodeExporter commented 9 years ago
I figured it out -- XCode 4 no longer supports ppc, so I had to do the 
following to keep numexpr from trying to build for ppc:

ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build

Thanks

Original comment by fonnesb...@gmail.com on 22 Mar 2011 at 11:02

GoogleCodeExporter commented 9 years ago
Closing ticket.

Original comment by fal...@gmail.com on 23 Mar 2011 at 8:30