Closed Bug 439720 Opened 16 years ago Closed 15 years ago

MozillaBuild 1.3: unexpected: 5 due to empty SDKVER in start-msvc8.bat

Categories

(Firefox Build System :: MozillaBuild, task)

x86
Windows Vista
task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: asqueella, Assigned: ted)

References

Details

MozillaBuild 1.3, start-msvc8.bat, VS2005, Vista Home Premium:

lines 54-55:
    rem If the SDK is Win2k3SP2 or higher, we want to use it
    if %SDKVER% GEQ 5 (

SDKVER is empty, so I get a syntax error, something like "unexpected occurrence: 5", I guess (rough translation from Russian).
http://mxr.mozilla.org/mozilla/source/tools/build-environment/win32/guess-msvc.bat#77

guess-msvc.bat initializes this to 0, so I don't see how this happens.
SDKDIR, PSDKDIR, and PSDKVER are all empty, so SDKVER is cleared here:
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/tools/build-environment/win32/guess-msvc.bat&rev=1.10&mark=111-113#111

Let me know if you need to know anything else. MozillaBuild 1.2 works, as does 1.3 if I fix the syntax error.
Ah, are you using VC8 Pro without an external SDK?
Same error here. I've quoted the variable to prevent the error, I'll see if my build succeeds. I don't remember having installed an external SDK.
I forgot to add that I'm on XP with VS2005.
I had the same issue. Indeed, it happens if the SDK is not installed. I just tried to put the %SDKVER% into quotes and then the batch file ran through and told me (which was right at that time) that the SDK is missing. After installation of the SDK the processing of the batch file was still okay. 
However, I am not familiar with batch files and I don't know if the quotes around %SDKVER% actually fixes the issue.
Same here, I just have vs2005 installed, no SDK, not needed with the full version of vs2005.
Adding quotes around %SDKVER% solves the problem.
Pushed a fix:
http://hg.mozilla.org/mozilla-build/rev/e87febbbb6bd
will wind up in MozillaBuild 1.4.
Assignee: nobody → ted.mielczarek
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.