[Simh] SIMH 3.7-3 VAX build on Visual Studio C++ 2008 Beta

Wilm Boerhout w781 at planet.nl
Sat Nov 10 17:25:54 EST 2007


The build of SIMH 3.7-3 succeeds with a lot of (similar) warnings. SIMH 
VAX runs properly, but fails to boot a disk that a previous version of 
SIMH booted fine on a previous version of Windows. Before I start 
looking at other things, is there anyone who can help me avoid the 
compilation warnings shown below?

This is on Vista x64 Business on a HP Compaq 6715b (AMD Turion) machine. 
I tried to translate the defines and options from the makefile into 
Visual Studio project properties, but obviously have not succeeded entirely.

/Wilm

Active DEFINEs:
WIN32;_DEBUG;_CONSOLE;VM_VAX;USE_INT64;USE_ADDR64;_GNU_SOURCE (i.e. no 
USE_NETWORK)
(I wasn't sure how to translate the -U__STRICT_ANSI__ and the -std=c99 
from the makefile cc command line)

Build log follows:

1>------ Rebuild All started: Project: VAX, Configuration: Debug Win32 
------
1>Deleting intermediate and output files for project 'VAX', 
configuration 'Debug|Win32'
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated 
and will be removed in a future release
1>vax_syslist.c
1>vax_sysdev.c
1>..\..\..\SIMH0373\VAX\vax_sysdev.c(1382) : warning C4244: 
'initializing' : conversion from '__w64 int' to 'int32', possible loss 
of data
1>vax_syscm.c
1>vax_sys.c
1>..\..\..\SIMH0373\VAX\vax_sys.c(1392) : warning C4267: '=' : 
conversion from 'size_t' to 'int32', possible loss of data
1>vax_stddev.c
1>..\..\..\SIMH0373\VAX\vax_stddev.c(381) : warning C4996: 'localtime': 
This function or variable may be unsafe. Consider using localtime_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online 
help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\time.inl(114) : see declaration of 'localtime'
1>vax_octa.c
1>vax_mmu.c
1>..\..\..\SIMH0373\VAX\vax_mmu.c(553) : warning C4244: 'initializing' : 
conversion from '__w64 int' to 'int32', possible loss of data
1>..\..\..\SIMH0373\VAX\vax_mmu.c(566) : warning C4244: 'initializing' : 
conversion from '__w64 int' to 'int32', possible loss of data
1>vax_io.c
1>vax_fpa.c
1>vax_cpu1.c
1>vax_cpu.c
1>vax_cmode.c
1>vax_cis.c
1>sim_tmxr.c
1>..\..\..\SIMH0373\sim_tmxr.c(459) : warning C4996: 'strcpy': This 
function or variable may be unsafe. Consider using strcpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(74) : see declaration of 'strcpy'
1>..\..\..\SIMH0373\sim_tmxr.c(514) : warning C4267: 'function' : 
conversion from 'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\sim_tmxr.c(522) : warning C4267: '=' : conversion 
from 'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\sim_tmxr.c(612) : warning C4996: 'strncpy': This 
function or variable may be unsafe. Consider using strncpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(157) : see declaration of 'strncpy'
1>..\..\..\SIMH0373\sim_tmxr.c(613) : warning C4996: 'fopen': This 
function or variable may be unsafe. Consider using fopen_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(237) : see declaration of 'fopen'
1>sim_timer.c
1>sim_tape.c
1>..\..\..\SIMH0373\sim_tape.c(391) : warning C4267: '=' : conversion 
from 'size_t' to 't_mtrlnt', possible loss of data
1>..\..\..\SIMH0373\sim_tape.c(433) : warning C4267: '=' : conversion 
from 'size_t' to 't_mtrlnt', possible loss of data
1>..\..\..\SIMH0373\sim_tape.c(877) : warning C4267: '=' : conversion 
from 'size_t' to 'uint32', possible loss of data
1>sim_sock.c
1>..\..\..\SIMH0373\sim_sock.c(158) : warning C4244: '=' : conversion 
from 'SOCKET' to 'int32', possible loss of data
1>..\..\..\SIMH0373\sim_sock.c(180) : warning C4244: '=' : conversion 
from 'SOCKET' to 'int32', possible loss of data
1>..\..\..\SIMH0373\sim_sock.c(218) : warning C4244: '=' : conversion 
from 'SOCKET' to 'int32', possible loss of data
1>sim_fio.c
1>..\..\..\SIMH0373\sim_fio.c(92) : warning C4267: '=' : conversion from 
'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\sim_fio.c(118) : warning C4267: '=' : conversion 
from 'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\sim_fio.c(121) : warning C4267: '=' : conversion 
from 'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\sim_fio.c(168) : warning C4996: 'fopen': This 
function or variable may be unsafe. Consider using fopen_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(237) : see declaration of 'fopen'
1>sim_ether.c
1>..\..\..\SIMH0373\sim_ether.c(258) : warning C4267: 'initializing' : 
conversion from 'size_t' to 'int', possible loss of data
1>..\..\..\SIMH0373\sim_ether.c(268) : warning C4996: 'strcpy': This 
function or variable may be unsafe. Consider using strcpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(74) : see declaration of 'strcpy'
1>..\..\..\SIMH0373\sim_ether.c(280) : warning C4267: 'initializing' : 
conversion from 'size_t' to 'int', possible loss of data
1>..\..\..\SIMH0373\sim_ether.c(282) : warning C4996: 'sscanf': This 
function or variable may be unsafe. Consider using sscanf_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(324) : see declaration of 'sscanf'
1>..\..\..\SIMH0373\sim_ether.c(301) : warning C4996: 'sprintf': This 
function or variable may be unsafe. Consider using sprintf_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(366) : see declaration of 'sprintf'
1>..\..\..\SIMH0373\sim_ether.c(435) : warning C4996: 'strcpy': This 
function or variable may be unsafe. Consider using strcpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(74) : see declaration of 'strcpy'
1>..\..\..\SIMH0373\sim_ether.c(444) : warning C4267: 'initializing' : 
conversion from 'size_t' to 'int', possible loss of data
1>..\..\..\SIMH0373\sim_ether.c(448) : warning C4267: 'initializing' : 
conversion from 'size_t' to 'int', possible loss of data
1>..\..\..\SIMH0373\sim_ether.c(457) : warning C4996: 'strcpy': This 
function or variable may be unsafe. Consider using strcpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(74) : see declaration of 'strcpy'
1>..\..\..\SIMH0373\sim_ether.c(492) : warning C4267: '=' : conversion 
from 'size_t' to 'int', possible loss of data
1>..\..\..\SIMH0373\sim_ether.c(496) : warning C4996: 'strcpy': This 
function or variable may be unsafe. Consider using strcpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(74) : see declaration of 'strcpy'
1>..\..\..\SIMH0373\sim_ether.c(527) : warning C4267: '=' : conversion 
from 'size_t' to 'int', possible loss of data
1>sim_console.c
1>Generating Code...
1>Compiling...
1>scp.c
1>..\..\..\SIMH0373\scp.c(603) : warning C4996: 'strcat': This function 
or variable may be unsafe. Consider using strcat_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(79) : see declaration of 'strcat'
1>..\..\..\SIMH0373\scp.c(604) : warning C4996: 'strcat': This function 
or variable may be unsafe. Consider using strcat_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(79) : see declaration of 'strcat'
1>..\..\..\SIMH0373\scp.c(652) : warning C4996: 'strncpy': This function 
or variable may be unsafe. Consider using strncpy_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(157) : see declaration of 'strncpy'
1>..\..\..\SIMH0373\scp.c(654) : warning C4996: 'strcat': This function 
or variable may be unsafe. Consider using strcat_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(79) : see declaration of 'strcat'
1>..\..\..\SIMH0373\scp.c(749) : warning C4996: 'getenv': This function 
or variable may be unsafe. Consider using _dupenv_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdlib.h(447) : see declaration of 'getenv'
1>..\..\..\SIMH0373\scp.c(750) : warning C4996: 'getenv': This function 
or variable may be unsafe. Consider using _dupenv_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdlib.h(447) : see declaration of 'getenv'
1>..\..\..\SIMH0373\scp.c(829) : warning C4996: 'fopen': This function 
or variable may be unsafe. Consider using fopen_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(237) : see declaration of 'fopen'
1>..\..\..\SIMH0373\scp.c(917) : warning C4996: 'strcpy': This function 
or variable may be unsafe. Consider using strcpy_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(74) : see declaration of 'strcpy'
1>..\..\..\SIMH0373\scp.c(1328) : warning C4244: 'initializing' : 
conversion from '__w64 int' to 'int32', possible loss of data
1>..\..\..\SIMH0373\scp.c(1779) : warning C4996: 'strncpy': This 
function or variable may be unsafe. Consider using strncpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(157) : see declaration of 'strncpy'
1>..\..\..\SIMH0373\scp.c(1819) : warning C4267: '=' : conversion from 
'size_t' to 'uint32', possible loss of data
1>..\..\..\SIMH0373\scp.c(1958) : warning C4996: 'strncpy': This 
function or variable may be unsafe. Consider using strncpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(157) : see declaration of 'strncpy'
1>..\..\..\SIMH0373\scp.c(2174) : warning C4996: 'sscanf': This function 
or variable may be unsafe. Consider using sscanf_s instead. To disable 
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(324) : see declaration of 'sscanf'
1>..\..\..\SIMH0373\scp.c(2262) : warning C4267: '=' : conversion from 
'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\scp.c(3258) : warning C4996: 'strncpy': This 
function or variable may be unsafe. Consider using strncpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(157) : see declaration of 'strncpy'
1>..\..\..\SIMH0373\scp.c(3437) : warning C4244: '=' : conversion from 
'__w64 int' to 'uint32', possible loss of data
1>..\..\..\SIMH0373\scp.c(3613) : warning C4244: '=' : conversion from 
'__w64 int' to 'int32', possible loss of data
1>..\..\..\SIMH0373\scp.c(3619) : warning C4244: '=' : conversion from 
'__w64 int' to 'int32', possible loss of data
1>..\..\..\SIMH0373\scp.c(3621) : warning C4267: '=' : conversion from 
'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\scp.c(4106) : warning C4996: 'strncpy': This 
function or variable may be unsafe. Consider using strncpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(157) : see declaration of 'strncpy'
1>..\..\..\SIMH0373\scp.c(4225) : warning C4996: 'strncpy': This 
function or variable may be unsafe. Consider using strncpy_s instead. To 
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(157) : see declaration of 'strncpy'
1>..\..\..\SIMH0373\scp.c(4370) : warning C4996: '_vsnprintf': This 
function or variable may be unsafe. Consider using _vsnprintf_s instead. 
To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for 
details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(358) : see declaration of '_vsnprintf'
1>pdp11_xq.c
1>..\..\..\SIMH0373\PDP11\pdp11_xq.c(620) : warning C4996: 'sscanf': 
This function or variable may be unsafe. Consider using sscanf_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online 
help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdio.h(324) : see declaration of 'sscanf'
1>..\..\..\SIMH0373\PDP11\pdp11_xq.c(1107) : warning C4267: '=' : 
conversion from 'size_t' to 'uint16', possible loss of data
1>..\..\..\SIMH0373\PDP11\pdp11_xq.c(1895) : warning C4996: 'strcpy': 
This function or variable may be unsafe. Consider using strcpy_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online 
help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(74) : see declaration of 'strcpy'
1>..\..\..\SIMH0373\PDP11\pdp11_xq.c(2044) : warning C4996: 'strcat': 
This function or variable may be unsafe. Consider using strcat_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online 
help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(79) : see declaration of 'strcat'
1>..\..\..\SIMH0373\PDP11\pdp11_xq.c(2045) : warning C4996: 'strcat': 
This function or variable may be unsafe. Consider using strcat_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online 
help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(79) : see declaration of 'strcat'
1>..\..\..\SIMH0373\PDP11\pdp11_xq.c(2046) : warning C4996: 'strcat': 
This function or variable may be unsafe. Consider using strcat_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online 
help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(79) : see declaration of 'strcat'
1>..\..\..\SIMH0373\PDP11\pdp11_xq.c(2047) : warning C4996: 'strcat': 
This function or variable may be unsafe. Consider using strcat_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online 
help for details.
1>        C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\string.h(79) : see declaration of 'strcat'
1>pdp11_vh.c
1>pdp11_ts.c
1>pdp11_tq.c
1>..\..\..\SIMH0373\PDP11\pdp11_tq.c(2075) : warning C4244: 
'initializing' : conversion from '__w64 int' to 'int32', possible loss 
of data
1>pdp11_ry.c
1>pdp11_rq.c
1>..\..\..\SIMH0373\PDP11\pdp11_rq.c(1699) : warning C4267: '=' : 
conversion from 'size_t' to 'uint32', possible loss of data
1>pdp11_rl.c
1>..\..\..\SIMH0373\PDP11\pdp11_rl.c(488) : warning C4267: '=' : 
conversion from 'size_t' to 'int32', possible loss of data
1>..\..\..\SIMH0373\PDP11\pdp11_rl.c(511) : warning C4267: '=' : 
conversion from 'size_t' to 'int32', possible loss of data
1>pdp11_lp.c
1>pdp11_dz.c
1>..\..\..\SIMH0373\PDP11\pdp11_dz.c(657) : warning C4244: '=' : 
conversion from 'SOCKET' to 'int32', possible loss of data
1>pdp11_cr.c
1>Generating Code...
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>Embedding manifest...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Build log was saved at "file://d:\Mijn Documenten\Visual Studio 
2008\Projects\Debug\BuildLog.htm"
1>VAX - 0 error(s), 67 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========




More information about the Simh mailing list