public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bfriesen at simple dot dallas dot tx dot us" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/16507] New: gcc_s not found when linking 64-bit C++
Date: Tue, 13 Jul 2004 00:36:00 -0000	[thread overview]
Message-ID: <20040713003639.16507.bfriesen@simple.dallas.tx.us> (raw)

Linking C++ programs fails due to either the wrong (32-bit) libgcc_s.so.1 being
installed in the compiler's default directory, or the linker search path not
being specified correctly. I am not sure what the intended operation is.

Configured with
/home/bfriesen/src/gnu/gcc-3.4.1/configure  --prefix=/usr/local/sparc64
--program-suffix=-3.4.1 --enable-shared --enable-threads
--enable-version-specific-runtime-libs --enable-languages=c,c++ --disable-nls
--with-cpu=ultrasparc sparc64-sun-solaris2.9

Note that default libgcc_s.so.1 is 32 bit, not 64-bit:
% file /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/libgcc_s.so.1
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/libgcc_s.so.1:    ELF 32-bit MSB
dynamic lib SPARC32PLUS Version 1, V8+ Required, UltraSPARC1 Extensions
Required, dynamically linked, not stripped
% file /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/sparcv9/libgcc_s.so.1 
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/sparcv9/libgcc_s.so.1:    ELF
64-bit MSB dynamic lib SPARCV9 Version 1, UltraSPARC1 Extensions Required,
dynamically linked, not stripped
Note that linker search path does not look in directory containing a 64-bit
libgcc_s.so.1 (there is one in the sparcv9 subdirectory):

 /usr/local/sparc64/libexec/gcc/sparc64-sun-solaris2.9/3.4.1/collect2 -V -Y
P,/usr/lib/sparcv9 -Qy -o exceptions
/usr/local/sparc64/lib/gcc/sparc64-sun-solaris2.9/3.4.1/crt1.o
/usr/local/sparc64/lib/gcc/sparc64-sun-solaris2.9/3.4.1/crti.o
/usr/ccs/lib/sparcv9/values-Xa.o
/usr/local/sparc64/lib/gcc/sparc64-sun-solaris2.9/3.4.1/crtbegin.o
-L/usr/local/sparc64/lib/gcc/sparc64-sun-solaris2.9/3.4.1 -L/usr/ccs/bin/sparcv9
-L/usr/ccs/bin -L/usr/ccs/lib/sparcv9 -L/usr/ccs/lib
-L/usr/local/sparc64/lib/gcc/sparc64-sun-solaris2.9/3.4.1/../../..
-L/lib/sparcv9 -L/usr/lib/sparcv9 /var/tmp//ccVEFkEC.o -lstdc++ -lm -lgcc_s
-lgcc -lc -lgcc_s -lgcc -lc
/usr/local/sparc64/lib/gcc/sparc64-sun-solaris2.9/3.4.1/crtend.o
/usr/local/sparc64/lib/gcc/sparc64-sun-solaris2.9/3.4.1/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.381
ld: fatal: library -lgcc_s: not found
ld: fatal: library -lgcc_s: not found
ld: fatal: File processing errors. No output written to exceptions
collect2: ld returned 1 exit status

-- 
           Summary: gcc_s not found when linking 64-bit C++
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bfriesen at simple dot dallas dot tx dot us
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc64-sun-solaris2.9
  GCC host triplet: sparc64-sun-solaris2.9
GCC target triplet: sparc64-sun-solaris2.9


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


             reply	other threads:[~2004-07-13  0:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-13  0:36 bfriesen at simple dot dallas dot tx dot us [this message]
2004-07-13  0:40 ` [Bug c++/16507] " pinskia at gcc dot gnu dot org
2004-07-13  0:42 ` bfriesen at simple dot dallas dot tx dot us
2004-07-13  0:49 ` pinskia at gcc dot gnu dot org
2004-07-13  0:58 ` bfriesen at simple dot dallas dot tx dot us
2004-07-13  6:53 ` ebotcazou at gcc dot gnu dot org
2004-07-13 13:22 ` bfriesen at simple dot dallas dot tx dot us
2004-07-13 13:51 ` ebotcazou at gcc dot gnu dot org
2004-07-13 14:15 ` bfriesen at simple dot dallas dot tx dot us
2004-07-13 14:38 ` ebotcazou at gcc dot gnu dot org
2004-07-15  2:18 ` bfriesen at simple dot dallas dot tx dot us
2004-07-15  4:17 ` bfriesen at simple dot dallas dot tx dot us
2004-07-15  5:21 ` ebotcazou at gcc dot gnu dot org
2004-07-15  5:23 ` ebotcazou at gcc dot gnu dot org
2004-07-15 13:47 ` bfriesen at simple dot dallas dot tx dot us
2004-07-18 10:04 ` [Bug other/16507] " 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=20040713003639.16507.bfriesen@simple.dallas.tx.us \
    --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).