[mpich-discuss] mpif90 and mpicc problems

Rajeev Thakur thakur at mcs.anl.gov
Sat Sep 6 05:22:03 CDT 2008


Did you try to compile a program with mpicc/mpif90, i.e., "mpicc foo.c" or
"mpif90 foo.f90"? If you just run "mpicc" or "mpif90", you will get
something like the messages below. 

Do the example programs in the examples and examples/f90 directories
compile?

Rajeev

 

> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of jcrosby
> Sent: Friday, September 05, 2008 9:34 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [mpich-discuss] mpif90 and mpicc problems
> 
> Good morning,
> 
> I'm having a few problems getting mpif90 and mpicc to work.  
> Whenever I run them I get the following errors:
> MPIF90:
> /opt/intel/fc/10.1.015/lib/for_main.o: In function `main':
> /users/nbtester/x86linux_nightly/branch-10_1/20080313_000000/l
> ibdev/frtl/src/libfor/for_main.c:(.text+0x39): 
> undefined reference to `MAIN__'
> 
> MPICC:
> /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crt1.o: In function
> `_start':
> (.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status
> 
> 
> -- 
> Joseph Crosby
> Network Administrator
> Scotia Weather Service Inc.
> netadmin at scotiaweather.com
> -----------
> A byte walks into a bar and orders a pint. Bartender asks him 
> "What's wrong?" Byte says "Parity error." Bartender nods and 
> says "Yeah, I thought you looked a bit off."
> 
> 




More information about the mpich-discuss mailing list