Closed mlr-msft closed 9 years ago
I tend to get these error messages if I recycle the build directory from a 32 bit build or use the wrong VS command-shell (there are separate command shells one can invoke from the VS distribution depending on target platforms). My own x64 build seems fine.
That doesn't appear to be the case in my situation. I am using a fresh pull of the Z3 repository and I've confirmed that I'm both generating and building from within a 64-bit VS command shell.
As far as I can tell, the reason is related to the VS_X64
flag not being set before line 1765 of mk_util.py
is reached when generating makefiles. Forcing a 64-bit build with the -x
argument to mk_make.py
works around the problem for me and eliminates recurring platform mismatch warnings.
Could it be that the Python scripts are not detecting the 64-bit compiler correctly? I have noticed that I am using a 32-bit Python. If the script is querying which Python interpreter is running to determine the value of VS_X64
, rather than checking the output of cl.exe
, a problem of the sort that I am describing would manifest.
You have to explicitly set the make files to x64 using -x. The default sets the make files for 32 bit.
I'm attempting to build the latest Z3 for Windows on a 64-bit platform. After invoking NMAKE, the build fails giving the following message:
Thanks in advance.