[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems building gnu make on Winnt 4.0
From: |
James Schrumpf |
Subject: |
Problems building gnu make on Winnt 4.0 |
Date: |
Tue, 30 Jan 2001 13:18:42 GMT |
User-agent: |
Xnews/M3 |
First off, I am not a c programmer. This exercise has been mandated by
changes in my production environment, and is supposed to be a no-brainer.
It has turned into a nightmare.
I'm trying to build the gnu make-3.79.1 on my WinNT 4.0 server machine with
sp 6a. I've installed MSVC++ 6.0 and the MKS Toolkit 7.01 into directories
with no whitespace in their names.
I have made the following definitions in my config.h.W32 file:
/* Define if you support file names longer than 14 characters. */
#undef HAVE_LONG_FILE_NAMES
#define HAVE_LONG_FILE_NAMES 1
/*
* If you have a shell that does not grok 'sh -c quoted-command-line'
* correctly, you need this setting. Please see below for specific
* shell support.
*/
#define BATCH_MODE_ONLY_SHELL 1
#undef BATCH_MODE_ONLY_SHELL
/*
* Define if you have the MKS tool set or shell. Do NOT define
* BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL
*/
#define HAVE_MKS_SHELL 1
/* Define if you prefer Case Insensitive behavior */
#define HAVE_CASE_INSENSITIVE_FS 1
Everything else I have left alone, as they make reference to items about
which I know nothing.
When I run the command 'nmake /f NMakefile, I get many errors in the
compilations for WinRel. I get the same errors for WinDebug:
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c ar.c
ar.c
ar.c(313) : warning C4113: 'int (__cdecl *)()' differs in parameter lists
from '
int (__cdecl *)(const void *,const void *)'
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c arscan.c
arscan.c
arscan.c(730) : warning C4101: 'hdr' : unreferenced local variable
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c dir.c
dir.c
dir.c(1118) : warning C4113: 'void *(__cdecl *)()' differs in parameter
lists fr
om 'void *(__cdecl *)(const char *)'
dir.c(1119) : warning C4113: 'struct dirent *(__cdecl *)()' differs in
parameter
lists from 'struct dirent *(__cdecl *)(void *)'
dir.c(1120) : warning C4113: 'void (__cdecl *)()' differs in parameter
lists fro
m 'void (__cdecl *)(void *)'
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c file.c
file.c
file.c(570) : warning C4307: '+' : integral constant overflow
file.c(571) : warning C4307: '+' : integral constant overflow
file.c(574) : warning C4307: '+' : integral constant overflow
file.c(623) : warning C4102: 'got_time' : unreferenced label
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c function.c
function.c
function.c(167) : warning C4018: '<' : signed/unsigned mismatch
function.c(1049) : warning C4113: 'int (__cdecl *)()' differs in parameter
lists
from 'int (__cdecl *)(const void *,const void *)'
function.c(1441) : warning C4018: '==' : signed/unsigned mismatch
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c job.c
job.c
job.c(233) : warning C4022: 'process_kill' : pointer mismatch for actual
paramet
er 1
job.c(263) : warning C4013: 'strsignal' undefined; assuming extern
returning int
job.c(632) : warning C4018: '==' : signed/unsigned mismatch
job.c(502) : warning C4102: 'remote_status_lose' : unreferenced label
job.c(421) : warning C4101: 'status' : unreferenced local variable
job.c(1259) : warning C4102: 'error' : unreferenced label
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c main.c
main.c
main.c(738) : warning C4101: 'fd' : unreferenced local variable
main.c(853) : warning C4113: 'void (__cdecl *)()' differs in parameter
lists fro
m 'void (__cdecl *)(int )'
main.c(854) : warning C4113: 'void (__cdecl *)()' differs in parameter
lists fro
m 'void (__cdecl *)(int )'
main.c(1768) : warning C4018: '<' : signed/unsigned mismatch
main.c(1850) : warning C4013: 'close' undefined; assuming extern returning
int
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c remake.c
remake.c
remake.c(1044) : warning C4101: 'memtime' : unreferenced local variable
remake.c(1355) : warning C4018: '<' : signed/unsigned mismatch
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c rule.c
rule.c
rule.c(131) : warning C4018: '>' : signed/unsigned mismatch
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c vpath.c
vpath.c
vpath.c(326) : warning C4018: '<=' : signed/unsigned mismatch
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c glob/glob.c
glob.c
glob/glob.c(500) : warning C4018: '!=' : signed/unsigned mismatch
glob/glob.c(570) : warning C4013: '__glob_pattern_p' undefined; assuming
extern
returning int
glob/glob.c(871) : warning C4018: '<' : signed/unsigned mismatch
glob/glob.c(922) : warning C4018: '==' : signed/unsigned mismatch
glob/glob.c(949) : warning C4018: '<' : signed/unsigned mismatch
glob/glob.c(1011) : warning C4018: '<' : signed/unsigned mismatch
glob/glob.c(1029) : warning C4018: '<' : signed/unsigned mismatch
glob/glob.c(1052) : warning C4018: '>' : signed/unsigned mismatch
glob/glob.c(1072) : warning C4018: '<' : signed/unsigned mismatch
glob/glob.c(1335) : warning C4090: 'function' : different 'const'
qualifiers
glob/glob.c(1335) : warning C4024: 'fnmatch' : different types for formal
and actual parameter 1
glob/glob.c(1335) : warning C4090: 'function' : different 'const'
qualifiers
glob/glob.c(1335) : warning C4024: 'fnmatch' : different types for formal
and actual parameter 2
cl /nologo /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/
/Fp.\WinRel/mak
e.pch /Fo.\WinRel/ /c glob/fnmatch.c
fnmatch.c
glob/fnmatch.c(484) : warning C4028: formal parameter 1 different from
declaration
glob/fnmatch.c(484) : warning C4028: formal parameter 2 different from
declaration
The link command 'link @C:\TEMP\nma00307.' seems to go OK. However running
the run_make_tests script fails on 10 of the tests with an
interrupt/exception error, and trying to use the resulting make.exe results
in the same interrupt/exceptions being caught.
When I use the build_w32.bat scripts I get the same errors, but the script
reports that WinRel and WinDebug have built correctly. I still get the
interrupt/exeption errors.
Here is the text from the .diff files of the failed tests:
C:\gnu\make-3.79.1>type C:\gnu\make-3.79.1\tests\work\features\quoting.diff
*** work/features/quoting.base Fri Jan 26 14:55:06 2001
--- work/features/quoting.log Fri Jan 26 14:55:06 2001
***************
*** 1 ****
! DEFINES = -DDEFAULT_TFM_PATH=\".:NICEFONT\"
--- 1 ----
! make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41a4da)
C:\gnu\make-3.79.1>type C:\gnu\make-
3.79.1\tests\work\features\targetvars.diff
*** work/features/targetvars.base Fri Jan 26 14:55:22 2001
--- work/features/targetvars.log Fri Jan 26 14:55:22 2001
***************
*** 1,4 ****
! one bar
! foo two
! BAR=1000
! foo bar
--- 1 ----
! make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41a4da)
C:\gnu\make-3.79.1>type C:\gnu\make-
3.79.1\tests\work\features\vpathplus.diff
*** work/features/vpathplus.base Fri Jan 26 14:55:54 2001
--- work/features/vpathplus.log Fri Jan 26 14:55:54 2001
***************
*** 1,2 ****
! cat bar.d > bar.c
! cat work/foo.c bar.c > foo.b 2>/dev/null || exit 1
--- 1 ----
! make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41a4da)
C:\gnu\make-3.79.1>type C:\gnu\make-3.79.1\tests\work\options\dash-l.diff
*** work/options/dash-l.base Fri Jan 26 14:56:26 2001
--- work/options/dash-l.log Fri Jan 26 14:56:26 2001
***************
*** 0 ****
--- 1 ----
+ make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41a4da)
C:\gnu\make-3.79.1>type C:\gnu\make-
3.79.1\tests\work\variables\MAKELEVEL.diff
*** work/variables/MAKELEVEL.base Fri Jan 26 14:56:54 2001
--- work/variables/MAKELEVEL.log Fri Jan 26 14:56:54 2001
***************
*** 1,3 ****
! MAKELEVEL is 0
! echo $MAKELEVEL
! 1
--- 1 ----
! make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41a4da)
And here is the error message from the make when used to try and relink my
executables:
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41a4da)
I have installed the MSVC++ 6.0 and the MKS Toolkit on three different
servers and have gotten the same results. I've also tried using the gnu-
make.3.78.1 source and gottn the same results. This has become a critical
point of failure for me and is driving me nuts.
Any and all help will be worshipped.
- Problems building gnu make on Winnt 4.0,
James Schrumpf <=