Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-02-02
00:18 • Closed ticket [1881216fff]: VC2005 build still not quite right. plus 2 other... artifact: 7d1663819a user: dkf
2008-01-31
07:39 • Ticket [1881216fff]: 4 changes artifact: 6134fac82a user: kennykb
2008-01-30
22:33 • Ticket [1881216fff]: 4 changes artifact: b76c0db51b user: dkf
08:53 • Open ticket [1881216fff]. artifact: 677becfd8f user: kennykb
08:53 • Add attachment Makefile.diffs to ticket [1881216fff] artifact: c1a51cd53a user: kennykb
2008-01-29
21:20 • Closed ticket [1881216fff]: VC2005 build still not quite right. plus 7 other... artifact: eb411ab94c user: dkf
2008-01-28
23:01 • Ticket [1881216fff]: 4 changes artifact: ec1927dcc1 user: kennykb
22:56 • Ticket [1881216fff]: 4 changes artifact: 4c4d18890b user: kennykb
22:56 • Add attachment Makefile to ticket [1881216fff] artifact: 7375b1c748 user: kennykb
22:56 • Ticket [1881216fff] VC2005 build still not quite right. status still Open wi... artifact: b7ddb8ff22 user: kennykb
22:55 • Ticket [1881216fff]: 4 changes artifact: 1aae96ca14 user: kennykb
22:55 • Ticket [1881216fff]: 4 changes artifact: afdd848a86 user: kennykb
22:55 • Add attachment config.log to ticket [1881216fff] artifact: da3063dc5c user: kennykb
22:55 • Ticket [1881216fff] VC2005 build still not quite right. status still Open wi... artifact: bf212866fa user: kennykb
22:55 • Add attachment oo-aclocal.patch to ticket [1881216fff] artifact: a772d3a9b5 user: kennykb
15:54 • New ticket [1881216fff] VC2005 build still not quite right.. artifact: 8689a82338 user: kennykb

VC2005 build still not quite right.

Closed / Fixed1881216fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-01-28 15:54:59
The build for vc2005 still isn't quite right.  I'm
running the configurator from an 'msys' shell with

mkdir `hostname`
cd `hostname`
CC=cl ../configure --prefix=d:/tcltest --with-tcl=d:/tcltest/lib --enable-threads

The configurator finds (correctly) that a 'windres' command exists. But it winds up, somehow, using 'rc' in its place, producing a makefile that attempts to run 'rc' with command line options appropriate to 'windres'.

I work around that with 'make RC=windres', and the build progresses somewhat further, but fails when it attempts to run 'mt'.  The problem there is shell syntax; the semicolon that separates the DLL name from the resource number needs to be escaped.  I trace that back to aclocal.m4, in the TEAX_VC_MANIFEST macro.  A proposed
patch is attached.

The failing Makefile and config.log are also attached, as requested.
kennykbplain2008-01-28 22:55:04
File Added - 264028: oo-aclocal.patch
kennykbplain2008-01-28 22:55:46
File Added - 264029: config.log
kennykbplain2008-01-28 22:55:48
Logged In: YES 
user_id=99768
Originator: YES

File Added: config.log
kennykbplain2008-01-28 22:56:27
File Added - 264030: Makefile
kennykbplain2008-01-28 22:56:28
Logged In: YES 
user_id=99768
Originator: YES

File Added: Makefile
kennykbplain2008-01-28 23:01:40
Logged In: YES 
user_id=99768
Originator: YES

Oh, also... once the Makefile is patched, there are two more things, which don't make the build fail but are nevertheless annoying:

(1) Every 'cl' command generates:

cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release

(2) There is still one spot where we trip over VC++ obsessive-compulsive behaviour with respect to constness of function args:

../generic/tclOOCall.c(565) : warning C4028: formal parameter 3 different from declaration
dkfplain2008-01-29 21:20:42
Logged In: YES 
user_id=79902
Originator: NO

Ugh, it seems that working out what to do about windres/rc needs to be done *after* TEA_CONFIG_CFLAGS as that unilaterally sets RC...
kennykbplain2008-01-30 08:53:15
File Added - 264238: Makefile.diffs

Logged In: YES 
user_id=99768
Originator: YES

Still not quite there.

For starters, options beginning with '/' seem to get munged
by either msys 'make' or the msys shell... but ones beginning
with '-' are OK.  I attach a set of diffs to the generated
Makefile that take care of the problem in RCFLAGS and
the '.c.obj' and '.rc.$(RES)' rules.  With these changes,
the 'make' is successful.

The warning about mismatched const-ness at generic/tclOOCall.c:565
is still there.  The reason that warnings are a major annoyance
is that an --enable-symbols build on VC++ turns on
"warnings treated as errors", which means that the compiler
won't generate object code for the offending file.
File Added: Makefile.diffs
dkfplain2008-01-30 22:33:44
Logged In: YES 
user_id=79902
Originator: NO

Everything done except for the (trivial) bugfix in tclOOCall.c, which gets in the way of a number of changes in my sandboxes.
kennykbplain2008-01-31 07:39:27
Logged In: YES 
user_id=99768
Originator: YES

With this evening's HEAD, the '-o' on the 'rc' should be '-fo'.
Aside from that, everything looks to be building correctly.

Also, it would be nice to add 'nologo' on that command; it would
slightly reduce the dribble in the 'make' output.
dkf Closed ticket [1881216fff]. [History diff]2008-02-02 00:18:38
Log in (anonymous is fine) to add a comment.

Attachments: