public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "work at paul dot dubuc dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/17348] New: Can't link 64-bit executable on Solaris 8
Date: Tue, 07 Sep 2004 15:19:00 -0000	[thread overview]
Message-ID: <20040907151907.17348.work@paul.dubuc.org> (raw)

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


             reply	other threads:[~2004-09-07 15:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-07 15:19 work at paul dot dubuc dot org [this message]
2004-09-07 15:21 ` [Bug c++/17348] " work at paul dot dubuc dot org
2004-09-07 16:51 ` [Bug target/17348] " pinskia at gcc dot gnu dot org
2004-09-09 18:37 ` work at paul dot dubuc dot org
2004-09-10  5:11 ` ebotcazou at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040907151907.17348.work@paul.dubuc.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).