Duplicate Symbol

Vardhan, Sundara (GE Infra, Energy) sundara.vardhan@ge.com
Sat Feb 6 16:05:00 GMT 2010


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



More information about the Gcc-help mailing list