This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

make problems (b18 and mingw32)


Call this Makefile:

--------------------------------------
var = blorp

export
cwd = $(shell pwd)

foo:
	@echo $(var)
	@echo $(cwd)
	@make -f Makefile2 bar
--------------------------------------

and this Makefile2:

--------------------------------------
cwd = $(shell pwd)

bar:
	@echo $(var)
	@echo $(cwd)
--------------------------------------

Now, my path is set up like this:

bash$ which make
make is //D/LOCAL/MINGW32/BIN/make
make is /GNUWIN32/B18/H-I386-CYGWIN32/BIN/make

bash$ /GNUWIN32/B18/H-I386-CYGWIN32/BIN/make --version
GNU Make version 3.75, by Richard Stallman and Roland McGrath.

bash$ make --version
GNU Make version 3.76.1, by Richard Stallman and Roland McGrath.

If I use the b18 version var isn't exported correctly:

bash$ /GNUWIN32/B18/H-I386-CYGWIN32/BIN/make
blorp
//D/John/lanl/foodir

//D/John/lanl/foodir

If I use the newer mingw32 version it is:

bash$ make
blorp
//D/John/lanl/foodir
make[1]: Entering directory `D:/John/lanl/foodir'
blorp
//D/John/lanl/foodir
make[1]: Leaving directory `D:/John/lanl/foodir'

OK, great, I'll use the mingw32 version.

Not so fast, though.  I have a different problem with it.  Whereas
at the command line I can do:

bash$ uname -n
STRAT

if I modify the first Makefile above to now be:

--------------------------------------
var = blorp

export
cwd = $(shell pwd)
host = $(shell uname -n)

foo:
	@echo $(host)
	@echo $(var)
	@echo $(cwd)
	@make -f Makefile2 bar
--------------------------------------

the mingw32 make coughs up blood thus:

bash$ make
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x417c1b)


make -d essentially gives the same info:


Unhandled exception filter called from program make

ExceptionCode = c0000005

ExceptionFlags = 0

ExceptionAddress = 417c1b

Access violation: read operation at address a000002a


Most annoyingly, the b18 make does this part right:

bash$ /GNUWIN32/B18/H-I386-CYGWIN32/BIN/make
STRAT
blorp
//D/John/lanl/foodir

//D/John/lanl/foodir

Any suggestions?  Will this be fixed in b19?

Thanks,

--
John A. Turner
Blue Sky|VIFX  http://www.blueskystudios.com|http://www.vifx.com
LANL           http://www.lanl.gov/home/turner
Personal       http://www.concentric.net/~jturners
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]