From: Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx> Subject: Re: Problem building older versions of gcc Date: Sat, 12 Jun 2021 16:06:04 +0800 > On Sat, 2021-06-12 at 16:37 +0900, Kazuyoshi Furutaka via Gcc-help > wrote: >> Any suggestions? >> >> Kazuyoshi >> >> From: Kazuyoshi Furutaka via Gcc-help <gcc-help@xxxxxxxxxxx> >> Subject: Problem building older versions of gcc >> Date: Fri, 04 Jun 2021 22:30:51 +0900 (JST) >> > It seems to me that at some point of the build, for some >> >> > reasons the already installed libstdc++ which contain >> >> > GLIBCXX_3.4.29 was referenced or used in the currently >> >> > building system... > > cc1plus shouldn't link to libstdc++.so. Instead it links to static > library libstdc++.a (at least by default). Yes, I think so. > Did you override --with-stage1-libs in configure command line? No, absolutely... Kazuyoshi From: Kazuyoshi Furutaka via Gcc-help <gcc-help@xxxxxxxxxxx> Subject: Problem building older versions of gcc Date: Fri, 04 Jun 2021 22:30:51 +0900 (JST) > I downloaded gcc-10.3.0.tar.xz and expand it, and then > did > `../gcc-10.3.0/configure --prefix=/usr/local/gcc/10.3.0` > from another directory, and `make`. -- Kazuyoshi Furutaka furutaka@xxxxxxxxxxxxxxxx