[Bug bootstrap/17834] New: Built libgcc_s.so is not used in bootstrap

gcc-bugzilla at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 5 04:20:00 GMT 2004


make bootstrap does not take measures (ie: setting LD_LIBRARY_PATH) to
ensure that programs built with an intermediate stage compiler are
executed so that they dynamically link against that stage's
"libgcc_s.so.1".  Instead, they link against whatever was already
installed in the system.

I'm upgrading from gcc 2.95.3 -- hence my system does not have a
pre-existing "libgcc_s.so.1".  Thus, (absent workarounds), compilation
halts in stage2 because the "genmodes" utility was linked against the stage1
libgcc_s.so.1, and ld.so cannot find this shared library.

Environment:
System: Linux brevelan 2.0.40 #47 Tue Sep 7 01:49:18 PDT 2004 i586 unknown unknown GNU/Linux

host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ../gcc-3.4.2/configure --enable-languages=c

How-To-Repeat:
Attempt to bootstrap the compiler on a system that has no pre-existing
libgcc_s.so.1.  (ie: a system where everything was built against an old
gcc...)
------- Additional Comments From michael at talamasca dot ocis dot net  2004-10-05 04:20 -------
Fix:
It's possible to build GCC by manually copying libgcc_s.so from a
non-bootstrap build to /lib as libgcc_so.1 before doing the real compile.

However this still means that any bug in the generation of libgcc_so.1
will not be caught by the stage2/3 build and comparision.

-- 
           Summary: Built libgcc_s.so is not used in bootstrap
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael at talamasca dot ocis dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i586-pc-linux-gnu
  GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu


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



More information about the Gcc-bugs mailing list