[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mingw make problems
From: |
William A. Hoffman |
Subject: |
Re: mingw make problems |
Date: |
Thu, 17 Aug 2006 16:31:21 -0400 |
At 04:22 PM 8/17/2006, Bill Hoffman wrote:
>As requested by Eli, I am posting the problems I am having with mingw-make
>from a cygwin command line.
>
>
>I narrowed down the major problem with mingw make and my makefiles.
>Looks like a process launching issue. If the files are double quoted
>and passed to a full path command it passes both files as one argument
>to the process. I ran make -d and post the CreateProcess calls being
>made. This is running mingw-make from a cygwin prompt.
>
>
>---- begin makefile ------
>
>#broken
>all:
> c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET\ 2003/Vc7/bin/cl.exe
> "a.c" "b.c"
>
>#CreateProcess(C:\cygwin\bin\sh.exe,C:/cygwin/bin/sh.exe -c "c:/Program\
>Files/Microsoft\ Visual\ Studio\ .NET\ 2003/Vc7/bin/cl.exe \"a.c\"
>\"b.c\"",...)
>
>
># broken
>allgcc:
> c:/cygwin/bin/gcc.exe "a.c" "b.c"
>#c:/cygwin/bin/gcc.exe "a.c" "b.c"
>#CreateProcess(C:\cygwin\bin\sh.exe,C:/cygwin/bin/sh.exe -c
>"c:/cygwin/bin/gcc.exe \"a.c\" \"b.c\"",...)
>
>
># works
>all2:
> cl.exe "a.c" "b.c"
>
>#cl.exe "a.c" "b.c"
>#CreateProcess(C:\cygwin\bin\sh.exe,C:/cygwin/bin/sh.exe -c "cl.exe \"a.c\"
>\"b.c\"",...)
>
>---- end makefile------
>
>>From a msys prompt it is broken differently:
>
>CreateProcess(C:\msys\1.0\bin\sh.exe,C:/msys/1.0/bin/sh.exe -c "c:/Program\
>Files/Microsoft\ Visual\ Studio\ .NET\ 2003/Vc7/bin/cl.exe \"a.c\"
>\"b.c\"",...)
>Putting child 0x00a73d28 (all) PID 4015928 on the chain.
>Live child 0x00a73d28 (all) PID 4015928
>/usr/bin/sh: -c: line 3: syntax error: unexpected end of file
From the cygwin shell the error is:
c:/cygwin/bin/gcc.exe "a.c" "b.c"
gcc: a.c b.c: No such file or directory
gcc: no input files
c:\hoffman\My Builds\CMakeDev\Tests\COnly\b\make.exe: *** [allgcc] Error 1
It is looking for a file called "a.c b.c".
-Bill
- mingw make problems, Bill Hoffman, 2006/08/17
- Re: mingw make problems,
William A. Hoffman <=
- Re: mingw make problems, Christopher Faylor, 2006/08/17
- Re: mingw make problems, Bill Hoffman, 2006/08/17
- Re: mingw make problems, Eli Zaretskii, 2006/08/17
- Re: mingw make problems, Christopher Faylor, 2006/08/17
- Re: mingw make problem, William A. Hoffman, 2006/08/17
- Re: mingw make problem, Eli Zaretskii, 2006/08/18
- Re: mingw make problem, William A. Hoffman, 2006/08/18
- Re: mingw make problem, William A. Hoffman, 2006/08/18
- Re: mingw make problem, Eli Zaretskii, 2006/08/18