[Scons-users] Microsoft SDK not configured correctly when run with 64-bit python.

Monson, Kyle E Kyle.Monson at pnnl.gov
Tue Sep 2 20:29:34 EDT 2014


When I try to compile my project with the python 2.7 64-bit it fails to setup the Windows SDK properly.

The error I am getting is c:\python27_64\include\pyconfig.h(227) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory

Attached is the output from SCONS_MSCOMMON_DEBUG for both the 32 and 64 bit versions of python as well as corresponding env.Dump()s. As you can see, both versions find the SDK but for some reason the 64 bit version does not make the same changes to the environment at the end. In both cases I'm using the same target architecture with both interpreters. (I get linker errors in the 32 bit python but that is because of what we are building. Switching to a 32 bit target fixes this when building with 32 bit python, see below.)

"Well, just compile with the 32-bit version."

I'm using scons to compile two python modules and configure a python program (something we previously did with the automake toolchain... shudder). I chose scons to make finding the python lib, python headers, and numpy headers in a cross platform manner much easier. For this scons has performed admirably. When compiling you must use the python that you intend to run the program with, as we just ask the interpreter where stuff is. We need use the 64 bit version of python as our program uses lots of ram.

"Use mingw64."

VS 2008 is one of our required compiler targets and executables produced by mingw are too slow for our applications. Icc will be added eventually but 2008 is a requirement.

I'm using scons-local-2.3.3 for my build.

Is this a bug? Is there a workaround? Do you need any other info?

Thanks for the help,
Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140903/a00adf73/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vc32.log
Type: application/octet-stream
Size: 14287 bytes
Desc: vc32.log
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140903/a00adf73/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vc64.log
Type: application/octet-stream
Size: 10844 bytes
Desc: vc64.log
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140903/a00adf73/attachment-0003.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: env32.txt
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140903/a00adf73/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: env64.txt
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140903/a00adf73/attachment-0003.txt>


More information about the Scons-users mailing list