|
2005-10-14
| ||
| 18:16 | • Closed ticket [1256937fff]: build broken, VC++ with msvcrt,static,symbols pl... artifact: aa6ef8af20 user: patthoyts | |
|
2005-10-12
| ||
| 16:31 | • Ticket [1256937fff]: 5 changes artifact: 8244cb6288 user: davygrvy | |
| 06:47 | • Ticket [1256937fff]: 4 changes artifact: 65cdc20645 user: patthoyts | |
|
2005-10-05
| ||
| 10:59 | • Ticket [1256937fff]: 1 change artifact: eabf81779c user: hobbs | |
|
2005-08-11
| ||
| 17:59 | • New ticket [1256937fff]. artifact: 5c042e9d55 user: vincentdarley | |
build broken, VC++ with msvcrt,static,symbols
Closed / Fixed1256937fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-08-11 17:59:37
On Windows, with VC++, latest sdk, I get this:
E:\Programming\Tcl-source\cvs-tcl\win>nmake -f
makefile.vc OPTS=symbols,static,m
svcrt release
Microsoft (R) Program Maintenance Utility Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights
reserved.
===============================================================================
*** Compiler has 'Optimizations'
*** Compiler has 'Pentium 0x0f fix'
*** Linker has 'Win98 alignment problem'
*** Doing static
*** Doing msvcrt
*** Doing symbols
*** Intermediate directory will be '.\Debug\tcl_StaticX'
*** Output directory will be '.\Debug'
*** Suffix for binaries will be 'sgx'
*** Optional defines are
'-DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTATIC_BUILD -DTCL_
CFG_DEBUG'
*** Dependency rules are not being used.
cl -nologo -c -YX -Fp.\Debug\tcl_StaticX\ -W3
-QI0f -Z7 -WX -Od -GZ -MDd
-I"..\win" -I"..\generic" -I"..\libtommath"
-DTCL_PIPE_DLL=\"tclpip85sgx.dll\"
-DTCL_TOMMATH -DTCL_CFGVAL_ENCODING=\"cp1252\"
-DSTATIC_BUILD -DTCL_CFG_DEBUG -
DBUILD_tcl -Fo.\Debug\tcl_StaticX\
@C:\DOCUME~1\VinceD\LOCALS~1\Temp\nma00196.
tclMain.c
..\generic\tclMain.c(33) : error C2220: warning treated
as error - no object fil
e generated
..\generic\tclMain.c(33) : warning C4273: 'isatty' :
inconsistent dll linkage.
dllexport assumed.
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
(The same problem also occurs with Tk).
Note: the above build style is needed to build a debug
version of tclkit.exe
hobbs Ticket [1256937fff]: 1 change
[History diff]2005-10-05 10:59:04
patthoytsplain2005-10-12 06:47:30
Logged In: YES user_id=202636 static,msvcrt wants __declspec(import) static doesnt. As far as I can tell there is no way to know that we have a MSVCRT build without adding a macro for this. We could just disable the warning - the build terminates because we pass -WX which causes the build to treat warnings as errors. The warning can be disabled by adding the following to the tclMain.c file: #ifdef _MSC_VER #pragma warning(disable:4273) #endif
davygrvyplain2005-10-12 16:31:12
Logged In: YES user_id=7549 I'm without any software tools at this time, so I can't help today. Seems to me like the macro expansion of -MDd by the compiler to the runtime header files is not doing what it is supposed to. I'd suggest looking at where isatty() is declared to see why it isn't being decorated correctly. Off hand, I think -MDd expands to _DEBUG, _DLL and one other.
patthoytsplain2005-10-14 18:16:15
Logged In: YES user_id=202636 _DLL is defined by the compiler with -MD/-MDd so we can use that to arrange for correct function decoration. Tested this using the NMAKE build system and also the configure+msys build system with MSVC and gcc.
Log in (anonymous is fine) to add a comment.