Re: Problem building older versions of gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 12, 2021 at 3:39 AM Kazuyoshi Furutaka via Gcc-help <
gcc-help@xxxxxxxxxxx> wrote:

> > cc1plus shouldn't link to libstdc++.so.  Instead it links to static
> > library libstdc++.a (at least by default).
>

But it does link with system libraries, and one of them could in turn have
been linked with the system libstdc++ which is newer than the one you are
building.  So you need to find what system library linked into cc1plus
requires the system libstdc++.  You should be able to do that with the ldd
program, e.g. "ldd cc1plus" will show you what libraries are linked in,
then run ldd on each library those use recursively, until you find the one
that needs the newer libstdc++.  Then, depending on exactly which library
that is, either you add a configure option to avoid using it, or you add
the sources into the gcc build tree to build your own version of it, or you
manually build a version of it that you can use with an older gcc.
Possible libraries to look at are gmp, mpc, mpfr, isl, z, m, c, dl.  There
could be others depending on what configure options you used.

Jim



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux