[Bug libstdc++/100057] There are no freestanding C++

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 30 10:56:52 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100057

--- Comment #39 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #38)
> (In reply to Nicolas Noble from comment #33)
> > At the moment, I don't understand if it's possible to spawn a cross compiler
> > with a freestanding libc and libstdc++.
> 
> A GCC bootstrap needs a hosted libstdc++, because it's built with C++. If
> you want to disable hosted libstdc++ you need to also build with
> --disable-bootstrap.

Actually I think the problem in this case comes from the libtool setup which
doesn't respect GCC_NO_EXECUTABLES macro used for cross compilers. You might be
able to get past that error by adding --disable-dlopen to your configure
command.


More information about the Gcc-bugs mailing list