LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Tim Prince (timothyprince_at_[hidden])
Date: 2006-10-12 21:23:46


Norman Lo wrote:
> Hi,
>
> I'm trying to install a program which uses lam/mpi. When I compile the
> .f file using mpif77. The error message is as follow:
>
> mpif77 -g -O2 -I/hivehomes/normanlo/pvm3/include -I../../src -I
> -L/hivehomes/normanlo/pvm3/lib/LINUX
> -L/hivehomes/normanlo/pvm3/lib/LINUX -L../../src
> -L/usr/local/stow/gcc-4.0.2/lib -o fpvmblockdesc -lm
> fpvm-blockdesc-ex.o -lgfortran -lICf77 -lIC -lm -lfpvm3 -lgpvm3 -lpvm3
> -lmpi -lm
> Unrecognised option -fexceptions passed to ld
> Unrecognised option -pthread passed to ld
> Unrecognised option -fexceptions passed to ld
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In
> function `_start':
> : undefined reference to `main'

Your submission shows you trying to combine gcc-3.2.3 and 4.0.2 with
gfortran. This seems a particularly bad idea, given that 4.1 is the
earliest recommended version of gfortran, and gcc doesn't guarantee
compatibility between releases which differ in the middle figure, let
alone the first.