public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: ada/9953: Unsatisfied symbols: U_prep_frame_rec_for_unwind (code)
@ 2003-03-13 16:16 Olivier Hainque
  0 siblings, 0 replies; 2+ messages in thread
From: Olivier Hainque @ 2003-03-13 16:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR ada/9953; it has been noted by GNATS.

From: Olivier Hainque <hainque@ACT-Europe.FR>
To: dave.anglin@nrc-cnrc.gc.ca
Cc: gcc-gnats@gcc.gnu.org, hainque@ACT-Europe.FR, bosch@gnat.com
Subject: Re: ada/9953: Unsatisfied symbols: U_prep_frame_rec_for_unwind (code)
Date: Thu, 13 Mar 2003 17:06:38 +0100

 dave.anglin@nrc-cnrc.gc.ca wrote:
 > cd ada/doctools && gnatmake -q xgnatug
 > /usr/ccs/bin/ld: Unsatisfied symbols:
 >    U_prep_frame_rec_for_unwind (code)
 
  As indicated on other channels, this is because the GNAT run-time library
  references functions from the system unwinding library (for call-chain
  computation purposes), and this specific one is not provided on HPUX 10.
 
  The patch below should fix this.
 
  Bootstrapped against 3.3 on hppa1.1-hp-hpux11.00, and checked that
  the rest of the build goes fine on this target, with the symlinks 
  setup properly during the GNAT run-time library build. Performed a
  couple of simple tests with the resulting compiler installed.
 
  I checked that the symlinks are also setup as expected for a hpux10.20
  target (cross configuration), but I don't have a 10.20 machine at hand to
  test this further.
 
  Could you please check if it indeed fixes your problem ?
 
  Thanks in advance,
 
  Olivier
 
 --
 
 *** gcc/ada/Makefile.in.ori	Mon Mar  3 09:49:49 2003
 --- gcc/ada/Makefile.in	Thu Mar 13 10:59:47 2003
 *************** ifeq ($(strip $(filter-out hppa% hp hpux
 *** 759,771 ****
     s-osinte.ads<53osinte.ads \
     s-parame.ads<5hparame.ads \
     s-osprim.adb<7sosprim.adb \
 -   s-traceb.adb<5htraceb.adb \
     s-taprop.adb<7staprop.adb \
     s-taspri.ads<7staspri.ads \
     s-tpopsp.adb<5atpopsp.adb \
     g-soccon.ads<3hsoccon.ads \
     system.ads<5hsystem.ads
   
     TGT_LIB = /usr/lib/libcl.a -lpthread
     THREADSLIB = -lpthread -lc_r
     SYMLIB = -laddr2line -lbfd $(INTLLIBS)
 --- 759,779 ----
     s-osinte.ads<53osinte.ads \
     s-parame.ads<5hparame.ads \
     s-osprim.adb<7sosprim.adb \
     s-taprop.adb<7staprop.adb \
     s-taspri.ads<7staspri.ads \
     s-tpopsp.adb<5atpopsp.adb \
     g-soccon.ads<3hsoccon.ads \
     system.ads<5hsystem.ads
   
 +   # An HPUX specific s-traceb.adb shall be used for traceback support.
 +   # It resorts to functions provided by the system unwinding library,
 +   # some of which are not available in HPUX 10, so fallback to the default
 +   # implementation in this case. The block below expresses this as "if not
 +   # hpux10, use the dedicated s-traceb.adb".
 +   ifneq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
 +   LIBGNAT_TARGET_PAIRS += s-traceb.adb<5htraceb.adb
 +   endif
 + 
     TGT_LIB = /usr/lib/libcl.a -lpthread
     THREADSLIB = -lpthread -lc_r
     SYMLIB = -laddr2line -lbfd $(INTLLIBS)
 
  
  


^ permalink raw reply	[flat|nested] 2+ messages in thread

* ada/9953: Unsatisfied symbols: U_prep_frame_rec_for_unwind (code)
@ 2003-03-04 21:26 dave.anglin
  0 siblings, 0 replies; 2+ messages in thread
From: dave.anglin @ 2003-03-04 21:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9953
>Category:       ada
>Synopsis:       Unsatisfied symbols: U_prep_frame_rec_for_unwind (code)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 21:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dave Anglin
>Release:        3.2 branch
>Organization:
>Environment:
hppa1.1-hp-hpux10.20
>Description:
ada in 3.3 branch fails to build with 3.2.3 (prerelease):

mkdir -p ada/doctools
cp ../../gcc/gcc/ada/xgnatug.adb ada/doctools
cd ada/doctools && gnatmake -q xgnatug
/usr/ccs/bin/ld: Unsatisfied symbols:
   U_prep_frame_rec_for_unwind (code)
collect2: ld returned 1 exit status
gnatlink: cannot call /opt/gnu/bin/gcc
gnatmake: *** link failed.
make[2]: *** [ada/doctools/xgnatug] Error 4

The undefined symbol is from gnatlib.a:

# nm /opt/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.2.3/adalib/libgnat.a
...
s-traceb.o:
00000000 t $CODE$
00000000 t $CODE$
00000000 t $CODE$
00000000 t $CODE$
00000000 t $CODE$
00000000 t $CODE$
00000000 t L$text0000
00000000 t L$text_end0000
         U U_IS_STUB_OR_CALLX
         U U_get_previous_frame_x
         U U_get_shLib_text_addr
         U U_get_shLib_unw_tbl
         U U_get_unwind_entry
         U U_get_unwind_table
         U U_init_frame_record
         U U_is_shared_pc
         U U_prep_frame_rec_for_unwind

This is a regression.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-13 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 16:16 ada/9953: Unsatisfied symbols: U_prep_frame_rec_for_unwind (code) Olivier Hainque
  -- strict thread matches above, loose matches on Subject: below --
2003-03-04 21:26 dave.anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).