0
votes

I'm trying to configure mpich library for Fortran only. When I use:

./configure -prefix=/home/jordi/Project/mpich-3.1.3/lib --disable-cxx --disable-gcc

I obtain this error:

configure: error: **** Incompatible Fortran and C Object File Types! **** F77 Object File Type produced by " " is : : ERROR: cannot open `' (No such file or directory). C Object File Type produced by "gcc -O2" is : : ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped.

I don't undestand it. I'm shock that No such file, what file want? I try to use CFLAGS=-m64 CXXFLAGS=-m64, if that's a problem with 64 bits but it doesn't work.

Can you help me? Thanks for your time

1
What is your operating system? - Vladimir F
And which compilers do you have? - Vladimir F
object file type produced by "", there the command used is empty, so probably it didn't find any compiler or some other configuration of it went wrong. - steabert
Opertaing system is Ubuntu and compiler is Intel Parallel Studio XE Composer Edition for Fortran. - Jordi Bach
It looks as if you might be trying to build with the Intel Fortran compiler and GCC (for C sources). I think that with close attention to the Intel documentation you should find how to build compatible object files for linking with GCC-generated object files from the C source files. - High Performance Mark

1 Answers

0
votes

Q: I get a configure error saying "Incompatible Fortran and C Object File Types!"

A: This is a problem with the default compilers available on Mac OS: it provides a 32-bit C compiler and a 64-bit Fortran compiler (or the other way around). These two are not compatible with each other. Consider installing the same architecture compilers. Alternatively, if you do not need to build Fortran programs, you can disable it with the configure option --disable-f77 --disable-f90.