public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
@ 2009-05-13 17:06 debian-gcc at lists dot debian dot org
2009-05-22 13:37 ` [Bug target/40134] " ramana at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2009-05-13 17:06 UTC (permalink / raw)
To: gcc-bugs
this showed up when trying to address PR40133. Enabling the exception
propagation support keeps the __sync_val_compare_and_swap_4 unresolved.
/usr/bin/ld: ./atomic-1.exe: hidden symbol `__sync_val_compare_and_swap_4' in
/home/doko/gcc/4.4/gcc-4.4-4.4.0/build/gcc/libgcc.a(linux-atomic.o) is
referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
Linking the shared libstdc++ with both -lgcc_s and -lgcc does fix these.
There seem to be two issues:
- libtool currently doesn't allow to link with -lgcc_s -lgcc (in this order).
see http://gcc.gnu.org/ml/libstdc++/2009-05/msg00064.html
- g++ should link be default with -lgcc_s -lgcc? this is how I understand
http://gcc.gnu.org/ml/gcc/2009-05/msg00039.html
--
Summary: symbols not resolved when building shared libraries
(link with -lgcc_s -lgcc?)
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
GCC target triplet: arm-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
@ 2009-05-22 13:37 ` ramana at gcc dot gnu dot org
2009-06-20 1:21 ` doko at ubuntu dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-05-22 13:37 UTC (permalink / raw)
To: gcc-bugs
--
ramana at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-05-22 13:37:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
2009-05-22 13:37 ` [Bug target/40134] " ramana at gcc dot gnu dot org
@ 2009-06-20 1:21 ` doko at ubuntu dot com
2009-07-07 9:08 ` debian-gcc at lists dot debian dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: doko at ubuntu dot com @ 2009-06-20 1:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from doko at ubuntu dot com 2009-06-20 01:21 -------
The SH port does use a linker script to link with both -lgcc_s and -lgcc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
2009-05-22 13:37 ` [Bug target/40134] " ramana at gcc dot gnu dot org
2009-06-20 1:21 ` doko at ubuntu dot com
@ 2009-07-07 9:08 ` debian-gcc at lists dot debian dot org
2009-10-19 14:26 ` doko at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2009-07-07 9:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from debian-gcc at lists dot debian dot org 2009-07-07 09:08 -------
proposed patch at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2009-07-07 9:08 ` debian-gcc at lists dot debian dot org
@ 2009-10-19 14:26 ` doko at gcc dot gnu dot org
2009-12-04 7:48 ` doko at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: doko at gcc dot gnu dot org @ 2009-10-19 14:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from doko at gcc dot gnu dot org 2009-10-19 14:26 -------
Subject: Bug 40134
Author: doko
Date: Mon Oct 19 14:26:28 2009
New Revision: 152975
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152975
Log:
2009-10-19 Matthias Klose <doko@ubuntu.com>
PR target/40134
* config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config.gcc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2009-10-19 14:26 ` doko at gcc dot gnu dot org
@ 2009-12-04 7:48 ` doko at gcc dot gnu dot org
2009-12-14 0:21 ` debian-gcc at lists dot debian dot org
2010-01-04 15:14 ` doko at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: doko at gcc dot gnu dot org @ 2009-12-04 7:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from doko at gcc dot gnu dot org 2009-12-04 07:48 -------
Subject: Bug 40134
Author: doko
Date: Fri Dec 4 07:47:51 2009
New Revision: 154973
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154973
Log:
2009-12-04 Matthias Klose <doko@ubuntu.com>
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/40134
* config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
* config/pa/pa-linux.h (LIB_SPEC): Remove.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config.gcc
trunk/gcc/config/pa/pa-linux.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
` (4 preceding siblings ...)
2009-12-04 7:48 ` doko at gcc dot gnu dot org
@ 2009-12-14 0:21 ` debian-gcc at lists dot debian dot org
2010-01-04 15:14 ` doko at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2009-12-14 0:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from debian-gcc at lists dot debian dot org 2009-12-14 00:21 -------
fixed on the trunk
--
debian-gcc at lists dot debian dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
` (5 preceding siblings ...)
2009-12-14 0:21 ` debian-gcc at lists dot debian dot org
@ 2010-01-04 15:14 ` doko at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: doko at gcc dot gnu dot org @ 2010-01-04 15:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from doko at gcc dot gnu dot org 2010-01-04 15:13 -------
Subject: Bug 40134
Author: doko
Date: Mon Jan 4 15:13:08 2010
New Revision: 155617
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155617
Log:
2010-01-04 Mikael Pettersson <mikpe@it.uu.se>
PR target/42503
Backport from mainline:
2009-09-09 Jakub Jelinek <jakub@redhat.com>
* config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
New variables.
(SHLIB_LINK, SHLIB_INSTALL): Use them.
* config/t-slibgcc-libgcc: New file.
2009-10-19 Matthias Klose <doko@ubuntu.com>
PR target/40134
* config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
Added:
branches/gcc-4_4-branch/gcc/config/t-slibgcc-libgcc
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/config.gcc
branches/gcc-4_4-branch/gcc/config/t-slibgcc-elf-ver
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
[not found] <bug-40134-4@http.gcc.gnu.org/bugzilla/>
2012-06-24 23:26 ` tg at mirbsd dot org
@ 2012-06-24 23:27 ` tg at mirbsd dot org
1 sibling, 0 replies; 10+ messages in thread
From: tg at mirbsd dot org @ 2012-06-24 23:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
--- Comment #8 from Thorsten Glaser <tg at mirbsd dot org> 2012-06-24 23:27:34 UTC ---
Looks like this is needed for all architectures having such symbols in libgcc.a
only – I just backported those for m68k to gcc-4.6 and encountered this issue,
which Mikael Pettersson helped to solve.
Just so anyone who’ll encounter these later knows. (Also, rebuild *all*
involved DLLs against the libgcc_s.so linker script, not just libstdc++.)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/40134] symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)
[not found] <bug-40134-4@http.gcc.gnu.org/bugzilla/>
@ 2012-06-24 23:26 ` tg at mirbsd dot org
2012-06-24 23:27 ` tg at mirbsd dot org
1 sibling, 0 replies; 10+ messages in thread
From: tg at mirbsd dot org @ 2012-06-24 23:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
Thorsten Glaser <tg at mirbsd dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tg at mirbsd dot org
--- Comment #7 from Thorsten Glaser <tg at mirbsd dot org> 2012-06-24 23:25:53 UTC ---
Looks like this is needed for all architectures having such symbols in libgcc.a
only – I just backported those for m68k to gcc-4.6 and encountered this issue,
which Mikael Pettersson helped to solve.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-06-24 23:27 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-13 17:06 [Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?) debian-gcc at lists dot debian dot org
2009-05-22 13:37 ` [Bug target/40134] " ramana at gcc dot gnu dot org
2009-06-20 1:21 ` doko at ubuntu dot com
2009-07-07 9:08 ` debian-gcc at lists dot debian dot org
2009-10-19 14:26 ` doko at gcc dot gnu dot org
2009-12-04 7:48 ` doko at gcc dot gnu dot org
2009-12-14 0:21 ` debian-gcc at lists dot debian dot org
2010-01-04 15:14 ` doko at gcc dot gnu dot org
[not found] <bug-40134-4@http.gcc.gnu.org/bugzilla/>
2012-06-24 23:26 ` tg at mirbsd dot org
2012-06-24 23:27 ` tg at mirbsd 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).