* GCC Build fails to find installed Glibc at Stage 2 of bootstrapping
@ 2024-05-22 8:12 rubisetcie
0 siblings, 0 replies; only message in thread
From: rubisetcie @ 2024-05-22 8:12 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 2746 bytes --]
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-22 8:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-22 8:12 GCC Build fails to find installed Glibc at Stage 2 of bootstrapping rubisetcie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).