Skip to content

adding new fortran compiler (Trac #1043) #1641

@thouis

Description

@thouis

Original ticket http://projects.scipy.org/numpy/ticket/1043 on 2009-03-09 by trac user avi, assigned to unknown.

Hi,

I have added a new compiler -- pathscale -- and added it to numpy/distutils/fcompiler and edited init.py to add it to the list.

However when I run
% python setup.py config_fc

I get the pathscale compiler recognized but then the setup bypasses and continues and subsequently picks the gfortran, which I don't want.

When I added some verbosity to the above, I noticed this difference between pathscale and gfortran

% python setup.py -v config_fc

Running os.system('( /opt/pathscale/ice9_native_3.2n_B_sicortex/bin/pathf95 -v ; echo $? > /tmp/tmpoXv0XE/VCZd1T ) > /tmp/tmpoXv0XE/yNOdmp 2>&1')
_update_environment(...)
customize PGroupFCompiler
:

with gfortran..

Running os.system('( /.root0/usr/bin/gfortran --version ; echo $? > /tmp/tmpoXv0XE/xX3wVg ) > /tmp/tmpoXv0XE/tQhxpb 2>&1')
_update_environment(...)
exec_command(['/.root0/usr/bin/gfortran', '-Wall', '-ffixed-form', '-fno-second-underscore', '-fPIC', '-O3', '-funroll-loops', '-print-libgcc-file-name'],)
Retaining cwd: /.root0/net/home/avi/builds/numpy-1.2.1
_preserve_environment([])

So it seems to me that it is finding the pathscale compiler but skipping the exec_command.

Any help in resolving this appreciated. I am attaching the log file for the above script run and the pathscale.py files.

Other tidbits on system and os..

(sc1-m3n6:~/builds/scipy-0.7.0) avi% uname -a
Linux sc1-m3n6.scsystem 2.6.18.8-sc-lustre-perfmon #1 SMP Thu Sep 25 13:19:45 EDT 2008 mips64 SiCortex ICE9B V1.0 FPU V0.1 SiCortex SC-1000 GNU/Linux

(sc1-m3n6:~/builds/scipy-0.7.0) avi% python -c 'import os,sys;print os.name,sys.platform'
posix linux2

Thank You

Avi

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions