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

            Bug ID: 120726
           Summary: make clean (clean-stage1-target-libgcc): Recursive
                    variable 'AR' references itself (eventually).  Stop
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

Error on make clean:

…
rm -f *.lo
true "AR_FLAGS=" "CC_FOR_BUILD=" "CC_FOR_TARGET=" "CFLAGS=" "CXXFLAGS="
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "EXPECT=" "INSTALL=/usr/bin/install
-c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install
-c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS="
"LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000
--split-size=5000000  " "SHELL=/bin/sh" "RUNTESTFLAGS="
"exec_prefix=/usr/local" "infodir=/usr/local/share/info"
"libdir=/usr/local/lib" "includedir=/usr/local/include" "prefix=/usr/local"
"tooldir=" "gxx_include_dir=/usr/local/include/c++/15.1.0" "AR=" "AS=/./gcc/as"
"LD=/./gcc/collect-ld" "RANLIB=" "NM=/./gcc/nm" "NM_FOR_BUILD="
"NM_FOR_TARGET=" "DESTDIR=" "WERROR=" DO=mostlyclean multi-clean # make
make[2]: Leaving directory '/src/llvm/gcc1510/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: Leaving directory '/src/llvm/gcc1510/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: Entering directory '/src/llvm/gcc1510/x86_64-pc-linux-gnu/libgcc'
make[1]: -B/usr/local/x86_64-pc-linux-gnu/bin/: No such file or directory
make[1]: -B/usr/local/x86_64-pc-linux-gnu/bin/: No such file or directory
rm -f libgcc_tm.h libgcc.map
Makefile:188: *** Recursive variable 'AR' references itself (eventually). 
Stop.
make[1]: Leaving directory '/src/llvm/gcc1510/x86_64-pc-linux-gnu/libgcc'
make: *** [Makefile:19948: clean-stage1-target-libgcc] Error 2

Reply via email to