-
-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong setting of TARGET_ARCH cause undetected compiler path #2697
Comments
@jcbrill here's more of this mess - seems similar to another one recently examined. Any thoughts here? (by the way, if we're poking at you too much, please tell us to stop!) |
@mwichmann No worries! I just updated the 32-bit and 64-bit vmware virtual machines this morning that have MSVS 2005/2008/2010 express versions installed with the windows sdks for the 64-bit compilers. It takes some manual tweaking (2008: move/rename batch files) and forwarding to the Sdk batch file (2010) to get the 64-bit builds to work for 2008 and 2010. 2005 is a horse of a different color... Will start looking into issues raised in original post ... |
So am I reading this correctly? |
I have a bit more information. I'm still working on determining the root cause. With only MSVS 2008 Express installed on 64-bit windows:
I have not tried it yet, but without explicitly specifying the The SConstruct which builds for x86 successfully:
Debug output fragment:
output log: 2697-output.txt |
The final addition after the comment in the last clause appears to be relevant. Need to study the code more... |
The problem still exists, the underlying behavior is explained below, and a solution is proposed which may be overkill for this particular issue but is likely better in the long run.
Yes. The requested TARGET_ARCH is kind of a red herring in this instance as the underlying issue is the difference between initial VC detection and the batch file determination for the build environment. There are two factors at play: (1) the user requested TARGET_ARCH does not appear available during initial VC detection and (2) the default installation of VS2008 express does not contain tools for 64-bit targets. When only VS2008 Express (
The root cause of behavior is due to the implementation difference in initialization behavior of installed VCs and the handling of build environments:
During initialization of the installed VCs, the Excerpt from the debug log:
AUTHOR EDIT: remaining content moved to #4131 for discussion. |
This issue was originally created at: 2010-09-29 08:32:56.
This issue was reported by:
mgautier
.mgautier said at 2010-09-29 08:32:56
bdbaddog said at 2010-09-30 07:53:56
mgautier said at 2010-10-07 05:13:34
jason_at_intel said at 2010-10-26 17:36:18
mgautier said at 2010-10-29 02:50:27
gregnoel said at 2010-11-14 18:11:43
garyo said at 2012-09-01 10:01:49
The text was updated successfully, but these errors were encountered: