GCC Build fails to find installed Glibc at Stage 2 of bootstrapping

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

 



Hello everyone.

I'm trying to build a native GCC from source on Debian, but I encounter a
problem at the last step:
At the configuring step of *stage 2* bootstrapping, GCC *can't find the
glibc headers / libs* that I have previously compiled and installed
anymore...

configure:6847: result: no
configure:6863: checking for uintmax_t
configure:6863:  /home/rubisetcie/apps/gcc-build/./prev-gcc/xg++
-B/home/rubisetcie/apps/gcc-build/./prev-gcc/
-B/usr/local/custom-gcc/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/rubisetcie/apps/gcc-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/rubisetcie/apps/gcc-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -I/home/rubisetcie/apps/gcc-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
 -I/home/rubisetcie/apps/gcc-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
 -I/home/rubisetcie/apps/gcc-13.2.0/libstdc++-v3/libsupc++
-L/home/rubisetcie/apps/gcc-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/rubisetcie/apps/gcc-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-c -g -O2 -fno-checking -gtoggle  conftest.cpp >&5
conftest.cpp:23:10: fatal error: stdio.h: No such file or directory
   23 | #include <stdio.h>

Here are my configure commands for the whole toolchain I'm trying to build:

   - *Binutils:* ./configure --prefix=/usr/local/custom-gcc
   --disable-multilib --disable-gprofng --enable-lto --enable-libssp
   --enable-ld=yes --enable-gold=yes --with-system-zlib
   - *GCC (First pass):* ./configure --prefix=/tmp/gcc-first-stage
   --disable-multilib --disable-nls --disable-headers --disable-threads
   --enable-version-specific-runtime-libs --enable-languages=c,c++,lto
   --with-newlib --with-ld=/usr/local/custom-gcc/bin/ld
   --with-as=/usr/local/custom-gcc/bin/as
   - *Glibc:* ./configure --prefix=/usr/local/custom-gcc
   --includedir="\${exec_prefix}/x86_64-pc-linux-gnu/include"
   --libdir="\${exec_prefix}/x86_64-pc-linux-gnu/lib" --without-selinux
   --with-headers=$HOME/apps/linux-headers/include
   CC=/tmp/gcc-first-stage/bin/gcc CXX=/tmp/gcc-first-stage/bin/g++
   - *GCC (Second pass):* ./configure --prefix=/usr/local/custom-gcc
   --disable-multilib --enable-version-specific-runtime-libs
   --enable-languages=c,c++,lto --enable-threads=posix --enable-lto
   --enable-libssp --enable-libgomp --with-ld=/usr/local/custom-gcc/bin/ld
   --with-as=/usr/local/custom-gcc/bin/as
   --with-native-system-header-dir=$HOME/apps/linux-headers/include
   --with-system-zlib --with-dwarf2

It is during the build of "GCC (Second pass)", at bootstrap stage 2, that
it fails to find the installed glibc.
Could you please tell me if I'm doing something wrong?

Thank you very much in advance,
Rubisetcie



[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