Web lists-archives.com

Re: [Mingw-msys] MinGW-4.1.0.exe




Jonathan Blanchard wrote:
> I'm trying to compile gcc under msys.
>
> I'm posting here becaus compiling gcc used to work for me be out of
> the sudden I get some weird problem compiling gcc.
>
> Th problem is as follow. When building it complain about not being
> able to find xgcc.
>
> C;C:\msys\1.0\msys\1.0\gcc-build\gcc\xgcc
> -BC;C:\msys\1.0\msys\1.0\gcc-build\gcc\
> -LC;C:\msys\1.0\msys\1.0\gcc-build\mingw32\winsup\mingw
> -LC;C:\msys\1.0\msys\1.0\gcc-build\mingw32\winsup\w32api\lib -isystem
> C;C:\msys\1.0\msys\1.0\gcc-build\gcc-4.4.0\winsup\mingw\include
> -isystem C;C:\msys\1.0\msys\1.0\gcc-build\gcc-4.4.0\winsup\w32api\include
> -Bc;c:\MinGW\mingw32\bin\ -Bc;c:\MinGW\mingw32\lib\ -isystem
> c;c:\MinGW\mingw32\include -isystem c;c:\MinGW\mingw32\sys-include
> -dumpspecs>  tmp-specs
> /usr/bin/sh: C: command not found
> /usr/bin/sh: C:msys1.0msys1.0gcc-buildgccxgcc: command not found
>
> Obviously something is very wrong here as the path
> C:\msys\1.0\msys\1.0\gcc-build\gcc does not exist and the backslash
> should not be used here I think.
>
>> From the makefile generated by the configure script I found those line.
>
> CC_FOR_TARGET=$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/gcc/xgcc
> -B$$r/$(HOST_SUBDIR)/gcc/ $(FLAGS_FOR_TARGET)
> GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/gcc/xgcc
> -B$$r/$(HOST_SUBDIR)/gcc/ $(FLAGS_FOR_TARGET)
>
> If anyone can tell me what those $$r mean I would be interested. But
> more importantly I do not see why a forward slash is added in front of
> the host subdir. Anyways I do not understand why it used to work and
> it does not work anymore. Btw the same thing append not matter what
> gcc I try to build. Here the configure command.
>
> ./gcc-4.4.0/configure --prefix=/mingw --enable-bootstrap
> --build=mingw32 --program-prefix="" --with-as=/mingw/bin/as.exe
> --with-ld=/mingw/bin/ld.exe --with-gcc --with-gnu-ld --with-gnu-as
> --enable-languages=c,c++,objc,fortran --disable-nls
> --disable-win32-registry --disable-werror --enable-sjlj-exceptions
> --enable-threads=win32 --disable-symvers --disable-libstdcxx-pch
> --enable-version-specific-runtime-libs
> --enable-cxx-flags='-fno-function-sections -fno-data-sections'
> --enable-fully-dynamic-string --enable-libgomp
> --enable-checking=release
>
> If anyone have insight on what is happening I would appreciate it.
>
> Jonathan Blanchard
>

Hi,
looks like MSYS path translation failed.

Try moving the gcc sources to a place like C:\gcc-4.4.0. Then, in 
another directory such as C:\gcc-build, run "../gcc-4.4.0/configure ....".

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys