mingw32-make problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

mingw32-make problem

Yuri Shtil-5

Hi,

 

I face an unusual behavior of make. Here is the makefile that isolates the problem:

 

----------Start---------

all:

            rm -rf bla

 

--- Finish ------------------

 

As you can see nothing special, very simple.

 

However, the make command (which should never fail) fails when invoked from a directory with a long path.

 

Here is the output of make –d (the 99% of the top removed for clarity):

 

##### Case 1, invoked from a directory with a LONG path:

 

c:/viewstore/yshtil_view_snap/rcm/HMPbuild/BuildforgeEnv/utils/x86-win32/make -f mkf -d

GNU Make 3.80

Copyright (C) 2002  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

……. Skipped …..

 

Must remake target `all'.

rm -rf bla

CreateProcess(c:\viewstore\yshtil_view_snap\rcm\HMPbuild\BuildforgeEnv\utils\x86-win32\rm.exe,rm -rf bla,...)

Putting child 0x00a9b8d0 (all) PID 11132680 on the chain.

Live child 0x00a9b8d0 (all) PID 11132680

Reaping losing child 0x00a9b8d0 PID 11132680

make: *** [all] Error 1

Removing child 0x00a9b8d0 PID 11132680 from chain.

#### End case 1

 

Case 2.

 

c:/viewstore/yshtil_view_snap/rcm/HMPbuild/BuildforgeEnv/utils/make -f mkf -d

GNU Make 3.80

Copyright (C) 2002  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

find_and_set_shell path search set default_shell = C:/cygwin/bin/sh.exe

Reading makefiles...

Reading makefile `mkf'...

…..  Skipped …..

Must remake target `all'.

rm -rf bla

CreateProcess(C:\cygwin\bin\rm.exe,rm -rf bla,...)

Putting child 0x00a9b890 (all) PID 11132616 on the chain.

Live child 0x00a9b890 (all) PID 11132616

Reaping winning child 0x00a9b890 PID 11132616

Removing child 0x00a9b890 PID 11132616 from chain.

Successfully remade target file `all'.

 

## End Case 2

 

The platform this was observed is Windows NT professional and Windows 2000 Professional.

 

Any clues anyone?

 

 

------------------------------------------------------------------------------------

Yuri Shtil

 

Reply | Threaded
Open this post in threaded view
|

Re: mingw32-make problem

Luke Dunstan
 
Look more closely at the CreateProcess() lines: the failed case is using a different (non-Cygwin) rm.exe, so the problem is probably there, not in mingw32-make.
 
Luke
 
----- Original Message -----
Sent: Friday, June 17, 2005 1:34 AM
Subject: [Mingw-users] mingw32-make problem

Hi,

 

I face an unusual behavior of make. Here is the makefile that isolates the problem:

 

----------Start---------

all:

            rm -rf bla

 

--- Finish ------------------

 

As you can see nothing special, very simple.

 

However, the make command (which should never fail) fails when invoked from a directory with a long path.

 

Here is the output of make –d (the 99% of the top removed for clarity):

 

##### Case 1, invoked from a directory with a LONG path:

 

c:/viewstore/yshtil_view_snap/rcm/HMPbuild/BuildforgeEnv/utils/x86-win32/make -f mkf -d

GNU Make 3.80

Copyright (C) 2002  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

……. Skipped …..

 

Must remake target `all'.

rm -rf bla

CreateProcess(c:\viewstore\yshtil_view_snap\rcm\HMPbuild\BuildforgeEnv\utils\x86-win32\rm.exe,rm -rf bla,...)

Putting child 0x00a9b8d0 (all) PID 11132680 on the chain.

Live child 0x00a9b8d0 (all) PID 11132680

Reaping losing child 0x00a9b8d0 PID 11132680

make: *** [all] Error 1

Removing child 0x00a9b8d0 PID 11132680 from chain.

#### End case 1

 

Case 2.

 

c:/viewstore/yshtil_view_snap/rcm/HMPbuild/BuildforgeEnv/utils/make -f mkf -d

GNU Make 3.80

Copyright (C) 2002  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

find_and_set_shell path search set default_shell = C:/cygwin/bin/sh.exe

Reading makefiles...

Reading makefile `mkf'...

…..  Skipped …..

Must remake target `all'.

rm -rf bla

CreateProcess(C:\cygwin\bin\rm.exe,rm -rf bla,...)

Putting child 0x00a9b890 (all) PID 11132616 on the chain.

Live child 0x00a9b890 (all) PID 11132616

Reaping winning child 0x00a9b890 PID 11132616

Removing child 0x00a9b890 PID 11132616 from chain.

Successfully remade target file `all'.

 

## End Case 2

 

The platform this was observed is Windows NT professional and Windows 2000 Professional.

 

Any clues anyone?

 

 

------------------------------------------------------------------------------------

Yuri Shtil