clang: error: '-mno-fused-madd' during build on OS X 10.9 using python 2.7.5

Issue #202 resolved
Shantanu Joshi
created an issue

rpy2 fails to build on OS X 10.9 (Mavericks) via pip and easy_install for python 2.7.5 The following error is produced:

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 -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1 -DRIF_HAS_RSIGHAND=1 -DCSTACK_DEFNS=1 -DHAS_READLINE=1 -I./rpy/rinterface -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Library/Frameworks/R.framework/Resources/include/x86_64 -c ./rpy/rinterface/_rinterface.c -o build/temp.macosx-10.9-intel-2.7/./rpy/rinterface/_rinterface.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

This error is similar to https://github.com/python-imaging/Pillow/issues/527 and https://github.com/python-imaging/Pillow/issues/546

Not sure if its related to other clang errors in rpy2 raised by others recently.

Shantanu

Comments (8)

  1. Laurent Gautier

    @ShantanuJoshi Thanks for the report that all is fine with rpy2-2.4.0 on OS X 10.9 once the compiling hurdle is solved. The workaround you propose will likely be helpful to many. I am currently using Linux and gcc for the development of rpy2, so I have to rely on reports (and most of the time suggested fixes).

    One of the link you are providing is mentioning that this was a problem with OS X 10.9 that has been fixed with 10.9.3 (approved answer at http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa. Do you have OS X 10.9.3 ?

  2. Shantanu Joshi reporter

    I also installed 2.5.4 on OS X 10.10. Installs without a hitch. Below is the test report.

    rpy2 version: 2.5.4 - built against R version: 3-1.2--66913 - running linked to R version: R version 3.1.2 (2014-10-31) ........................................................................................................................................................................................................................x.....................................................................................................................................................s......s.....


    Ran 379 tests in 4.659s

    OK (skipped=2, expected failures=1)

    S

  3. Log in to comment