PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

PGDBG does not run (win x64)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
bruna



Joined: 07 May 2006
Posts: 5

PostPosted: Sun May 07, 2006 10:12 am    Post subject: PGDBG does not run (win x64) Reply with quote

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

SetScreenBufferSize failed: 87
db_init: configure console failed


and the PGDBG GUI shows the message:

ERROR: CANNOT LOAD c:\test\test.exe.

See below for details.
Thank you very much for your help.

==================
PGI Workstation 6.1-5 (x64)
==================
PGI Workstation 6.1-5 (x64)
PGI$ cd c:\test
PGI$ pgf90 -g test.f90
PGI$ dir
pg.dll test.dwf test.exe test.f90 test.pdb
PGI$ pgdbg -I c:/test c:/test/test.exe
PGI$

==================
PGDBC Console
==================
SetScreenBufferSize failed: 87
db_init: configure console failed

================================
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.

pgdbg>
Back to top
View user's profile
mkcolg



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

PostPosted: Mon May 08, 2006 5:32 pm    Post subject: Reply with quote

Hi bruna,

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?

- Mat
Back to top
View user's profile
bruna



Joined: 07 May 2006
Posts: 5

PostPosted: Tue May 09, 2006 12:35 am    Post subject: Reply with quote

Hi Mat,

If I remove pg.dll from the c:\test directory, when I start test.exe, I get the error message:

====================
test.exe - Unable To Locate Component

This application has failed to start because pg.dll was not found. Re-installing the application may fix this problem.
====================

pd.dll is the last available version.


- Bruna
Back to top
View user's profile
mkcolg



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

PostPosted: Tue May 09, 2006 12:42 pm    Post subject: Reply with quote

Hi Bruna,

From the PGI bash prompt (pgi.bat), what is the output from the following commands? I'd like to see how your environment is setup.
Code:
which pgf90
which pgdbg
echo $PGI
echo $PATH
dir $PGI/win64/6.1-5/bin
cat $PGI/win64/6.1-5/pgi.bat


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



Joined: 07 May 2006
Posts: 5

PostPosted: Tue May 09, 2006 2:59 pm    Post subject: Reply with quote

Hi Mat,
hereafter you will find th info you requested:

PGI$ which pgf90
/c/PROGRA~1/PGI/win64/6.1-5/bin/pgf90
PGI$ which pgdbg
/c/PROGRA~1/PGI/win64/6.1-5/bin/pgdbg
PGI$ echo $PGI
C:\PROGRA~1\PGI
PGI$ echo $PATH
.:/c/PROGRA~1/PGI/win64/6.1-5/cygwin/bin:/c/PROGRA~1/PGI/win64/6.1-5/bin:/c/Program Files/Microsoft
Platform SDK/bin/win64/x86/AMD64:/c/Program Files (x86)/Java/jre1.5.0_06/bin:/c/WINDOWS/system32:/c/
WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn/:.
PGI$ dir $PGI/win64/6.1-5/bin
ar.exe lmgrd.exe pgcc.rc pgf77.exe pgf95.exe pgprof.bat
ar.rc lmtools.exe pgcnv.exe pgf77.rc pgf95.rc pgroupd.exe
as64.exe lmutil.exe pgconsole.exe pgf77rc pgftn.exe pgsize.exe
ccrc local.rc pgcpp.exe pgf90.dll pgftn_ex.exe pgsmart.exe
cpprc nativerc pgcpp.rc pgf90.exe pgftnrc pgstrp.exe
fnativerc nt64rc pgcpp1.exe pgf90.rc pgftnrtl.dll ranlib.exe
installs.exe ntrc pgcpp2.exe pgf901.exe pgipa.exe ranlib.rc
iparc pg.dll pgcpp2ex.exe pgf902.dll pgmp.dll x8664rc
jh.jar pgappend.exe pgdbg pgf902.exe pgmunch.exe x86rc
jpgdbg.jar pgc.dll pgdbg.bat pgf90_ex.exe pgnm.exe
jpgprof.jar pgc.exe pgdbg1.exe pgf90_rpm1.dll pgprelnk.exe
libacml_dll.dll pgc_ex.exe pgdecode.exe pgf90rc pgprepro.exe
libacml_mp_dll.dll pgcc.exe pgextract.exe pgf90rtl.dll pgprof
PGI$ dir $PGI/win64/6.1-5/pgi.bat
C:\\PROGRA~1\\PGI/win64/6.1-5/pgi.bat
PGI$ cat $PGI/win64/6.1-5/pgi.bat
@echo off
set PGI=C:\PROGRA~1\PGI
set PATH=C:\Program Files (x86)\Java\jre1.5.0_06\bin;%PATH%
set PATH=C:\Program Files\Microsoft Platform SDK\bin\win64\x86\AMD64;%PATH%
set PATH=%PGI%\win64\6.1-5\bin;%PATH%
set LM_LICENSE_FILE=%PGI%\license.dat
set FLEXLM_BATCH=1
title PGI Workstation 6.1-5 (x64)
set TMP=C:\temp
set PS1=PGI$
echo PGI Workstation 6.1-5 (x64)
set CYGROOT=%PGI%\win64\6.1-5\cygwin
set PATH=.;%CYGROOT%\bin;%PATH%
set MANPATH=%PGI%\win64\6.1-5\man\man1::
set MAKE_MODE=unix
set MAN_CONF=%CYGROOT%\usr\share\misc\man.conf
set GROFF_FONT_PATH=%CYGROOT%\usr\share\groff\1.18.1\font
set GROFF_TMAC_PATH=%CYGROOT%\usr\share\groff\1.18.1\tmac
set MAGIC=%CYGROOT%\usr\share\file\magic
set TERMCAP=%CYGROOT%\etc\termcap
set TERM=ansi
set VIM=%CYGROOT%\usr\share\vim
bash
PGI$

Thanks
b.
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
Goto page 1, 2  Next
Page 1 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