gcc -fno-strict-aliasing -I/Users/cbonnett/anaconda/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Icfitsio3370 -I/Users/cbonnett/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/cbonnett/anaconda/include/python2.7 -c fitsio/fitsio_pywrap.c -o build/temp.macosx-10.5-x86_64-2.7/fitsio/fitsio_pywrap.o -arch i386 -arch x86_64 In file included from /Users/cbonnett/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0, from /Users/cbonnett/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17, from /Users/cbonnett/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from fitsio/fitsio_pywrap.c:28: /Users/cbonnett/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^ /var/tmp//ccpXrM9Y.s:16:bad register name `%rbp' . . . /var/tmp//ccpXrM9Y.s:13907:bad register name `%rax)' /var/tmp//ccpXrM9Y.s:13910:junk `@GOTPCREL' after expression /var/tmp//ccpXrM9Y.s:13910:`_PyExc_ImportError@GOTPCREL(%rip)' is not a valid base/index expression error: command 'gcc' failed with exit status 1 ProductName: Mac OS X ProductVersion: 10.9.4 BuildVersion: 13E28 Any Clues ?
this solved it :
in setup.py of fitsio change :
if platform.system()=='Darwin': extra_compile_args=['-arch','i386', '-arch','x86_64'] extra_link_args=['-arch','i386', '-arch','x86_64']
if platform.system()=='Darwin': extra_compile_args=['-arch','x86_64'] extra_link_args=['-arch','x86_64']
Chris, Ben. Please note that you do not need to edit the setup.py if you compile with clang. Clang has the ability to build OSX 'native' universal binaries. To do so, simply:
or for tcsh
setenev CC /usr/bin/cc
This is the method used and recommended for DESDM software on OSX.
same problem in snow leopard.
Also solved the problem for Yosemite. However, I also used pip to install fitsio, and pip tried to delete the temp files before I could work with them... so my [dirty] work around, was to install fitsio using pip, wait in the temp dir where files are written, copy the temp dir to another location, then when pip died, go into the newly created temp dir, make the changes, above, run python setup.py install , and then it works. Then pip install easyaccess and happy days.
Powered by a free Atlassian Confluence Open Source Project License granted to NCSA OpenSource. Evaluate Confluence today.