Coder Social home page Coder Social logo

MACS2 install issue about macs HOT 8 CLOSED

macs3-project avatar macs3-project commented on August 28, 2024
MACS2 install issue

from macs.

Comments (8)

taoliu avatar taoliu commented on August 28, 2024

Could you post the entire error message?

Thanks,
Tao

On Mar 27, 2014, at 4:47 PM, dphansti [email protected] 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.

from macs.

dphansti avatar dphansti commented on August 28, 2024

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

from macs.

dphansti avatar dphansti commented on August 28, 2024

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

from macs.

benjschiller avatar benjschiller commented on August 28, 2024

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 [email protected] 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
.

from macs.

dphansti avatar dphansti commented on August 28, 2024

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

from macs.

dphansti avatar dphansti commented on August 28, 2024

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

from macs.

taoliu avatar taoliu commented on August 28, 2024

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 [email protected] 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.

from macs.

dphansti avatar dphansti commented on August 28, 2024

Great. That seemed to work. Thanks.

from macs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.