[gmx-users] some confusion in location of mpicc during ./configure

Erik Lindahl lindahl at stanford.edu
Mon Nov 4 19:56:55 CET 2002


Ken Chase wrote:

>In compiling gromacs 3.1.4 on a system where I did not have root, I had a hell
>of a time getting ./configure to work. It kept failing the test of 'checking
>whether your compiler can handle assembly files (*.s)...'
>
>The problem is that there was another mpicc already installed in
>/usr/local/bin on my path, but it is a wonky install that doesnt seem to be
>able to pass this test.  However, I set my $CC to override that, to the mpicc
>that I had just compiled in lam-mpi in my own dirs. I figured this would work,
>and does, until configure goes and finds where mpicc is itself, on the path.
>
>Obviously, normally $CC is gcc for such runs of ./configure, but putting in
>a path to my own mpicc works.
>
>However, the test to see if the compiler can handle assembly files uses the
>mpicc on the path, not in $CC, and I hadnt set my path to point at my dirs
>first in preference, so it was using the system's broken version of mpicc.
>  
>
Hi Ken,

You can override the MPI C compiler setting with the MPICC environment 
variable!

Cheers,

Erik





More information about the gromacs.org_gmx-users mailing list