This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
how to use the uninstalled C & C++ compilers?
- From: Matthias Klose <doko at debian dot org>
- To: gcc Development <gcc at gcc dot gnu dot org>
- Date: Tue, 31 Mar 2015 13:09:21 +0200
- Subject: how to use the uninstalled C & C++ compilers?
- Authentication-results: sourceware.org; auth=none
In the past (at least it worked for me in 4.9) it was possible to use the
uninstalled C & C++ compilers to build another compiler, using the just built
compilers. Useful if you want to build e.g. libgccjit in a second step without
bootstrapping again. This doesn't seem to work anymore with 5. At least I can't
get it working by removing the system c++ and g++ after the build of the first
compiler and then building as
CC=$(builddir)/gcc/xgcc -B$(builddir)/gcc/
CXX=$(builddir)/gcc/xg++ -B$(builddir)/gcc/ \
-I$(builddir)/$(TARGET_ALIAS)/libstdc++-v3/include \
-I$(builddir)/$(TARGET_ALIAS)/libstdc++-v3/include/$(TARGET_ALIAS)
and the next build (without bootstrapping) with these values. Did somebody got
this working? Sometimes it looks like gcc is built using the C compiler,
sometimes it doesn't find the "new" header, and probably won't find the
libstdc++ library later. Not setting CXX seems to silently use the g++ system
compiler if it exists.
Matthias