PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

pgdbg doesn't load program

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
tzahel



Joined: 23 May 2007
Posts: 2

PostPosted: Thu May 24, 2007 4:20 am    Post subject: pgdbg doesn't load program Reply with quote

When I try to debug my Fortran 90 program (which was compiled with -g) with pgdbg I get this message:

NOTE: Can't find main function compiled -g

and the program doesn't load.

Could this be a problem of the compilation?

regards,
Thomas
Back to top
View user's profile
mkcolg



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

PostPosted: Thu May 24, 2007 10:08 am    Post subject: Reply with quote

Hi Thomas,

Are there any other error messages? Please try with the flag "-text" (no gui) since it might give us more information.

Thanks,
Mat
Back to top
View user's profile
tzahel



Joined: 23 May 2007
Posts: 2

PostPosted: Fri May 25, 2007 12:04 am    Post subject: Reply with quote

Hi Mat,

starting pgdbg with -text gives the following message:

Loaded: /home/thomas/programs/kLMC/Code_test_pgi/kLMCdb.exe
ERROR: No target selected.
NOTE: Can't find main function compiled -g

regards,
Thomas
Back to top
View user's profile
mkcolg



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

PostPosted: Tue May 29, 2007 10:25 am    Post subject: Reply with quote

Hi Thomas,

The problem is that PGDBG is unable to load the executable for some reason. Please make sure the execuable exists and that it's compiled for the same target (32 or 64-bit) as debugger. For example, if kLMCdb.exe is a 32-bit application, then eiter set your PATH to your PGI 32-bit installation or add "-tp k8-32" to the PGDBG command line to envoke the 32-bit debugger.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
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