https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67792
Bug ID: 67792 Summary: GCC 5.2 - make clean fails in libgcc Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: gary at intrepid dot com Target Milestone: --- When building with both the GCC 5.2 release and the latest gcc-5-branch, after a successful build and bootstrap, a 'make clean' at the top level fails as follows. make[1]: Leaving directory `/eng/upc/dev/gary/gcc-5-x/save/x86_64-unknown-linux -gnu/libstdc++-v3' make[1]: -B/eng/upc/dev/gary/gcc-5-x/rls/x86_64-unknown-linux-gnu/bin/: Command not found make[1]: Entering directory `/eng/upc/dev/gary/gcc-5-x/save/x86_64-unknown-linu x-gnu/libgcc' make[1]: -B/eng/upc/dev/gary/gcc-5-x/rls/x86_64-unknown-linux-gnu/bin/: Command not found /bin/sh: line 0: test: !=: unary operator expected rm -f libgcc_tm.h libgcc.map Makefile:172: *** Recursive variable `AR_FOR_TARGET' references itself (eventua lly). Stop. Above, the compiler has not yet been installed under 'rls/...', and therefore is not found. It wasn't clear to me why AR_FOR_TARGET is recursive: 170 # Flags to pass to recursive makes. 171 172 AR_FOR_TARGET = $(AR) Top-level configure: /eng/upc/dev/gary/gcc-5-x/src/configure CFLAGS='-g3 -O3' CXXFLAGS='-g3 -O3' CC= /usr/bin/gcc CXX=/usr/bin/g++ --prefix=/eng/upc/dev/gary/gcc-5-x/rls --enable-l anguages=all