I use following code
I git clone gcc-13.2.0 and run contrib/download_prerequisites
./configure --prefix=$(pwd)/dist --disable-multilib --enable-libstdcxx-backtrace=yes
make -j$(nproc)
it raise err:
Makefile:1087: recipe for target 'all' failed
make: *** [all] Error 2
I find the Makefile:1087 is:
all:
[ -f stage_final ] || echo stage3 > stage_final # here is Makefile:1087
@r=`${PWD_COMMAND}`; export r;
s=`cd $(srcdir); ${PWD_COMMAND}`; export s;
$(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
@: $(MAKE); $(unstage)
+@r=`${PWD_COMMAND}`; export r;
s=`cd $(srcdir); ${PWD_COMMAND}`; export s;
if [ -f stage_last ]; then
TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)";
$(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target;
else
$(MAKE) $(RECURSE_FLAGS_TO_PASS)
$(PGO_BUILD_GEN_FLAGS_TO_PASS) all-host all-target
;
fi
&& :
How to make gcc build pass