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

MACS2 install issue #34

Closed
dphansti opened this issue Mar 27, 2014 · 8 comments
Closed

MACS2 install issue #34

dphansti opened this issue Mar 27, 2014 · 8 comments

Comments

@dphansti
Copy link

I am trying to install MACS2 on a computer running OSX 10.9.2. I have Python 2.7.5 and numpy is properly installed. I get the error message below whether i use easy_install or when i download from pypi (and do python setup.py install). Any help would be appreciated. Thanks.

easy_install MACS2

...

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: Setup script exited with error: command 'cc' failed with exit status 1

@taoliu
Copy link
Contributor

taoliu commented Mar 27, 2014

Could you post the entire error message?

Thanks,
Tao

On Mar 27, 2014, at 4:47 PM, dphansti notifications@github.com wrote:

I am trying to install MACS2 on a computer running OSX 10.9.2. I have Python 2.7.5 and numpy is properly installed. I get the error message below whether i use easy_install or when i download from pypi (and do python setup.py install). Any help would be appreciated. Thanks.

easy_install MACS2

...

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: Setup script exited with error: command 'cc' failed with exit status 1


Reply to this email directly or view it on GitHub.

@dphansti
Copy link
Author

Sure. Here it is:

Searching for MACS2
Reading http://pypi.python.org/simple/MACS2/
Best match: MACS2 2.0.10.20131216
Downloading https://pypi.python.org/packages/source/M/MACS2/MACS2-2.0.10.20131216.tar.gz#md5=930bfb0711ca289ce56cf7943d838120
Processing MACS2-2.0.10.20131216.tar.gz
Running MACS2-2.0.10.20131216/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Bnik4P/MACS2-2.0.10.20131216/egg-dist-tmp-uIYYEo
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: Setup script exited with error: command 'cc' failed with exit status 1

@dphansti
Copy link
Author

Here is the error I get when using 'python setup.py install'

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running build_ext
building 'MACS2.cProb' extension
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 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c MACS2/cProb.c -o build/temp.macosx-10.9-intel-2.7/MACS2/cProb.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

@benjschiller
Copy link
Collaborator

Looks this is relevant
https://support.enthought.com/entries/26184115-GCC-Clang-and-Cython-in-OS-X-10-9-Mavericks

It seems they've removed support for gcc in 10.9

You might have to install gcc manually or w/ something like brew. I would
try the flags suggested in the article above and see if they help. I have a
laptop running 10.9 for work, so I could try debugging it later if you
can't figure it out.

Please let us know if you get it working!

Ben

On Thu, Mar 27, 2014 at 1:57 PM, dphansti notifications@github.com wrote:

Here is the error I get when using 'python setup.py install'

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267:
UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running build_ext
building 'MACS2.cProb' extension
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
-I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c MACS2/cProb.c -o build/temp.macosx-10.9-intel-2.7/MACS2/cProb.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


Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-38859628
.

@dphansti
Copy link
Author

Thanks Ben. I really have no idea where to add those flags to. But I tried the following and still got the same error.

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 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c MACS2/cProb.c -o build/temp.macosx-10.9-intel-2.7/MACS2/cProb.o -stdlib=libstdc++ -mmacosx-version-min=10.6

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

@dphansti
Copy link
Author

dphansti commented Apr 4, 2014

Has anyone had success installing on OSX 10.9 yet. I still cant get it to work.

@taoliu
Copy link
Contributor

taoliu commented Apr 4, 2014

Check this page:

http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa

Before you run ‘pip install MACS2’, do this first:

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

If you need do use ’sudo’ to install MAC2, do this:

$ sudo -E pip install MACS2

Tao

On Apr 4, 2014, at 1:34 PM, dphansti notifications@github.com wrote:

Has anyone had success installing on OSX 10.9 yet. I still cant get it to work.


Reply to this email directly or view it on GitHub.

@dphansti
Copy link
Author

dphansti commented Apr 4, 2014

Great. That seemed to work. Thanks.

@dphansti dphansti closed this as completed Apr 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants