Tcl build broken on Win
Closed / Fixed9f3c253df5eec5669673d05fe3a51e4afcf99418Created 9 years agoUpdated 9 years ago
Descriptionwiki2018-04-14 07:19:24
Tcl does not build on Windows with MSVC.
Symptom:
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
*** Compiler does not have 'Pentium 0x0f fix'
*** Doing symbols
*** Intermediate directory will be 'C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\Debug_VC9\tcl_ThreadedDynamic'
*** Output directory will be 'C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\Debug_VC9'
*** Installation, if selected, will be in 'C:\Tcl'
*** Suffix for binaries will be 'tg'
*** Compiler version 9. Target IX86, host AMD64.
*** Dependency rules are not being used.
cl -nologo -c /D_ATL_XP_TARGETING /DUNICODE /D_UNICODE -W3 -WX -FpC:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\Debug_VC9\tcl_ThreadedDy
namic\ -Zi -Od -fp:strict -RTC1 -MDd -I"C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\win" -I"C:\Users\francois\Documents\Development\tcltk-f
ossil\tcl\win\..\generic" -I"C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\libtommath" -DTCL_TOMMATH -DMP_PREC=4 -Dinline=__inline -DHAVE_ZL
IB=1 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DTCL_USE_STA
TIC_PACKAGES=0 -FoC:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\Debug_VC9\tcl_ThreadedDynamic\tclAppInit.obj C:\Users\francois\Documents\Develop
ment\tcltk-fossil\tcl\win\..\win\tclAppInit.c
tclAppInit.c
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(687) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to func
tion declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(687) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to func
tion declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(1472) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(1472) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(1807) : error C2495: 'tcl_Panic' : '__declspec(noreturn)' can only be applied to fun
ction declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(1954) : error C2495: 'tcl_Exit' : '__declspec(noreturn)' can only be applied to func
tion declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2059) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to fun
ction declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2059) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to fun
ction declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2123) : error C2495: 'tcl_ExitThread' : '__declspec(noreturn)' can only be applied t
o function declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2348) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2348) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
Bisecting points to [2370ad9791]:
Remove obsolete documentation (belonging to now-removed functions). Remove obsolete 8.4 bytecodes. And a few other (internal) macro's which are no longer in use. (check-in: 2370ad9791 user: jan.nijtmans tags: trunk)
Referenced by3
b39f592287Now really fix [9f3c253df5eec5669673d05fe3a51e4afcf99418|9f3c253df5] : Tcl build broken on Win. (tested on Visual Studio 2017) check-in2018-04-29 20:02:48a435321ce4Fix MSVC build [9f3c253df5] check-in2018-04-25 21:57:27edde576b1bFix [9f3c253df5eec5669673d05fe3a51e4afcf99418|9f3c253df5]: Tcl build broken on Win. Re-introduce TCL_NORETURN1, apparently still needed on MSVC. check-in2018-04-15 23:06:00
fvogelplain2018-04-14 09:45:18
No problem with core-8-6-branch though.
fvogelwiki2018-04-16 16:59:14
Thanks Jan for looking into this!
[edde576b1b] is unfortunately not enough to fix the issue. I'm getting a similar symptom:
cl -nologo -c /D_ATL_XP_TARGETING /DUNICODE /D_UNICODE -W3 -WX -FpC:\Users\francois\Documents\Development\tcltk-fossil\tk\win\Debug_VC9\tk_ThreadedDyna
mic\ -Zi -Od -fp:strict -RTC1 -DBUILD_ttk -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -D
HAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DSUPPORT_CONFIG_EMBEDDED -DHAVE_UXTHEME_H=1 -Dinline=__inline -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONS
TDC_NO_DEPRECATE -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -Zl -DSTATIC_BUILD -I"C:\Users\francois\Documents\Developm
ent\tcltk-fossil\tcl\generic" -I"C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win" -I"C:\Users\francois\Documents\Development\tcltk-fossil\tk\win\..
\win" -I"C:\Users\francois\Documents\Development\tcltk-fossil\tk\win\..\generic" -I"C:\Users\francois\Documents\Development\tcltk-fossil\tk\win\..\bitmaps" -I"C
:\Users\francois\Documents\Development\tcltk-fossil\tk\win\..\xlib" -FoC:\Users\francois\Documents\Development\tcltk-fossil\tk\win\Debug_VC9\tk_ThreadedDynamic\
tkStubLib.obj C:\Users\francois\Documents\Development\tcltk-fossil\tk\win\..\generic\tkStubLib.c
tkStubLib.c
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(677) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to func
tion declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(677) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to func
tion declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(1462) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(1462) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2049) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to fun
ction declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2049) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied to fun
ction declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2338) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
c:\users\francois\documents\development\tcltk-fossil\tcl\generic\tclDecls.h(2338) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to function
declarations or definitions
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
jan.nijtmansplain2018-04-25 21:59:39
Should be fixed now. Thanks for the report!
fvogelwiki2018-04-28 06:25:04
Actually there is progress but still not perfect:
tclEvent.c C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\generic\tclEvent.c(92) : error C2495: 'appExitPtr' : '__declspec(noreturn)' can only be applied to function declarations or definitions C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\generic\tclEvent.c(860) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to fu nction declarations or definitions C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\generic\tclEvent.c(860) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to fu nction declarations or definitions C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\generic\tclEvent.c(941) : error C2495: 'currentAppExitPtr' : '__declspec(noreturn)' can only be applied to function declarations or definitions
and a bit later in the output:
tclPanic.c C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\generic\tclPanic.c(29) : error C2495: 'panicProc' : '__declspec(noreturn)' can only be applied t o function declarations or definitions C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\generic\tclPanic.c(50) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to fun ction declarations or definitions C:\Users\francois\Documents\Development\tcltk-fossil\tcl\win\..\generic\tclPanic.c(50) : error C2495: 'proc' : '__declspec(noreturn)' can only be applied to fun ction declarations or definitions
Sorry... but we're close!
jan.nijtmansplain2018-04-29 20:02:23
Should be really really fixed now. Test on Visual Studio 2017
fvogelplain2018-04-29 20:13:22
Confirmed, many thanks:
Log in (anonymous is fine) to add a comment.