[mvapich-discuss] install mvapich when there are two gcc in the system

Pavel Shamis (Pasha) pasha at dev.mellanox.co.il
Wed Mar 26 04:09:51 EDT 2008


> I had to use ATLAS for my calculation code VASP. The new ATLAS need to
> be compiled using gcc 4.2. So I install gcc4.2. Everything seems fine.
> I can use the new ATLAS in VASP now using the old mvapich-1.0 that I
> compiled without the gcc4.2. However, when I deleted the old mvapich
> that I compiled when there was no gcc 4.2 in my system and recompiled
> mvapich-1.0, the compiling seems OK, but when I run mpicc or mpif90,
> it always say:
> /opt/intel/fce/10.1.012/lib/for_mai.o(.text+0x26): In function
> 'main'::undefined reference to 'MAIN__"
Actually "/opt/intel/fce" shows that you some how compiled your stuff
with intel compiler?
Before running mvapich compilation script you should define
CC/CXX/F77/F90 env. variable that will point exactly on compiler that
you want to use.


-- 
Pavel Shamis (Pasha)
Mellanox Technologies



More information about the mvapich-discuss mailing list