From: John E. / T. <td...@td...> - 2010-12-27 03:05:23
|
On 12/26/2010 6:08 PM, Erik Toussaint wrote: > I would like to build GCC from source, using MinGW/MSYS on Windows. I > have tried many times, but without success. I'll describe the most > recent method I used below, and would be very grateful if anyone could > tell me what it is that I'm doing wrong. *snip* > This fails during the 'make' stage, with the following error: > > E:\Temp\mingw\msys\1.0\mingw\bin\ld.exe: cannot find dllcrt2.o: No > such file or > directory You've omitted a piece of information that's very important in the diagnosis: the command that produced the error, which is right before the error itself. Without seeing the command, my best guess is that the search path ld should be using to resolve that object file isn't being translated to the actual Windows directory path -- I vaguely recall that happening to me before. These days, I make a point of building GCC in "identity" mounts, where the Unixy path ("/mingw") directly corresponds to the underlying Windows path ("C:\mingw"). This shouldn't be strictly necessary, but I suspect there are some gotchas that can be avoided that way. To change your /mingw to an identity mount, move E:\Temp\mingw\msys\1.0\mingw to E:\mingw, and edit your E:\Temp\mingw\msys\1.0\etc\fstab accordingly. Hope that helps, John E. / TDM |