PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Problems in compiling MPICH2

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
gaetano



Joined: 29 Jul 2004
Posts: 4

PostPosted: Fri Apr 15, 2005 6:51 am    Post subject: Problems in compiling MPICH2 Reply with quote

Hi,

I'm having problems in compiling mpich2 on a Linux (MDK10.1) machine using pgif90 (6.0 Release). The error in the compilation, relevant to the examples, is:

/home/bellanca/software/mpich2/mpich2-1.0.1_pgi/lib/libmpich.a(setbotf.o)(.data+0x0): undefined reference to `__pgdbg_stub'
/home/bellanca/software/mpich2/mpich2-1.0.1_pgi/lib/libmpich.a(setbotf.o)(.data+0x4): undefined reference to `pgf90_compiled'

Any idea?

Thanks in advance.

Gaetano
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Fri Apr 15, 2005 9:40 am    Post subject: Reply with quote

Hi Geatano,


This error occurs when you try to link a pgf90 compiled object with a C compiler and have not included the pgf90 runtime support libraries. To solve either:

1) Add the pgf90 runtime support libraries to the link line.

Example:
Code:
../bin/mpicc -L../lib -o cpi cpi.o  -lm -lmpich  -lpthread  -lrt  -pgf90libs

Note that the "-pgf90libs" flag is new to the 6.0 release. For older version of the compiler you'll need to list out the libraries.
Code:
../bin/mpicc -L../lib -o cpi cpi.o  -lm -lmpich  -lpthread  -lrt  -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl


2) Reconfigure and recompile the MPICH2 libraries setting "FC" to pgf77 instead of pgf90.

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group