brittneybrinsfield / pysam

Automatically exported from code.google.com/p/pysam
0 stars 0 forks source link

Install fails on Mac OSX10.9 (Mavericks) #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sudo pip install pysam
or
1. Download and unzip pysam 0.7.7
2. Go into directory and issue command sudo python setup.py build

What is the expected output? 
'Installed OK' message. (see this with second method on Snow Leopard

What do you see instead?
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

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, 
tokenize;__file__='/private/tmp/pip_build_root/pysam/setup.py';exec(compile(geta
ttr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 
'exec'))" install --record /tmp/pip-Vr05EI-record/install-record.txt 
--single-version-externally-managed --compile failed with error code 1 in 
/private/tmp/pip_build_root/pysam
Storing debug log for failure in /Users/Blackbelly/Library/Logs/pip.log

What version of the product are you using? On what operating system?
0.7.7 on Mac OSX 10.9.2 (Mavericks)

Please provide any additional information below.
Log file attached

Original issue reported on code.google.com by david.le...@gmail.com on 17 Mar 2014 at 5:45

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks!

I am not introducing that particular flag, so it must be set by setuptools?
What version of setuptools are you using?

Best wishes,
Andreas

Original comment by andreas....@gmail.com on 12 May 2014 at 8:28

GoogleCodeExporter commented 9 years ago
you can use

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip 
install pysam

it's something about the new xcode treating unrecognized commands as errors

http://kaspermunck.github.io/2014/03/fixing-clang-error/ 

Original comment by david.da...@gmail.com on 12 May 2014 at 9:36

GoogleCodeExporter commented 9 years ago
Sorry, I thought I'd reported the workaround that I found on stackoverflow 
22313407:

Currently to install on Mavericks it is necessary to set environmental 
variables so that unused arguments are ingnored:

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

…and then run as root user with –E flag so envs are recognized:

sudo -E python setup.py build

This worked for me.

David

Original comment by david.le...@gmail.com on 13 May 2014 at 9:33