This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17348] New: Can't link 64-bit executable on Solaris 8


Using g++ 3.3.1 (same results with 3.3.4) and binutils 2.14:

Configured with: ../gcc-3.3.1/configure --prefix=/vol/gnu/gcc-3.3.1
--enable-shared --enable-threads --enable-cpp --enable-languages=c++
--with-gnu-as --with-as=/vol/gnu/gcc-3.3.1/bin/as --with-gnu-ld
--with-ld=/vol/gnu/gcc-3.3.1/bin/ld --host=sparc-sun-solaris2.8
Thread model: posix
gcc version 3.3.1

we get many errors like the following when trying to  link an executable (all
libraries and .o files have been built 64-bit (-m64 option): 

/vol/gnu/gcc-3.3.1/bin/g++ -m64 -o /vobs/toe/local/bin/sun5g/toe
sun5g/VersionInfo.o sun5g/toe.o /vobs/toe/src/lib/*/sun5g/*.o
/vobs/is_foundations/snacc/lib/sun5g/obj/*.o
/vobs/is_foundations/vendor/zregx/zregx-2.1a/objs/*.o  -O2 -Xlinker -E -lpthread
-lposix4 -liberty -ldl -lnsl -lsocket -lstdc++ -R/usr/local/lib/gcc-3.3.1/sparcv9
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x128):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:41:
relocation truncated to fit: R_SPARC_DISP32 .gnu.linkonce.t._ZN9TOEStringD1Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x148):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:42:
relocation truncated to fit: R_SPARC_DISP32
.gnu.linkonce.t._ZN4xstr7xstringINS_12var_char_bufILm32EcSt11char_traitsIcESaIcEEEED2Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x168):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:35:
relocation truncated to fit: R_SPARC_DISP32 .gnu.linkonce.t._ZN9TOEStringD0Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x188):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:36:
relocation truncated to fit: R_SPARC_DISP32
.gnu.linkonce.t._ZN4xstr12var_char_bufILm32EcSt11char_traitsIcESaIcEED2Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x1a8):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:36:
relocation truncated to fit: R_SPARC_DISP32
.gnu.linkonce.t._ZN4xstr12var_char_bufILm32EcSt11char_traitsIcESaIcEE17release_resourcesEv
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x1c8):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:36:
relocation truncated to fit: R_SPARC_DISP32
.gnu.linkonce.t._ZN4xstr7xstringINS_12var_char_bufILm32EcSt11char_traitsIcESaIcEEEED1Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x1e8):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:37:
relocation truncated to fit: R_SPARC_DISP32
.gnu.linkonce.t._ZN4xstr7xstringINS_12var_char_bufILm32EcSt11char_traitsIcESaIcEEEED0Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x208):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:40:
relocation truncated to fit: R_SPARC_DISP32
.gnu.linkonce.t._ZN4xstr12var_char_bufILm32EcSt11char_traitsIcESaIcEED1Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacet.o(.eh_frame+0x228):/vobs/toe/src/lib/cfg/TOECfgFacet.cc:40:
relocation truncated to fit: R_SPARC_DISP32
.gnu.linkonce.t._ZN4xstr12var_char_bufILm32EcSt11char_traitsIcESaIcEED0Ev
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacility.o(.eh_frame+0x308):/vol/gnu/gcc-3.3.1/include/c++/3.3.1/ext/stl_hashtable.h:898:
relocation truncated to fit: R_SPARC_DISP32 .gnu.linkonce.t._ZN9TOEStringC1ERKSs
/vobs/toe/src/lib/cfg/sun5g/TOECfgFacility.o(.eh_frame+0x328):/vobs/toe/src/lib/cfg/TOECfgFacility.cc:52:
relocation truncated to fit: R_SPARC_DISP32 .gnu.linkonce.t._ZN9TOEStringD1Ev
...

-- 
           Summary: Can't link 64-bit executable on Solaris 8
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: work at paul dot dubuc dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]