PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

libpgf90rtl undefined reference omp_set_schedule
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Tue Feb 18, 2014 11:28 am    Post subject: Reply with quote

Hi Brian,

Looks like I was wrong about dynamic libs not linking with static. The verbose output shows libpgfrtl.so resolving several symbols in libpgmp.a. The question now is why all but these two symbols are getting resolved. Using nm, I see the symbol names however the order is slightly different relative to the internal references. Let me talk with some folks and see if they have ideas.

In the meantime, try adding "-Bdynamic".


Code:

% nm libpgmp.a | grep omp_set_sche
                 U omp_set_schedule
0000000000000273 T omp_set_schedule_
                 U omp_set_schedule
0000000000000274 T omp_set_schedule__
0000000000000221 T omp_set_schedule
% nm libpgmp.a | grep omp_set_nested
0000000000000128 T omp_set_nested
                 U omp_set_nested
0000000000000084 T omp_set_nested_
                 U omp_set_nested
0000000000000084 T omp_set_nested__


- Mat
Back to top
View user's profile
brian.eaton



Joined: 06 May 2011
Posts: 4

PostPosted: Wed Feb 19, 2014 6:37 pm    Post subject: Reply with quote

Adding -Bdynamic works. That seems like the best solution. Or is it a
workaround? I'm not really sure whether pgf90 should be producing a
successful build or not. The openmpi libs are all shared, but shouldn't
the link be able to successfully resolve externals from a combination of
shared and static libs?

Thanks for all your help.
Brian
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 445

PostPosted: Thu Jul 10, 2014 12:27 pm    Post subject: Reply with quote

LD_LIBRARY_PATH sets paths for dynamic libs that are reconciled
at runtime. But the link has to be successful first, so the proper libpgmp.so
needs to be found at link time.

Possible workaround - copy libpgmp.so into the PGI lib directory, or
put a link to the libpgmp.so in the libso directory.
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
Page 2 of 2

 
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