[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,
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.
This Windows version of make has a very specific bug that the same
version
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:
C:\test>make
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:
C:\test/c:/tornado/host/x86-win32/bin/make.exe
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.
-IP:/sdk-3.0.1/firmware/systems/mousse/vxworks/target/config/Kahlua/all
-Ic:/tornado\target/h -Ic:/tornado\target/src/config
-Ic:/tornado\target/src/drv -DCPU=PPC603
-DBROADCOM_BSP -DVX_VERSION=54 -DBROADCOM_BSP bootInit.c dec21x4xEnd.c
epic.c flashFsLib.c flashLib.c ftpXfer2.c i8250Sio.c m48t59y.c
pciSupport.c srecLoad.c sysCache.c
sysLib.c sysSerial.c usrNetwork.c
P:/sdk-3.0.1/firmware/systems/mousse/vxworks/target/config/Kahlua/all/bootConfig.c
P:/sdk-3.0.1/firmware/systems/mousse/vxworks/target/config/Kahlua/all/dataSegPad.c
P:/sdk-3.0.1/firmware/systems/mousse/vxworks/target/config/Kahlua/all/usrConfig.c
P:/sdk-3.0.1/firmware/systems/mousse/vxworks/target/config/Kahlua/all/version.c
> depend.mousse
ccppc -E -P -xc -M -E -I/h -I.
-IP:/sdk-3.0.1/firmware/systems/mousse/vxworks/target/config/Kahlua/all
-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.
-IP:/sdk-3.0.1/firmware/systems/mousse/vxworks/target/config/Kahlua/all
-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
c:\\tornado\\host\\x86-win32\\bin\\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
======================================================
makeBug.zip
Description: Zip compressed data
- GNU make bug,
Abe Shen <=