LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Tim Prince (tprince_at_[hidden])
Date: 2005-04-20 01:19:29


At 09:09 AM 4/19/2005, Jeffrey B. Layton wrote:

>Good morning/afternoon!
>
> I want to build lam-7.1.1 with gcc (FC2 system) but I want
>to have mpif77 and mpicc use the PGI 6.0 compilers. Is there
>an easy way to do this?

Not knowing why you'd want to do this, or what obstacles you have in mind,
it seems there should be no trouble as long as you substitute
link-compatible compilers. Don't PGI 6.0 compilers work the same as
earlier ones? Build and install lam with your CC and CXX set to aliases
for gcc and g++, then change those aliases to point to pgcc and pgCC, or
some other compiler.

supposing you use bash
alias ccom=gcc
alias cxxcom=g++
alias fortcom=pgf90
../configure --with-cc=ccom --with-cxx=cxxcom --with-fc=fortcom
make....

later, change the aliases as you wish, at your own risk, keeping PATH and
LD_LIBRARY_PATH and options supplied consistent with the compiler in use.
g77, if it worked, would require -fno-second-underscore.

Tim Prince