$ f2py --f90flags=-fopenmp -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2/ -lgomp -c -m test test.f90 running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "test" sources f2py options: [] f2py:> /tmp/tmpTtj5vP/src.linux-x86_64-2.7/testmodule.c creating /tmp/tmpTtj5vP/src.linux-x86_64-2.7 Reading fortran codes... Reading file 'test.f90' (format:free) Post-processing... Block: test Block: ompmin Post-processing (stage 2)... Building modules... Building module "test"... Creating wrapper for Fortran function "ompmin"("ompmin")... Constructing wrapper function "ompmin"... ompmin = ompmin(x,[nmax]) Wrote C/API module "test" to file "/tmp/tmpTtj5vP/src.linux-x86_64-2.7/testmodule.c" Fortran 77 wrappers are saved to "/tmp/tmpTtj5vP/src.linux-x86_64-2.7/test-f2pywrappers.f" adding '/tmp/tmpTtj5vP/src.linux-x86_64-2.7/fortranobject.c' to sources. adding '/tmp/tmpTtj5vP/src.linux-x86_64-2.7' to include_dirs. copying /home/laytonjb/anaconda2/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> \ /tmp/tmpTtj5vP/src.linux-x86_64-2.7 copying /home/laytonjb/anaconda2/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> \ /tmp/tmpTtj5vP/src.linux-x86_64-2.7 adding '/tmp/tmpTtj5vP/src.linux-x86_64-2.7/test-f2pywrappers.f' to sources. ... compiling Fortran sources Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops Fortran f90 compiler: /usr/bin/gfortran -fopenmp -fPIC -O3 -funroll-loops Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fopenmp -fPIC -O3 -funroll-loops compile options: '-I/tmp/tmpTtj5vP/src.linux-x86_64-2.7 \ -I/home/laytonjb/anaconda2/lib/python2.7/site-packages/numpy/core/include \ -I/home/laytonjb/anaconda2/include/python2.7 -c' gfortran:f90: test.f90 gfortran:f77: /tmp/tmpTtj5vP/src.linux-x86_64-2.7/test-f2pywrappers.f /usr/bin/gfortran -Wall -g -Wall -g -shared \ /tmp/tmpTtj5vP/tmp/tmpTtj5vP/src.linux-x86_64-2.7/testmodule.o \ /tmp/tmpTtj5vP/tmp/tmpTtj5vP/src.linux-x86_64-2.7/fortranobject.o \ /tmp/tmpTtj5vP/test.o \ /tmp/tmpTtj5vP/tmp/tmpTtj5vP/src.linux-x86_64-2.7/test-f2pywrappers.o \ -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2/ -L/home/laytonjb/anaconda2/lib \ -lgomp -lpython2.7 -lgfortran -o ./test.so Removing build directory /tmp/tmpTtj5vP