https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103866
Nicolas Noble <pi...@nobis-crew.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pi...@nobis-crew.org --- Comment #6 from Nicolas Noble <pi...@nobis-crew.org> --- While a bit tangential from the narrow topic of this bug, it may be noteworthy that I just tried using the --with-newlib kludge here, and compilation still fails, with something new: checking for the value of EOF... configure: error: computing EOF failed Checking the logs, this fails because it can't find stdio.h. Meaning the --with-newlib kludge isn't an actually valid method towards actual bare metal, and needs something a bit more fleshed out? My compilation lines (from a clean ubuntu:latest docker image) apt update apt -y install wget build-essential libgmp-dev libmpfr-dev libmpc-dev wget https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.gz tar xvfz binutils-2.37.tar.gz cd binutils-2.37 ./configure --target=mipsel-none-elf --disable-multilib --disable-nls --disable-werror make -j8 make install-strip cd .. wget https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.gz tar xvfz gcc-11.2.0.tar.gz cd gcc-11.2.0 mkdir build cd build ../configure --target=mipsel-none-elf --without-isl --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libstdcxx-pch --disable-libgomp --disable-werror --without-headers --with-as=/usr/local/bin/mipsel-none-elf-as --with-ld=/usr/local/bin/mipsel-none-elf-ld --enable-languages=c,c++ --with-newlib --disable-hosted-libstdcxx --disable-bootstrap make all-gcc -j8 make install-strip-gcc make all-target-libgcc -j8 make install-strip-target-libgcc make all-target-libstdc++-v3