On Tue, 2023-02-21 at 17:56 +0100, Salvatore Filippone via Gcc-help wrote: > --disable-libsanitizer works for me on GCC 11.3.0, thanks. > > Now, on bootstrapping 10.4.0 I get a different error. Suggestions? > Thanks Install the static library libstdc++.a via the package manager of your distro. GCC building system normally links the newly built GCC to libstdc++.a. But if there is no libstdc++.a available, it will link to libstdc++.so. The bootstrapping process will then create another libstdc++.so and attempt to use it, which in your case is less capable than the system one and causing a failure like this. > > ------------------------------------------------- > /data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/./gcc/xgcc -shared-libgcc > -B/data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/./gcc -nostdinc++ > -L/data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/x86_64-pc-linux- > gnu/32/libstdc++-v3/src > -L/data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/x86_64-pc-linux- > gnu/32/libstdc++-v3/src/.libs > -L/data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/x86_64-pc-linux- > gnu/32/libstdc++-v3/libsupc++/.libs > -B/opt/gnu/10.4.0/x86_64-pc-linux-gnu/bin/ > -B/opt/gnu/10.4.0/x86_64-pc-linux-gnu/lib/ -isystem > /opt/gnu/10.4.0/x86_64-pc-linux-gnu/include -isystem > /opt/gnu/10.4.0/x86_64-pc-linux-gnu/sys-include -fno-checking -m32 -x > c++-header -nostdinc++ -g -O2 -D_GNU_SOURCE -m32 > -I/data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/x86_64-pc-linux- > gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu > -I/data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/x86_64-pc-linux- > gnu/32/libstdc++-v3/include > -I/data/travel/SOFTWARE/GNU/BUILDS/gcc-10.4.0/libstdc++-v3/libsupc++ > -O2 > -g > /data/travel/SOFTWARE/GNU/BUILDS/gcc-10.4.0/libstdc++- > v3/include/precompiled/stdc++.h > -o x86_64-pc-linux-gnu/bits/stdc++.h.gch/O2g.gch > /data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/./gcc/cc1plus: > /data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/x86_64-pc-linux- > gnu/libstdc++-v3/src/.libs/libstdc++.so.6: > version `GLIBCXX_3.4.29' not found (required by > /data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/./gcc/cc1plus) > /data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/./gcc/cc1plus: > /data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/x86_64-pc-linux- > gnu/libstdc++-v3/src/.libs/libstdc++.so.6: > version `GLIBCXX_3.4.29' not found (required by > /data/travel/SOFTWARE/GNU/BUILDS/obj-10.4.0/./gcc/cc1plus) > make[9]: *** [Makefile:1826: > x86_64-pc-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch] Errore 1 -- Xi Ruoyao <xry111@xxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University