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

             Bug #: 54283
           Summary: [4.8 regression] build tools don't run after
                    cxx-conversion merge
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: r...@gcc.gnu.org
                CC: cr...@gcc.gnu.org, dnovi...@gcc.gnu.org
              Host: *-*-solaris2.*
            Target: *-*-solaris2.*
             Build: *-*-solaris2.*


Since the merge of the cxx-conversion branch, Solaris bootstrap fails for me.
In stage 1, the build tools fail to run, e.g.

build/genmddeps /vol/gcc/src/hg/trunk/local/gcc/config/i386/i386.md >
tmp-mddeps
ld.so.1: genmddeps: fatal: libstdc++.so.6: open failed: No such file or
directory
make[3]: *** [s-mddeps] Killed
make[3]: *** Waiting for unfinished jobs....

I'm using a self-built gcc 4.4.2 as bootstrap compiler, installed into
/vol/gcc-4.4.  In order to assure that the libstdc++.so.6 included there is
found,
I've so far been configuring with

--with-host-libstdcxx=\'-L/vol/gcc-4.4/lib -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
-lm\' --with-boot-ldflags=\'-static-libstdc++' -static-libgcc
-L/vol/gcc-4.4/lib\'

This is not enough after the conversion since the build tools don't use either
$BOOT_LDFLAGS or $HOST_LIBS.

The attached patch allowed the bootstrap to finish, but is obviously wrong
as-is
since it doesn't correctly distinguish between build and host tools.  Having
never run a canadian cross myself, I'm not sure what the right approach is.

The first part (using $CC as linker instead of $CXX_FOR_BUILD) is necessary to
avoid linking with g++ which links with -lstdc++ on its own.

  Rainer

Reply via email to