I found this when building a i586-mingw32 cross-compiler directly in srcdir. Build fails with: make[2]: Entering directory `/tmp/trunk/i586-mingw32msvc/libgcc' Makefile:143: ../.././gcc/libgcc.mvars: No such file or directory make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'. Stop. This happens because ${host_subdir} gets the wrong path (fallbacks to "."). The check in acx.m4 doesn't take into account that ${host_noncanonical} changes its meaning when we switched from gcc/ to libgcc/. Patch attached.
I don't know that many folks who build in the source directory :).
Created attachment 17889 [details] patch 2009-05-18 Robert Millan <rmh.gcc@aybabtu.com> * acx.m4: Fix ${host_subdir} initialization for libgcc.
ping
(In reply to comment #3) > ping Could you please post your patch to gcc's patches ML. So it has more chance to get reviewed. In general I wouldn't recomment to build gcc in source-tree. AFAIU it is even mentioned that this isn't anymore supported (but well, here I could be wrong). Kai