Compiling HEAD with VC nmake under Windows fails
Closed / Fixed2821935fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-07-15 15:27:33
Generically compile HEAD using nmake from VC 6.00 fails. (Bug submitted as recommended on c.l.t)
H:\projects\tcl\win>nmake -f makefile.vc all
[...]
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'
*** Intermediate directory will be '.\Release\itcl_Dynamic'
*** Output directory will be '.\Release'
*** Suffix for binaries will be ''
*** Optional defines are '-DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_
CFG_OPTIMIZED'
*** Compiler version 6. Target machine is IX86
*** Compiler options ' -QI0f -Ot -Oi -Op -Gs -YX -GZ -W3'
*** Link options ''
cl -nologo -c -QI0f -W3 -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_
DEPRECATE -Fp.\Release\itcl_Dynamic\ -O2 -Ot -Oi -Op -Gs -YX -MD -I..\win -I..\
generic -DBUILD_itcl -DTCL_THREADS=1 -I"H:\projects\tcl\win\..\g
eneric" -I"H:\projects\tcl\win\..\win" -DTCL_CFGVAL_ENCODING=\"c
p1252\" -DSTDC_HEADERS -DTCL_CFG_OPTIMIZED -DUSE_TCL_STUBS -DUSE_TCLOO_STUBS -Fo
.\Release\itcl_Dynamic\ @C:\DOCUME~1\ronnie\LOCALS~1\Temp\nma05216.
itclBase.c
..\generic\itclBase.c(85) : error C2026: string too big, trailing characters truncated
itclBuiltin.c
..\generic\itclBuiltin.c(85) : error C2026: string too big, trailing characters truncated
itclParse.c
..\generic\itclParse.c(100) : error C2026: string too big, trailing characters truncated
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
mistachkinplain2009-07-23 15:19:02
This is a documented limitation of the MS VC compiler. Is there some way we can make the string literals smaller or break them into multiple logical constructs?
dkfplain2009-07-23 15:39:31
Should be possible. (What's the documented limit?)
dkf Ticket [2821935fff]: 3 changes
[History diff]2009-07-23 15:39:32
dkfplain2009-09-27 05:06:05
allow_comments - 1 Official (MS-recommended) fix is to change: "this is a very\ long string indeed" into: "this is a very" "long string indeed" It's the immediate string literal that was too long, not the result of ANSI C preprocessor string concatenation. (This is silly, but true.)
dgpplain2010-03-28 10:53:48
This bug was not reported upstream?
Log in (anonymous is fine) to add a comment.