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.