Skip to content
Tcl Source Code View Ticket
Login

View Ticket

build broken, VC++ 5.x

Closed / Works For Me981271ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-06-28 14:07:25
The latest changes to tclWin32Dll.c break the build
(compilation error) on Windows, when using VC++ 5.x:

        cl -nologo -c -YX -Fp.\Release\tcl_Dynamic\ -W3
-QI0f -O2 -Op -Gs -MD -I
"..\win" -I"..\generic" 
-DTCL_PIPE_DLL=\"tclpip85.dll\" -DTCL_CFGVAL_ENCODING=\
"cp1252\" -DTCL_CFG_OPTIMIZED -DBUILD_tcl
-Fo.\Release\tcl_Dynamic\ @C:\DOCUME~1
\VinceD\LOCALS~1\Temp\nma03852.
tclWin32Dll.c
..\win\tclWin32Dll.c(1185) : error C2400: inline
assembler syntax error in 'opco
de'; found 'newline'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
hobbsplain2004-06-29 03:18:06
Logged In: YES 
user_id=72656

This builds just fine using VC6.  If VC5 can't handle the
code itself, we may have to consider "unsupporting" VC5. 
After all, there are better free alternatives now (VC7,
mingw, borland, ...).  However, remove the file in question
and make sure there aren't any mixed CR and CRLF issues.
vincentdarleyplain2004-06-29 16:58:17
Logged In: YES 
user_id=32170

I don't think the problem is a CR/CRLF issue.  It's the new
assembler instruction 'cpuid' which VC++ 5.x barfs on.
vincentdarleyplain2004-06-29 17:06:25
Logged In: YES 
user_id=32170

Yup, we need a test on the VC++ version and define 'cpuid'
otherwise.  I'll fix this.
dkfplain2004-06-29 17:21:37
Logged In: YES 
user_id=79902

It also looks to me like VC5 doesn't know the 'cpuid'
instruction at all.

One alternative would be to drop the contents of the
TclWinCPUID function and just make it return TCL_ERROR. 
This would just make Tcl's timing stuff less accurate, which
is not a fatal problem since that's what currently happens
on AMD systems anyway...
dkfplain2004-06-29 17:23:12
Logged In: YES 
user_id=79902

Erk!  Took so long to write that comment that you closed the
bug under me. :^)
Log in (anonymous is fine) to add a comment.