* Duplicate Symbol
@ 2010-02-06 16:05 Vardhan, Sundara (GE Infra, Energy)
2010-02-09 0:29 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Vardhan, Sundara (GE Infra, Energy) @ 2010-02-06 16:05 UTC (permalink / raw)
To: gcc-help
Hi All
Compiling using GCC 4.4.3 and linking using AIX ld, I get some duplicate
symbol warnings. Upon debugging further I see that they are defined in
libgcc_s.a and also in libgcc.a.
Should we have both of these library directories?
.__divti3
{/usr/local/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc_s.a
[shr.o]}
** Duplicate **
/cots/gnu/gcc-4.4.3/libgcc/../gcc/libgcc2.c(/usr/local/bin/../lib/gcc/po
werpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc.a[_divdi3.o])
.__modti3
{/usr/local/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc_s.a
[shr.o]}
** Duplicate **
/cots/gnu/gcc-4.4.3/libgcc/../gcc/libgcc2.c(/usr/local/bin/../lib/gcc/po
werpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc.a[_moddi3.o])
.__udivti3
{/usr/local/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc_s.a
[shr.o]}
** Duplicate **
/cots/gnu/gcc-4.4.3/libgcc/../gcc/libgcc2.c(/usr/local/bin/../lib/gcc/po
werpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc.a[_udivdi3.o])
.__umodti3
{/usr/local/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc_s.a
[shr.o]}
** Duplicate **
/cots/gnu/gcc-4.4.3/libgcc/../gcc/libgcc2.c(/usr/local/bin/../lib/gcc/po
werpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc.a[_umoddi3.o])
.__udivmodti4
{/usr/local/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc_s.a
[shr.o]}
** Duplicate **
/cots/gnu/gcc-4.4.3/libgcc/../gcc/libgcc2.c(/usr/local/bin/../lib/gcc/po
werpc-ibm-aix5.3.0.0/4.4.3/ppc64/libgcc.a[_udivmoddi4.o])
Greatly appreciate your help and advice.
With Regards
Vardhan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Duplicate Symbol
2010-02-06 16:05 Duplicate Symbol Vardhan, Sundara (GE Infra, Energy)
@ 2010-02-09 0:29 ` Ian Lance Taylor
2010-02-10 17:45 ` Vardhan, Sundara (GE Infra, Energy)
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2010-02-09 0:29 UTC (permalink / raw)
To: Vardhan, Sundara (GE Infra, Energy); +Cc: gcc-help
"Vardhan, Sundara (GE Infra, Energy)" <sundara.vardhan@ge.com> writes:
> Compiling using GCC 4.4.3 and linking using AIX ld, I get some duplicate
> symbol warnings. Upon debugging further I see that they are defined in
> libgcc_s.a and also in libgcc.a.
> Should we have both of these library directories?
It is normal to have both, yes. The situation on AIX is uncommon.
Normally linking against -lgcc_s and -lgcc is fine, and is done
because there are a few objects which are put in -lgcc but not in
-lgcc_s. I'm not sure how this is supposed to work on AIX.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Duplicate Symbol
2010-02-09 0:29 ` Ian Lance Taylor
@ 2010-02-10 17:45 ` Vardhan, Sundara (GE Infra, Energy)
0 siblings, 0 replies; 3+ messages in thread
From: Vardhan, Sundara (GE Infra, Energy) @ 2010-02-10 17:45 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: gcc-help
Hi Ian
I forgot to mention that I had used AIX as and AIX ld when compiling the
gcc on AIX. Perhaps the as does not understand the hidden symbols that
are to be hidden. I plan to give a try with GNU as and see it matters.
I think using GNU as on AIX causes some issues.
I will try that.
With Regards
Vardhan
-----Original Message-----
From: Ian Lance Taylor [mailto:iant@google.com]
Sent: Monday, February 08, 2010 7:25 PM
To: Vardhan, Sundara (GE Infra, Energy)
Cc: gcc-help@gcc.gnu.org
Subject: Re: Duplicate Symbol
"Vardhan, Sundara (GE Infra, Energy)" <sundara.vardhan@ge.com> writes:
> Compiling using GCC 4.4.3 and linking using AIX ld, I get some
> duplicate symbol warnings. Upon debugging further I see that they are
> defined in libgcc_s.a and also in libgcc.a.
> Should we have both of these library directories?
It is normal to have both, yes. The situation on AIX is uncommon.
Normally linking against -lgcc_s and -lgcc is fine, and is done because
there are a few objects which are put in -lgcc but not in -lgcc_s. I'm
not sure how this is supposed to work on AIX.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-10 17:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06 16:05 Duplicate Symbol Vardhan, Sundara (GE Infra, Energy)
2010-02-09 0:29 ` Ian Lance Taylor
2010-02-10 17:45 ` Vardhan, Sundara (GE Infra, Energy)
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).