[Scons-dev] SCons building with MS Visual C++10 on 64-bit Windows.

Gary Oberbrunner garyo at oberbrunner.com
Fri Jun 15 10:38:25 EDT 2012


On Fri, Jun 15, 2012 at 9:59 AM, Edward d'Auvergne <edward at nmr-relax.com> wrote:

> Looking at this BAT file, it is looking for C:\Program Files (x86)\Microsoft

> Visual Studio 10.0\VC\bin\amd64\vcvars64.bat.  So I don't have the 64-bit

> TARGET_ARCH installed, but that's fine because I want to build 32-bit

> modules anyway, so that the Windows users of my software

> (http://www.nmr-relax.com) can all use the same binary distribution.  From

> the comments in the SCons vc.py script, this should then default to 32-bit

> (line 356 for version 2.1.0).  This looks like where this fails.  The

> req_taget_platform is set to 'x86_64' (it's taken from env.get("TARGET

> ARCH")), and target_platform to 'amd64' (taken from evn.get("HOST_ARCH")).

> So the test thinks that the 64-bit arch is installed. Now the vcvarsall.bat

> file fails if the 64-bit architecture is not installed, but this occurs

> after this non-functional test.  This non-functional test is not how you

> should determine if something is installed or not!!!  Big fat fail there!


Thanks, Edward -- that's very valuable information. I'll look into
it. Ideally you could file this as a bug report on scons.tigris.org,
because it does seem like a bug.

--
Gary


More information about the Scons-dev mailing list