https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684
--- Comment #15 from AlexK <alexei_sylver1 at mail dot ru> --- I have attached all patches I have made to several Makefile.in in different folders (I created them with `diff` tool) after that I made building directory: installdir=/tools/gcc-12.2.0 install -v -d mybuild cd mybuild ../configure --prefix="$installdir" --without-build-config LD=ld --enable-libssp --enable-bootstrap --enable-lto --with-isl=/usr/local --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-system-zlib --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gcov --enable-languages=c,c++,fortran,objc,obj-c++,jit,go --enable-host-shared --disable-multilib --enable-shared a few changes to Makefile: sed -i 's/^\(@endif bfd\)$/#\1/' Makefile sed -i 's/^\(@endif opcodes\)$/#\1/' Makefile # !!! https://stackru.com/questions/63879492/bez-sbrosa-kompilyatsiya-gcc-na-crostini-zavershaetsya-s-oshibkoj-s-neizvestnoj unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE LD_LIBRARY_PATH make .... stage1 was successfully finished