[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU make bug

From: Abe Shen
Subject: GNU make bug
Date: Mon, 08 Oct 2001 19:27:18 -0700

To Whom It May Concern:

This problem only appears in WindowsNT GNU make. If GNU make does
not support WindowsNT, please just indicate so.

I am using Wind River Systems (www.windriver.com) Tornado software which

employes GNU make as well as other GNU tools. I am using it in WindowsNT

platform. The version is:
C:\test>make -v
GNU Make version 3.74 (vpath+), by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95 Free Software Foundation,
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

This Windows version of make has a very specific bug that the same
of Unix make does not have. Attached is my testcase to reproduce it.

After you unzip attachment and run make in top level, you will get:
echo "In top level Makefile"
"In top level Makefile"
c:/tornado/host/x86-win32/bin/make.exe -C Kahlua all
makefile:4: depend.mousse: No such file or directory
make.exe[1]: Entering directory `C:\test\Kahlua'
cp depend.mousse.src depend.mousse
make.exe[1]: Leaving directory `C:\test\Kahlua'
make.exe[1]: command not found:
make: *** [all] Error 0x7f

I found the cause for this problem is the path which is using "/".
If you replace it with "\", the problem disappears. However, using "\"
in my real
code compiling which is much more complicated, another problem shows up:

ccppc -M -MG -mstrict-align -ansi -nostdinc -O2 -fvolatile -fno-builtin
-fno-for-scope -Wall -I/h   -I.
-Ic:/tornado\target/h -Ic:/tornado\target/src/config
-Ic:/tornado\target/src/drv -DCPU=PPC603
epic.c flashFsLib.c flashLib.c ftpXfer2.c i8250Sio.c m48t59y.c
pciSupport.c srecLoad.c sysCache.c
sysLib.c sysSerial.c usrNetwork.c



> depend.mousse

ccppc -E -P -xc -M -E -I/h   -I.
-Ic:/tornado\target/h -Ic:/tornado\target/src/config
-Ic:/tornado\target/src/drv -DCPU=PPC603
-DBROADCOM_BSP -DVX_VERSION=54 romInit.s >> depend.mousse
ccppc -E -P -xc -M -E -I/h   -I.
-Ic:/tornado\target/h -Ic:/tornado\target/src/config
-Ic:/tornado\target/src/drv -DCPU=PPC603
-DBROADCOM_BSP -DVX_VERSION=54  sysALib.s >> depend.mousse

wtxtcl c:/tornado/host/src/hutils/bspDepend.tcl depend.mousse

echo "Abe at rules.x86-win32 MAKE
"Abe at rules.x86-win32 MAKE c:\\tornado\\host\\x86-win32\\bin\\make"
make: *** empty variable name.  Stop.
make: *** [bcm.mousse] Error 0x2

Is there a possible fix for this "/" problem?
This is a show stopper for us.

Any helps are appreciated.

Best Regards,
Abe Shen                 E-mail : address@hidden
Principal Engineer       Direct : 408-922-7392
Broadcom Corporation     Main   : 408-501-7800
3151 Zanker Road         Cell   : 408-807-4362
San Jose, CA 95134       Fax    : 408-434-6031

Attachment: makeBug.zip
Description: Zip compressed data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]