| View previous topic :: View next topic |
| Author |
Message |
Ronald Charlton
Joined: 26 Jul 2006 Posts: 6
|
Posted: Mon Sep 08, 2008 10:45 am Post subject: Shared Library issue |
|
|
I have compiled my shared libraries that I used under PGI 6 with PGI 7.
The debugger will not load the libraries using the version 7 debugger. I receive an error message "Dynamic Library Load address should not be null" in the command window.
I created a very simple library that adds two numbers:
addtwo.f90
subroutine addtwo(ine,two, results)
real :: one, two, results
results = one + two
return
end
I created a simple main program tester.f90
program tester
real: three, four, five
three = 2.5
four = 2.45
call addtwo(three, four, five)
write (*, '(A, 3(F8.4))') 'this is a simple test: ', three four, five
stop
end
I compile the library:
pgf90 -g -c -fpic addtwo.f90
pgf90 -o lib.addtwo.so -shared addtwo.o
I compile the program:
pgf90 -o tester -g tester.f90 lib.addtwo.so
I move the .so file into a local directory I have included in LD_LIBRARY_PATH
The program runs without error.
when I start pgdbg the main program loads. I set a breakpoint and click run.
The program exits with a mesage of : dynamic load address shoudl not be null in the command window, and a message of lib.addtwo.so cannot be loaded, file not found.
I do not have this problem when running pgdbg 6.
Any help would be appreciated. |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Mon Sep 08, 2008 12:51 pm Post subject: |
|
|
Hi Ronald,
Thanks for the report. I have sent a technical problem report (TPR#15170) to our tools team for further investigation. I have my ideas as to the problem, but will let them look into it further and will update this post when more information becomes available.
Note I was able to read the shared object when it was located in the same directory where it was built. Hopefully you can use this as a work around until the problem is resolved.
Best Regards,
Mat |
|
| Back to top |
|
 |
Ronald Charlton
Joined: 26 Jul 2006 Posts: 6
|
Posted: Mon Sep 08, 2008 1:01 pm Post subject: |
|
|
I had the library in both locations t the same time when I ran this test, but I will check this again.
I will also try this with my application as well to see if this helps.
Thanks
Ron |
|
| Back to top |
|
 |
Ronald Charlton
Joined: 26 Jul 2006 Posts: 6
|
Posted: Wed Sep 10, 2008 8:43 am Post subject: |
|
|
I have tried this again and with or without the shared library in the sorking directory, the debugger does not find it.
I am running 7.1-6 I believe. Perhaps this is a difference between 7.1 and 7.2? |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Thu Sep 11, 2008 10:26 am Post subject: |
|
|
Most likely Our tools team have fixed some issue with debugging shared objects but obviously have a few more issues to address.
- Mat |
|
| Back to top |
|
 |
|