public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/23958] collect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6
  2005-09-18 23:35 [Bug libstdc++/23958] New: ollect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6 danglin at gcc dot gnu dot org
@ 2005-09-18 23:35 ` danglin at gcc dot gnu dot org
  2005-09-18 23:36 ` [Bug c++/23958] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-09-18 23:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ollect2: ld terminated with |collect2: ld terminated with
                   |signal 10 [Bus error]       |signal 10 [Bus error]
                   |linking libstdc++.sl.6      |linking libstdc++.sl.6


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23958


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

* [Bug libstdc++/23958] New: ollect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6
@ 2005-09-18 23:35 danglin at gcc dot gnu dot org
  2005-09-18 23:35 ` [Bug libstdc++/23958] collect2: " danglin at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-09-18 23:35 UTC (permalink / raw)
  To: gcc-bugs

(cd .libs/libstdc++.lax/libsupc++convenience.a && ar x /xxx/gnu/gcc-3.3/objdir/h
ppa2.0w-hp-hpux11.11/libstdc++-v3/src/../libsupc++/.libs/libsupc++convenience.a)
 /xxx/gnu/gcc-3.3/objdir/./gcc/xgcc -shared-libgcc -B/xxx/gnu/gcc-3.3/objdir/./g
cc -nostdinc++ -L/xxx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src
-L/xxx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/gn
u/gcc/gcc-4.1.0/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-4.1.0/hppa2.0w-hp-
hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc-4.1.0/hppa2.0w-hp-hpux11.11/include -is
ystem /opt/gnu/gcc/gcc-4.1.0/hppa2.0w-hp-hpux11.11/sys-include -shared -nostdlib
 -fPIC -Wl,+h -Wl,libstdc++.sl.6 -Wl,+b -Wl,/opt/gnu/gcc/gcc-4.1.0/lib -o .libs/
libstdc++.sl.6.6   .libs/bitmap_allocator.o .libs/pool_allocator.o .libs/mt_allo
cator.o .libs/codecvt.o .libs/compatibility.o .libs/complex_io.o .libs/ctype.o .
libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_locale.o .libs
/globals_io.o .libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.
o .libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o .libs/locale_fa
cets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o .libs
/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o .libs/ext-inst.o .li
bs/io-inst.o .libs/istream-inst.o .libs/istream.o .libs/locale-inst.o .libs/loca
le-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o .libs
/streambuf-inst.o .libs/streambuf.o .libs/string-inst.o .libs/valarray-inst.o .l
ibs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o .libs/codecvt_members.
o .libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o .libs/m
onetary_members.o .libs/numeric_members.o .libs/time_members.o .libs/basic_file.
o .libs/c++locale.o .libs/libstdc++.lax/libmath.a/stubs.o .libs/libstdc++.lax/li
bmath.a/signbit.o .libs/libstdc++.lax/libmath.a/signbitf.o  .libs/libstdc++.lax/
libsupc++convenience.a/del_op.o .libs/libstdc++.lax/libsupc++convenience.a/del_o
pnt.o .libs/libstdc++.lax/libsupc++convenience.a/del_opv.o .libs/libstdc++.lax/l
ibsupc++convenience.a/del_opvnt.o .libs/libstdc++.lax/libsupc++convenience.a/eh_
alloc.o .libs/libstdc++.lax/libsupc++convenience.a/eh_arm.o .libs/libstdc++.lax/
libsupc++convenience.a/eh_aux_runtime.o .libs/libstdc++.lax/libsupc++convenience
.a/eh_call.o .libs/libstdc++.lax/libsupc++convenience.a/eh_catch.o .libs/libstdc
++.lax/libsupc++convenience.a/eh_exception.o .libs/libstdc++.lax/libsupc++conven
ience.a/eh_globals.o .libs/libstdc++.lax/libsupc++convenience.a/eh_personality.o
 .libs/libstdc++.lax/libsupc++convenience.a/eh_term_handler.o .libs/libstdc++.la
x/libsupc++convenience.a/eh_terminate.o .libs/libstdc++.lax/libsupc++convenience
.a/eh_throw.o .libs/libstdc++.lax/libsupc++convenience.a/eh_type.o .libs/libstdc
++.lax/libsupc++convenience.a/eh_unex_handler.o .libs/libstdc++.lax/libsupc++con
venience.a/guard.o .libs/libstdc++.lax/libsupc++convenience.a/new_handler.o .lib
s/libstdc++.lax/libsupc++convenience.a/new_op.o .libs/libstdc++.lax/libsupc++con
venience.a/new_opnt.o .libs/libstdc++.lax/libsupc++convenience.a/new_opv.o .libs
/libstdc++.lax/libsupc++convenience.a/new_opvnt.o .libs/libstdc++.lax/libsupc++c
onvenience.a/pure.o .libs/libstdc++.lax/libsupc++convenience.a/tinfo.o .libs/lib
stdc++.lax/libsupc++convenience.a/tinfo2.o .libs/libstdc++.lax/libsupc++convenie
nce.a/vec.o .libs/libstdc++.lax/libsupc++convenience.a/vterminate.o .libs/libstd
c++.lax/libsupc++convenience.a/cp-demangle.o   -L/xxx/gnu/gcc-3.3/objdir/hppa2.0
w-hp-hpux11.11/libstdc++-v3/src -L/xxx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/
libstdc++-v3/src/.libs -lm ../libmath/.libs/libmath.a -lm ../libsupc++/.libs/lib
supc++convenience.a -lm -L/xxx/gnu/gcc-3.3/objdir/./gcc -L/usr/ccs/lib -L/opt/la
ngtools/lib -L/opt/gnu/gcc/gcc-4.1.0/lib -lgcc_s -lgcc_s -lm -lgcc_s -lgcc_s -lc

collect2: ld terminated with signal 10 [Bus error], core dumped
make[4]: *** [libstdc++.la] Error 1
make[4]: Leaving directory `/xxx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstd
c++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/xxx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstd
c++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/xxx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstd
c++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/xxx/gnu/gcc-3.3/objdir'
make: *** [bubblestrap] Error 2
Sun Sep 18 19:26:01 EDT 2005

Looks like the same problem as ada/2397.

# for i in *.o;do echo $i;(/usr/ccs/bin/odump -all $i|grep personality);done|l>
allocator-inst.o
atomicity.o
basic_file.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
bitmap_allocator.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
c++locale.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
codecvt.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
codecvt_members.o
collate_members.o
compatibility.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
complex_io.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
concept-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
ctype.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
ctype_members.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
debug.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
debug_list.o
ext-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
fstream-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
functexcept.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
globals_io.o
globals_locale.o
io-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
ios.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
ios_failure.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
ios_init.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
ios_locale.o
istream-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
istream.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
limits.o
list.o
locale-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
locale-misc-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
locale.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
locale_facets.o
locale_init.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
localename.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
messages_members.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
misc-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
monetary_members.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
mt_allocator.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
numeric_members.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
ostream-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
pool_allocator.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
sstream-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
stdexcept.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
streambuf-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
streambuf.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
string-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
strstream.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
time_members.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0
tree.o
valarray-inst.o
00000000 00000000 Data  Unsat  0 ..........  3 00000 __gxx_personality_v0

-- 
           Summary: ollect2: ld terminated with signal 10 [Bus error]
                    linking libstdc++.sl.6
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23958


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

* [Bug c++/23958] collect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6
  2005-09-18 23:35 [Bug libstdc++/23958] New: ollect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6 danglin at gcc dot gnu dot org
  2005-09-18 23:35 ` [Bug libstdc++/23958] collect2: " danglin at gcc dot gnu dot org
@ 2005-09-18 23:36 ` pinskia at gcc dot gnu dot org
  2005-09-21 22:47 ` sje at cup dot hp dot com
  2005-09-21 23:02 ` dave at hiauly1 dot hia dot nrc dot ca
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 23:36 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
          Component|libstdc++                   |c++
           Keywords|                            |wrong-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23958


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

* [Bug c++/23958] collect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6
  2005-09-18 23:35 [Bug libstdc++/23958] New: ollect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6 danglin at gcc dot gnu dot org
  2005-09-18 23:35 ` [Bug libstdc++/23958] collect2: " danglin at gcc dot gnu dot org
  2005-09-18 23:36 ` [Bug c++/23958] " pinskia at gcc dot gnu dot org
@ 2005-09-21 22:47 ` sje at cup dot hp dot com
  2005-09-21 23:02 ` dave at hiauly1 dot hia dot nrc dot ca
  3 siblings, 0 replies; 6+ messages in thread
From: sje at cup dot hp dot com @ 2005-09-21 22:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sje at cup dot hp dot com  2005-09-21 22:38 -------
The Ada bug number in the previous comment should be PR 23957, not 2397.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23958


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

* [Bug c++/23958] collect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6
  2005-09-18 23:35 [Bug libstdc++/23958] New: ollect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6 danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-09-21 22:47 ` sje at cup dot hp dot com
@ 2005-09-21 23:02 ` dave at hiauly1 dot hia dot nrc dot ca
  3 siblings, 0 replies; 6+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-09-21 23:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-09-21 23:02 -------
Subject: Re:  collect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6

> The Ada bug number in the previous comment should be PR 23957, not 2397.

The enclosed patch fixes the linker segmentation fault for both PRs.
However, I'm not sure the call to assemble_external_libcall is in
the right place.  output_function_exception_table is called at the
end of the output for each function.  I think we should do this after
all functions have been output.  However, this probably doesn't matter
for the PA.

I started trying to look at the eh errors.  They are now about the
same for 32 and 64-bit hpux.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

Index: except.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/except.c,v
retrieving revision 1.317
diff -u -3 -p -r1.317 except.c
--- except.c	17 Sep 2005 20:58:14 -0000	1.317
+++ except.c	21 Sep 2005 22:52:15 -0000
@@ -3516,13 +3516,15 @@ output_function_exception_table (void)
   int have_tt_data;
   int tt_format_size = 0;
 
+  if (eh_personality_libfunc)
+    assemble_external_libcall (eh_personality_libfunc);
+
   /* Not all functions need anything.  */
   if (! cfun->uses_eh_lsda)
     return;
 
 #ifdef TARGET_UNWIND_INFO
   /* TODO: Move this into target file.  */
-  assemble_external_libcall (eh_personality_libfunc);
   fputs ("\t.personality\t", asm_out_file);
   output_addr_const (asm_out_file, eh_personality_libfunc);
   fputs ("\n\t.handlerdata\n", asm_out_file);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23958


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

* [Bug c++/23958] collect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6
       [not found] <bug-23958-276@http.gcc.gnu.org/bugzilla/>
@ 2005-10-23 18:50 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-23 18:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-10-23 18:50 -------


*** This bug has been marked as a duplicate of 23957 ***


-- 

pinskia at gcc dot gnu dot org changed:

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23958


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

end of thread, other threads:[~2005-10-23 18:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-18 23:35 [Bug libstdc++/23958] New: ollect2: ld terminated with signal 10 [Bus error] linking libstdc++.sl.6 danglin at gcc dot gnu dot org
2005-09-18 23:35 ` [Bug libstdc++/23958] collect2: " danglin at gcc dot gnu dot org
2005-09-18 23:36 ` [Bug c++/23958] " pinskia at gcc dot gnu dot org
2005-09-21 22:47 ` sje at cup dot hp dot com
2005-09-21 23:02 ` dave at hiauly1 dot hia dot nrc dot ca
     [not found] <bug-23958-276@http.gcc.gnu.org/bugzilla/>
2005-10-23 18:50 ` pinskia at gcc dot gnu dot 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).