Operating System - HP-UX
1752805 Members
5370 Online
108789 Solutions
New Discussion юеВ

Problem using gcc 3.4.1 on HP 11.23 Itanium

 
Alfred P. Bartholomai_1
Occasional Contributor

Problem using gcc 3.4.1 on HP 11.23 Itanium

We are encountering some different runtime
results using the wdb debugger when our
code is compiled via aCC and using gcc.

When using aCC we can debug the application
fine, no problems.

When we debug the same application, which
instead of being compiled with aCC but with
gcc ( using -g option ) we encounter the following problems:

Program received signal SIGABRT, Aborted
si_code: 0 - SI_UNKNOWN - signal of unknown origin.
warning: No unwind information found.
Skipping this library /usr/lib/hpux32/libcl.so.1.
warning: No unwind information found.
Skipping this library /usr/lib/hpux32/libndbm.so.1.

the major problem is that we cannot
step in our functions. The debugger simply
steps over the function and continues to the
end of the application. Same code, using
-g option, only difference we are compiling
using gcc, not aCC.

I do notice that tne file:
/usr/lib/hpux32/libcl.so.1
is not part of the bintuils and gcc
depots which I installed. I wonder
if there is some compatability
problems between the gcc object files
and the HP linker 'ld'. we are not
using any specific switches when compiling
with gcc. Maybe we should be.

Any help, comments or pointers would
be much appreciated.

Sincerely,

Fred Bartholomai
6 REPLIES 6
Stephen Keane
Honored Contributor

Re: Problem using gcc 3.4.1 on HP 11.23 Itanium

Are you compiling AND linking with gcc, or comiling with gcc and linking with ld?
JUP
Regular Advisor

Re: Problem using gcc 3.4.1 on HP 11.23 Itanium

Hi Alfred

I am having similar problems as you are: ie.

warning: No unwind information found.
Skipping this library /usr/lib/hpux32/libcl.so.1.


I also did not link the above library.

I have not been able to determine what has been going wrong. Have you been able to sort through this problem and if so would you mind replying with what you did.

Thanks in advance
JUP
Stephen Keane
Honored Contributor

Re: Problem using gcc 3.4.1 on HP 11.23 Itanium

Do you get the same problem if you invoke gdb instead? What versions of wdb/gdb are you using?
JUP
Regular Advisor

Re: Problem using gcc 3.4.1 on HP 11.23 Itanium

Steven - have not used wdb until now.
Tried running it and got the following:

Error: Can't open display:

Anyway I have problems using both ADB and GDB. The GDB details are:

HP gdb 4.2 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.

No version available for ADB.

Thanks in advance
JUP
Stephen Keane
Honored Contributor

Re: Problem using gcc 3.4.1 on HP 11.23 Itanium

Fred,
I was interested what the output of chatr was against the aCC built version and the gcc built version of your application. are different libraries being linked?
ranganath ramachandra
Esteemed Contributor

Re: Problem using gcc 3.4.1 on HP 11.23 Itanium

you need not bother about the warning about libcl. libcl used to be the unwind library in PA. on IA, the real unwind library is libunwind.so, but for makefile compatibility they seem to have created a dummy libcl which has nothing in it (so you dont really need any unwind info for it) but depends in turn on libunwind. this makes sure that any of your old makefiles that used -lcl in the link line will get the unwind library (as required by c++ programs for exception handling etc).

i checked /usr/lib/hpux32/libndbm.so.1 and it in fact does not have any unwind info. i dont know why, though.
 
--
ranga
[i work for hpe]

Accept or Kudo