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.


-- 
           Summary: fails to build a cross-compiler in-tree
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: build, patch
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmh at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40191

Reply via email to