Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandas no longer builds on OS X after installing Xcode 5.1 #6768

Closed
fonnesbeck opened this issue Apr 2, 2014 · 11 comments
Closed

Pandas no longer builds on OS X after installing Xcode 5.1 #6768

fonnesbeck opened this issue Apr 2, 2014 · 11 comments
Labels
Build Library building on various platforms

Comments

@fonnesbeck
Copy link

After "upgrading" to Xcode 5.1, I can no longer build Pandas on OS X 10.9.2. I'm wondering if anyone has successfully done so. I get the following when running build_ext:

python setup.py build_ext --inplace
running build_ext
skipping 'pandas/index.c' Cython extension (up-to-date)
building 'pandas.index' extension
creating build
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/pandas
creating build/temp.macosx-10.9-intel-2.7/pandas/src
creating build/temp.macosx-10.9-intel-2.7/pandas/src/datetime
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ipandas/src/klib -Ipandas/src -I/Library/Python/2.7/site-packages/numpy-1.9.0.dev_297f54b-py2.7-macosx-10.9-intel.egg/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pandas/index.c -o build/temp.macosx-10.9-intel-2.7/pandas/index.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
make: *** [tseries] Error 1

After a little digging around, I noticed some folks got rid of some clang problems with export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future", so I did that. I got a little further, but it still failed.

Any suggestions for a fix are most welcome!

@TomAugspurger
Copy link
Contributor

setting theses flags:

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

was suggested in a thread for pillow. Maybe give those a shot. I'm not getting the failures on my Mac, and I don't know much in this area.

@fonnesbeck
Copy link
Author

I think that did it, thanks. It was still failing because of a bad algos.c file that was generated the previous time, but was not removed by make clean. Manually removing it did the trick.

@jreback
Copy link
Contributor

jreback commented Apr 3, 2014

@TomAugspurger if you want to make a wiki entry on mac-isms...would be great (if you have time/inclination)

@cpcloud
Copy link
Member

cpcloud commented Apr 3, 2014

Should we also have make clean remove cythonized files? Currently it doesn't remove any C files since there are some that aren't generated, simple solution might be to just make all cython files output to a particular directory instead of wherever they're located.

@cpcloud
Copy link
Member

cpcloud commented Apr 3, 2014

I ran into this when doing some work with Float64Index

@jreback
Copy link
Contributor

jreback commented Apr 3, 2014

hmm....it should be removing all c-files (except the _clean_exclude ones)....is it not?

@cpcloud
Copy link
Member

cpcloud commented Apr 3, 2014

it uses find to do the cleaning there's no python setup.py clean ... i can do that

@jreback
Copy link
Contributor

jreback commented Apr 3, 2014

oh...ok....(and have make clean actually run python setup.py clean)? which knows about the excluded c files

@Buttonwood
Copy link

I come across the question when I‘m trying to install pandas on OSX10.9, and here is the error info:

when
"""
sudo pip install pandas
"""

error: command 'cc' failed with exit status 1

@TomAugspurger
Copy link
Contributor

Ideally you shouldn't need to use sudo in the first place. You should look into using virtualenv

You may have more luck with conda. But if you want to use pip, you'll need to post a bit more of the error message.

@Buttonwood
Copy link

virtualenv works ! And many tanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

No branches or pull requests

5 participants