Ticket #687 (assigned bug)

Opened 5 months ago

Last modified 3 weeks ago

which library should be used in windows with cvf

Reported by: 雪媛 聂 <nie_xueyuan@…> Owned by: jayesh
Priority: major Milestone: mpich2-1.3
Component: mpich2 Keywords:
Cc:

Description (last modified by jayesh) (diff)

Hello,
    I downloaded mpich2-1.0.8p1-win-ia32 from
http://www.mcs.anl.gov/research/projects/mpich2/ . I followed the steps
described by README.winbin which was generated after the mpich2 installed. If
I compiled and linked the file which only includes the six basic functions, the
file can be compiled and linked successfully. But if my program employed other
functions, such as mpi_scatterv, mpi_gatherv, the link process could be failed.
 
In the projection settings, I already added fmpich2s.lib to the object/library
modules.
 
The error information are as follows,
Linking...
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_BARRIER@8 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_BCAST@24 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_COMM_RANK@12 already defined
in fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_COMM_SIZE@12 already defined
in fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_FINALIZE@4 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_INIT@4 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_RECV@32 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_SEND@28 already defined in
fmpich2s.lib(fmpich2s.dll)
Debug/automacro.exe : fatal error LNK1169: one or more multiply defined symbols
found
Error executing link.exe.
automacro.exe - 9 error(s), 0 warning(s)
 
I also tried to add fmpich2g.lib to the link option, the same error information
appears.
 
If I only add fmpich2.lib to the link option, link error would be
Linking...
automacro.obj : error LNK2001: unresolved external symbol _MPI_SCATTER@36
automacro.obj : error LNK2001: unresolved external symbol _MPI_SCATTERV@40
automacro.obj : error LNK2001: unresolved external symbol _MPI_GATHERV@40
Debug/automacro.exe : fatal error LNK1120: 3 unresolved externals
 
Could you please help me solve the problems. Now I am puzzled that which
library I should use to make the functions such as mpi_scatterv, resolved ?
 
Thanks a lot.
 


      ___________________________________________________________
  好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/

Attachments

part0001.html (3.2 KB) - added by 雪媛 聂 5 months ago.
Added by email2trac
part0001.2.html (0.6 KB) - added by Jayesh Krishna 5 months ago.
Added by email2trac

Change History

Changed 5 months ago by 雪媛 聂

Added by email2trac

Changed 5 months ago by 雪媛 聂

  • id set to 687

This message has 1 attachment(s)

Changed 5 months ago by Jayesh Krishna

Added by email2trac

Changed 5 months ago by Jayesh Krishna

 Hi,
  The fortran library, fmpich2s.lib, does not work, as expected, with the
Compaq Visual Fortran compiler. I will look into this problem and get back
to you.

Regards,
Jayesh

Changed 5 months ago by jayesh

  • owner set to jayesh
  • status changed from new to assigned
  • milestone set to mpich2-1.1.1

Changed 5 months ago by jayesh

  • milestone changed from mpich2-1.1.1 to mpich2-1.1.2

Hi,

Can you try the following in CVF ?

# Change the "argument passing convention" to "C, by reference" # Leave the "External Name interpretation" as "Upper Case" # Change the "String length argument passing" to "After all args"

You can find the above settings in "Project" --> "Settings" --> "Fortran" tab --> "External Procedures" category in CVF.

# Add fmpich2.lib as the input "Object library modules" (Remove fmpich2s.lib and fmpich2g.lib from the object library input modules)

Let us know if it works for you. Also it looks like "imslmpistub" is redefining some of the MPI functions (Is the stub lib written by you ? )

Regards, Jayesh

Changed 3 months ago by balaji

  • milestone changed from mpich2-1.1.2 to mpich2-1.2

Milestone mpich2-1.1.2 deleted

Changed 3 weeks ago by jayesh

  • description modified (diff)
  • milestone changed from mpich2-1.2.1 to mpich2-1.3

WARNING! You need to either login using OpenID here or enter your email address here before you can create or edit tickets. Otherwise the ticket will get treated as spam. More information on creating tickets can be found here.

Don't forget to add your email address to the cc list to make sure that you get updated of the ticket status.

Add/Change #687 (which library should be used in windows with cvf)

Author



Change Properties
Action
as assigned
 
Note: See TracTickets for help on using tickets.