Issue #5517 has been updated by Jon Forums.


Very nice. I checked the shortcut I use to launch a shell and found the "Target:" had

  C:\Windows\System32\cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x86 /release /win7

After changing to /V:OFF I get the following and am off and running again.

C:\Users\Jon\Documents\RubyDev\ruby-git\build>..\win32\configure.bat --prefix=c:\projects\ruby193-mswin --target=i686-mswin32 --disable-install-doc --disable-win95
Creating Makefile.new
PROCESSOR_LEVEL =
type `nmake' to make ruby.

Normally this is where I'd suck it up and eat a little plate of steaming crow for not configuring my system correctly by saying something like "Sorry for the noise, please close".

But seems to be one of those tweaky issues we should make disappear. Is there a way to make `configure.bat` immune to /V:ON or /V:OFF in this case, perhaps by adding your `@setlocal DISABLEDELAYEDEXPANSION` workaround? Would it then cause problems for those using the IDE to build?

If the workaround isn't solid, I'd like to see this issue documented in `win32/README.win32`
----------------------------------------
Bug #5517: Unable to build trunk/ruby_1_9_3 with Windows SDK for Windows 7
http://redmine.ruby-lang.org/issues/5517

Author: Jon Forums
Status: Open
Priority: Normal
Assignee: Usaku NAKAMURA
Category: build
Target version: 1.9.3
ruby -v: ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]


While attempting to build with Windows SDK for Windows 7 (7.1), 7.1.7600.0.30514 I get the following error:

C:\Users\Jon\Documents\RubyDev\ruby-git\build>..\win32\configure.bat --prefix=c:\projects\ruby193-mswin
--target=i686-mswin32 --disable-install-doc --disable-win95
~setup~.mak(4) : fatal error U1034: syntax error : separator missing
Stop.


### BUILD ENVIRONMENT ###

C:\Users\Jon\Documents\RubyDev\ruby-git\build>ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]

C:\Users\Jon\Documents\RubyDev\ruby-git\build>bison --version
bison (GNU Bison) 2.4.2

C:\Users\Jon\Documents\RubyDev\ruby-git\build>sed --version
GNU sed version 4.2.1

C:\Users\Jon\Documents\RubyDev\ruby-git\build>nmake /?
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01

C:\Users\Jon\Documents\RubyDev\ruby-git\build>cl /?
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

C:\Users\Jon\Documents\RubyDev\ruby-git\build>lib /?
Microsoft (R) Library Manager Version 10.00.30319.01

C:\Users\Jon\Documents\RubyDev\ruby-git\build>dumpbin /?
Microsoft (R) COFF/PE Dumper Version 10.00.30319.01


# file: ~setup~.mak


ifndef CONFIGURE_ARGS






configure_args = --prefix=c:\projects\ruby193-mswin --target=i686-mswin32 --disable-install-doc --disable-win95
endif

####
conf = ..\win32\configure.bat
$(conf): nul
	@del ~setup~.mak
	@-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak \
	"prefix=c:\projects\ruby193-mswin" \
	"i686-mswin32" \
	"RDOCTARGET=nodoc" \
	"ENABLE_WIN95=no" \
	WIN32DIR=$(@D:\=/)
	@if exist Makefile.old del Makefile.old
	@if exist Makefile ren Makefile Makefile.old
	@ren Makefile.new Makefile




-- 
http://redmine.ruby-lang.org