[f2py] config: Intel compiler, claims not available
peter williams <[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've been interested in using f2py for some time but haven't been able to get it to work on any of the platforms I have. Just tried it on a completely brand-spanking-new install of Ubuntu 9.04 x86_64. Installed OS yesterday, python, numpy, scipy, etc. Also installed Intel fortran/c/c++ compiler suite, in the nominal location. Added intel's shell scripts to .bashrc to set enviro vars right. Compiler found in path just fine. Everything works on this platform great. Except f2py: $ which ifort /opt/intel/Compiler/11.1/046/bin/intel64/ifort $ f2py -c --help-fcompiler /usr/lib/python2.6/dist-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.message = message Fortran compilers found: Compilers available for this platform, but not found: <snip> --fcompiler=intel Intel Fortran Compiler for 32-bit apps --fcompiler=intele Intel Fortran Compiler for Itanium apps --fcompiler=intelem Intel Fortran Compiler for EM64T-based apps <snip> For compiler details, run 'config_fc --verbose' setup command. $ OK try to setup (how? I have no idea how to do this, I don't know anything about distutils...): $ f2py -c --verbose setup <blah blah....> building 'untitled' extension C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC error: unknown file type '' (from 'setup') $ OK I have no idea what that means but it doesn't look good. Hope that didn't make matters WORSE. Anyway it doesn't make any difference as far as I can tell. Still complains that compiler isn't available. OK try telling it it's there anyway, and try on a simple little f90 module source file: $ f2py -c --fcompiler=intelem -m doodle doodle.f90 <snip> customize IntelEM64TFCompiler Found executable /opt/intel/Compiler/11.1/046/bin/intel64/ifort warning: build_ext: f77_compiler=intelem is not available. building 'doodle' extension error: extension 'doodle' has Fortran sources but no Fortran compiler found $ (Note intelem for em64t = Intel64 = amd64 != IA64 = Itanium 64, right?) OK now at this point I'm thoroughly confused. It claims it can't find the compiler, then I tell it it's there go look for it, then it says it finds it... and then it commits hari-kari saying that now that it found it, it can't find it. Of course one big tip-off is the f77 thing - why is it looking for an f77 compiler, since the source is f90? Not that it should matter, since the fortran compiler can handle f77 code just fine too. Thanks for any help. Peter _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users