PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

MM5 MPP
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
slunce



Joined: 04 May 2006
Posts: 7

PostPosted: Fri May 12, 2006 11:18 am    Post subject: Reply with quote

Here is the result for the libraries

./MPP/FLIC/Parser/parselib.a
./MPP/FLIC/bin/parselib.a
./MPP/RSL/RSL/librsl.a

hris
Back to top
View user's profile
mkcolg



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

PostPosted: Fri May 12, 2006 2:10 pm    Post subject: Reply with quote

Hi hris,

I've taken a second pass to try and recreate the error, but have been unable to do so. The linker is complaining that it has two objects that have the same symbol name and it doesn't know which one to use. However, it appears that this symbol is defined only once in the objects you have listed. Can you double check using 'nm' and 'grep' that for all the objects and libraries listed on the link line, 'transm_col' only appears once? Perhaps an object not from the MPP directories is being linked in which contains the symbol?

The best way to fix this is to find the two objects that define 'transm_col'. However, if you simply can't figure it out, you can add the following flag "-Wl,--allow-multiple-definition" to the link line. This tells the linker to allow multiple definitions and will work around this error.

- Mat
Back to top
View user's profile
slunce



Joined: 04 May 2006
Posts: 7

PostPosted: Fri May 12, 2006 5:03 pm    Post subject: Reply with quote

Mat, I recieved a recommendation how to fix this multiple definition problem ;

in IBM/MPP/mpp_objects_all
line 233 is
transm_col.o urbevapflx_col.o urbradnet_col.o cal_albedo_col.o \


and it have to be
urbevapflx_col.o urbradnet_col.o cal_albedo_col.o \

but now another problems are appeared so I will try to fix by myself and if I fail I will ask you again

Thank you very much

hris
Back to top
View user's profile
malakooti



Joined: 07 May 2006
Posts: 1

PostPosted: Tue May 30, 2006 9:37 am    Post subject: Reply with quote

slunce wrote:
Hi,
Mat thank you for your help
Mat it impossible to follow your recommendation: to download the latest version of MM5, because I have to work with MM5-urbanized version. In this urbanized version there are some additional files and and there are some changes in programs. So if download the newest version of MM5 that means that I have rewrite the code, but I can do this . I have no idea how to solve this multiple definition problem
L/librsl.a -O2 -Mcray=pointer -Mnoframe -byteswapio -L/usr/local/topspin/mpi/mpich/lib64 -lfmpich -lmpich
transm_col.o(.text+0x0): In function `transm_col_':
: multiple definition of `transm_col_'
transm_col.o(.text+0x0): first defined here
make[1]: [all] Error 2 (ignored)

but I hope that someone can guess how it can be fixed it

hris
[img][/img][list=][/list]
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
Goto page Previous  1, 2, 3
Page 3 of 3

 
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