When I try to install numpy in a virtualenv (I can't try a system-wide installation) it fails with the following error:
RuntimeError: Broken toolchain: cannot link a simple C program
here's some output that seems useful:
$ pip install --upgrade numpy | grep -i "error\|gcc\|warning"
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
C compiler: gcc -pthread -fno-strict-aliasing -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC
gcc: _configtest.c
cc1: error: unrecognised debug output level "record-gcc-switches"
cc1: error: unrecognised debug output level "record-gcc-switches"
cc1: error: unrecognised debug output level "record-gcc-switches"
cc1: error: unrecognised debug output level "record-gcc-switches"
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
C compiler: gcc -pthread -fno-strict-aliasing -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC
gcc: _configtest.c
cc1: error: unrecognised debug output level "record-gcc-switches"
cc1: error: unrecognised debug output level "record-gcc-switches"
cc1: error: unrecognised debug output level "record-gcc-switches"
cc1: error: unrecognised debug output level "record-gcc-switches"
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
I'm running gcc version 4.4.7 on openSUSE 13.1 (x86_64).