I have problems to run PGDBG. This is an example of what happens in my Win x64 system. The error is always the same, and does not depend on the specific fortran program.
A simple program test.f90 (located in the c:\test directory) is compiled with the -g option and runs properly.
When I run pgdbg, an error message is displayed in the PGDBG console
================================
PGDBG - The Portland Group (Command Prompt)
PGDBG 6.1-5 x86-64 (Workstation, 4 CPU)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2006, STMicroelectronics, Inc. All Rights Reserved.
***Reading DWARFv2 Information.
ERROR: CANNOT LOAD c:\test\test.exe.
I wasn’t able to recreate the issue here and our tools engineers have not seen this error before. I am wondering why you have a local copy of “pg.dll” in the directory. Was there an issue that you were trying to work around? Could this “pg.dll” be from an earlier release? What happens if you remove this local copy?
Well, you’ve got us stumped on this one. Your environment looks ok. While you have a newer version Java, we installed it here locally and everything worked fine.
Please repeat the following commands (below) and post your output exactly as it is on the screen. Also, please encapsulate the output inside a “code” tag so that it formats correctly.
PGI Workstation 6.1-5 (x64)
PGI$ cd c:\test
PGI$ rm pg.dll
PGI$ rm test.exe test.pdb test.dwf
PGI$ ls
test.f90
PGI$ cat test.f90
print *, "hi"
endPGI$ pgf90 -g test.f90
PGI$ test.exe
hi
PGI$ pgdbg -text test.exe
PGDBG 6.1-5 x86-64 (Workstation, 4 CPU)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2006, STMicroelectronics, Inc. All Rights Reserved.
***Reading DWARFv2 Information.
The error message (see my first post) does not appear any more, but the system freezes after te message “***Reading DWARFv2 Information.”. Another window named “c:\PROGRA~1\PGI\win64\6.1-5\pgdbg1” -text test.exe is displayed, but is empty.
I finally talked with the right person and I think we found the problem. The command prompt’s screen buffer was assumed to have a width of 80 and the debugger will have problems if the default is set higher than 80. This problem has been corrected for the 6.2 release for 64-bit Windows currently scheduled for June 9th.
Open a command prompt and right mouse click on the icon in the upper left-hand corner. From the menu, select ‘Defaults’ and then the ‘Layout’ tab. Please adjust the ‘Screen Size Buffer’ and ‘Window Size’ Widths to be ‘80’.