PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Error launching the pgdbg
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
Y. Huang



Joined: 05 Jul 2005
Posts: 3

PostPosted: Mon Aug 08, 2005 9:47 am    Post subject: Error launching the pgdbg Reply with quote

The PGI compilers were installed in a dual Opteron system with two nodes running Rocks Cluster 3.3.0. I got the following errors when invoking the pgdbg:

PGDBG 6.0-4 x86-64 (Workstation, 4 CPU)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/pgi/linux86-64/6.0/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
at splashLoader.main(Unknown Source)

The library libXp.so.6 is located in /usr/X11R6/lib64/ on our system, and the file /etc/ld.so.conf contains the entry of /usr/X11R6/lib64.

Also, the text mode of pgdbg is working.

Please help! Thanks

Yiye
Back to top
View user's profile
mleair



Joined: 19 Jul 2004
Posts: 67
Location: Portland Group

PostPosted: Mon Aug 08, 2005 12:05 pm    Post subject: libXp Reply with quote

Hi,
To work around this problem, you should install version 1.5 of the java JRE on the system that is running PGDBG. It is available for download from www.java.com (click on the "Download Now" button). After installing it, set your PGI_JAVA system environment variable to the absolute path of the java executable in this new installation. For example, let's say you installed the JRE in /opt/java, then you
will set the PGI_JAVA environment variable the following way:

(csh/tcsh)

setenv PGI_JAVA /opt/java/jre/bin/java

(sh/bash)

export PGI_JAVA=/opt/java/jre/bin/java

You'll need to set this variable prior to running the PGDBG GUI or PGPROF. For our next major release we will bundle the 1.5 java jre.

-Mark
Back to top
View user's profile
Y. Huang



Joined: 05 Jul 2005
Posts: 3

PostPosted: Mon Aug 08, 2005 6:16 pm    Post subject: Reply with quote

It works. Thanks.
Back to top
View user's profile
jevans



Joined: 14 Dec 2004
Posts: 13

PostPosted: Thu Sep 15, 2005 6:55 am    Post subject: Slightly different problem launching Reply with quote

I've got a similar issue. I've set PGI_JAVA to /usr/java/jre1.5.0_04/bin/java before compiling with the -pg option. The machine in question is a quad opteron running Centos 4.1. The message I get is

> pgprof -exe oceanS gmon.out

[jevans@evans-temp srcS-pgi]$ pgprof -exe oceanS gmon.out
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at splashLoader$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: /opt/pgi/linux86-64/6.0/lib/libjpgprof.so: /opt/pgi/linux86-64/6.0/lib/libjpgprof.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at jpgprof.main(Unknown Source)
... 6 more

I can't even get text mode to work, using the -text option gives basically the same message. The shared object file clearly exists...
Back to top
View user's profile
mleair



Joined: 19 Jul 2004
Posts: 67
Location: Portland Group

PostPosted: Thu Sep 15, 2005 3:15 pm    Post subject: Re: Slightly different problem launching Reply with quote

Are you positive that /opt/pgi/linux86-64/6.0/lib/libjpgprof.so exists on the node that you are launching PGPROF on? It is a dynamic library, which means it does not get loaded until after you launch PGPROF. I suppose you could also try setting the path to libpgprof.so in your LD_LIBRARY_PATH (although this should not be needed). For example:

(tcsh/csh)

setenv LD_LIBRARY_PATH /opt/pgi/linux86-64/6.0/lib/:$LD_LIBRARY_PATH

(bash/sh)

export LD_LIBRARY_PATH=/opt/pgi/linux86-64/6.0/lib/:$LD_LIBRARY_PATH

I'm more inclined to suspect that libjpgprof.so does not live on the node you are launching PGPROF from.

-Mark
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, 3  Next
Page 1 of 3

 
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