public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/101924] New: /usr/ccs/bin/ld: Unsatisfied symbols referenced
@ 2021-08-15 16:44 danglin at gcc dot gnu.org
  2021-08-15 16:51 ` [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table danglin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2021-08-15 16:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101924

            Bug ID: 101924
           Summary: /usr/ccs/bin/ld: Unsatisfied symbols referenced
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

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

* [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table
  2021-08-15 16:44 [Bug ada/101924] New: /usr/ccs/bin/ld: Unsatisfied symbols referenced danglin at gcc dot gnu.org
@ 2021-08-15 16:51 ` danglin at gcc dot gnu.org
  2021-08-16  9:11 ` charlet at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2021-08-15 16:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101924

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|/usr/ccs/bin/ld:            |/usr/ccs/bin/ld:
                   |Unsatisfied symbols         |Unsatisfied symbols:
                   |referenced                  |U_get_unwind_entry,
                   |                            |U_IS_STUB_OR_CALLX,
                   |                            |U_get_shLib_text_addr,
                   |                            |U_is_shared_pc,
                   |                            |U_init_frame_record,
                   |                            |U_prep_frame_rec_for_unwind
                   |                            |, U_get_shLib_unw_tbl,
                   |                            |U_get_previous_frame_x and
                   |                            |U_get_unwind_table

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
g++ -std=c++11 -no-pie -g -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwi
nd-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmiss
ing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic
-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++
-static-libgcc
  -o gnatbind -g ada/b_gnatb.o ada/ali-util.o ada/ali.o ada/alloc.o
ada/aspects.
o ada/atree.o ada/bcheck.o ada/binde.o ada/binderr.o ada/bindgen.o ada/bindo.o
a
da/bindo-augmentors.o ada/bindo-builders.o ada/bindo-diagnostics.o
ada/bindo-ela
borators.o ada/bindo-graphs.o ada/bindo-units.o ada/bindo-validators.o
ada/bindo
-writers.o ada/bindusg.o ada/butil.o ada/casing.o ada/csets.o ada/debug.o
ada/ei
nfo-entities.o ada/einfo-utils.o ada/einfo.o ada/elists.o ada/err_vars.o
ada/err
out.o ada/erroutc.o ada/exit.o ada/final.o ada/fmap.o ada/fname-uf.o
ada/fname.o
 ada/gnatbind.o ada/gnatvsn.o ada/hostparm.o ada/krunch.o ada/lib.o ada/link.o
a
da/namet.o ada/nlists.o ada/opt.o ada/osint-b.o ada/osint.o ada/output.o
ada/res
trict.o ada/rident.o ada/scans.o ada/scil_ll.o ada/scng.o ada/sdefault.o
ada/sei
nfo.o ada/sem_aux.o ada/sinfo.o ada/sinfo-nodes.o ada/sinfo-utils.o
ada/sinput-c
.o ada/sinput.o ada/snames.o ada/stand.o ada/stringt.o ada/style.o ada/styleg.o
ada/stylesw.o ada/switch-b.o ada/switch.o ada/table.o ada/targparm.o
ada/types.o
 ada/uintp.o ada/uname.o ada/urealp.o ada/widechar.o ada/gnat.o ada/g-dynhta.o
a
da/g-lists.o ada/g-graphs.o ada/g-sets.o ada/s-casuti.o ada/s-os_lib.o
ada/s-res
fil.o ada/s-utf_32.o ada/adaint.o ada/argv.o ada/cio.o ada/cstreams.o ada/env.o
ada/errno.o ada/targext.o ada/version.o ggc-none.o libcommon-target.a
libcommon.
a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiber
ty.a ../libdecnumber/libdecnumber.a  
/home/opt/gnu/gcc/gcc-8/lib/gcc/hppa2.0w-h
p-hpux11.11/8.5.0/adalib/libgnat.a
/usr/ccs/bin/ld: Unsatisfied symbols:
   U_get_unwind_entry (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/hppa2
.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_IS_STUB_OR_CALLX (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/hppa2
.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_get_shLib_text_addr (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/hp
pa2.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_is_shared_pc (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/hppa2.0w-
hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_init_frame_record (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/hppa
2.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_prep_frame_rec_for_unwind (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/
gcc/hppa2.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_get_shLib_unw_tbl (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/hppa
2.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_get_previous_frame_x (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/h
ppa2.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
   U_get_unwind_table (first referenced in
/home/opt/gnu/gcc/gcc-8/lib/gcc/hppa2
.0w-hp-hpux11.11/8.5.0/adalib/libgnat.a(s-traceb.o)) (code)
collect2: error: ld returned 1 exit status
make[3]: *** [../../gcc/gcc/ada/gcc-interface/Make-lang.in:746: gnatbind] Error
1
make[3]: *** Waiting for unfinished jobs....

This was introduced by the following change:

commit abcf5174979bcb91ac4c921eaa19a5b37f231ae4 (HEAD, refs/bisect/bad)
Author: Arnaud Charlet <charlet@adacore.com>
Date:   Wed Jan 13 08:49:15 2021 -0500

    [Ada] Use runtime from base compiler during stage1

    gcc/ada/

            * Make-generated.in: Add rule to copy runtime files needed
            during stage1.
            * raise.c: Remove obsolete symbols used during bootstrap.
            * gcc-interface/Make-lang.in: Do not use libgnat sources during
            stage1.
            (GNAT_ADA_OBJS, GNATBIND_OBJS): Split in two parts, the common
            part and the part only used outside of stage1.
            (ADA_GENERATED_FILES): Add runtime files needed during bootstrap
            when recent APIs are needed.
            (ada/b_gnatb.adb): Remove prerequisite.
            * gcc-interface/system.ads: Remove obsolete entries.

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

* [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table
  2021-08-15 16:44 [Bug ada/101924] New: /usr/ccs/bin/ld: Unsatisfied symbols referenced danglin at gcc dot gnu.org
  2021-08-15 16:51 ` [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table danglin at gcc dot gnu.org
@ 2021-08-16  9:11 ` charlet at gcc dot gnu.org
  2021-08-16 13:43 ` dave.anglin at bell dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: charlet at gcc dot gnu.org @ 2021-08-16  9:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101924

Arnaud Charlet <charlet at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |charlet at gcc dot gnu.org

--- Comment #2 from Arnaud Charlet <charlet at gcc dot gnu.org> ---
Can you confirm that these symbols are present in /usr/lib/libcl.a?

If so, can you try the following patch:

--- gcc/ada/gcc-interface//Make-lang.in
+++ gcc/ada/gcc-interface/Make-lang.in
@@ -85,6 +85,10 @@ ifeq ($(strip $(filter-out linux%,$(host_os))),)
   STAGE1_LIBS=-ldl
 endif

+ifeq ($(strip $(filter-out hpux%,$(host_os))),)
+  STAGE1_LIBS=/usr/lib/libcl.a
+endif
+
 ifeq ($(STAGE1),True)
   ADA_INCLUDES=$(COMMON_ADA_INCLUDES)
   adalib=$(dir $(shell $(CC) -print-libgcc-file-name))adalib

Patch is pre-approved if it does the job

Arno

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

* [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table
  2021-08-15 16:44 [Bug ada/101924] New: /usr/ccs/bin/ld: Unsatisfied symbols referenced danglin at gcc dot gnu.org
  2021-08-15 16:51 ` [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table danglin at gcc dot gnu.org
  2021-08-16  9:11 ` charlet at gcc dot gnu.org
@ 2021-08-16 13:43 ` dave.anglin at bell dot net
  2021-08-19 15:40 ` cvs-commit at gcc dot gnu.org
  2021-08-19 15:49 ` danglin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: dave.anglin at bell dot net @ 2021-08-16 13:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101924

--- Comment #3 from dave.anglin at bell dot net ---
On 2021-08-16 5:11 a.m., charlet at gcc dot gnu.org wrote:
> Can you confirm that these symbols are present in /usr/lib/libcl.a?
The symbols are in libcl.a.  I'll test patch in next build.

Thanks,
Dave

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

* [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table
  2021-08-15 16:44 [Bug ada/101924] New: /usr/ccs/bin/ld: Unsatisfied symbols referenced danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-08-16 13:43 ` dave.anglin at bell dot net
@ 2021-08-19 15:40 ` cvs-commit at gcc dot gnu.org
  2021-08-19 15:49 ` danglin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-19 15:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101924

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by John David Anglin <danglin@gcc.gnu.org>:

https://gcc.gnu.org/g:07b4100683e55023a78576cb8c75d8e40e41f44f

commit r12-3028-g07b4100683e55023a78576cb8c75d8e40e41f44f
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Thu Aug 19 15:39:18 2021 +0000

    Define STAGE1_LIBS to link against libcl.a in stage1 on hpux.

    2021-08-19  Arnaud Charlet  <charlet@adacore.com>

            PR ada/101924
    gcc/ada/ChangeLog:
            * gcc-interface/Make-lang.in (STAGE1_LIBS): Define on hpux.

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

* [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table
  2021-08-15 16:44 [Bug ada/101924] New: /usr/ccs/bin/ld: Unsatisfied symbols referenced danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-08-19 15:40 ` cvs-commit at gcc dot gnu.org
@ 2021-08-19 15:49 ` danglin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2021-08-19 15:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101924

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2021-08-19 15:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-15 16:44 [Bug ada/101924] New: /usr/ccs/bin/ld: Unsatisfied symbols referenced danglin at gcc dot gnu.org
2021-08-15 16:51 ` [Bug ada/101924] /usr/ccs/bin/ld: Unsatisfied symbols: U_get_unwind_entry, U_IS_STUB_OR_CALLX, U_get_shLib_text_addr, U_is_shared_pc, U_init_frame_record, U_prep_frame_rec_for_unwind, U_get_shLib_unw_tbl, U_get_previous_frame_x and U_get_unwind_table danglin at gcc dot gnu.org
2021-08-16  9:11 ` charlet at gcc dot gnu.org
2021-08-16 13:43 ` dave.anglin at bell dot net
2021-08-19 15:40 ` cvs-commit at gcc dot gnu.org
2021-08-19 15:49 ` danglin at gcc dot gnu.org

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