From: Heesob Park Date: 2010-11-02T22:32:58+09:00 Subject: Re: building ruby on windows 7 Hi, 2010/11/2 Daniel Bovensiepen : > Hi Hessob, > > Thank you so much for your fast reply! > > Heesob Park wrote in post #957790: >> I guess you mean the following message: >> >> cl -nologo -MD rtname.c user32.lib -link > nul >> NMAKE : fatal error U1077: 'cl' : return code '0x2' >> Stop. >> >> The error means that you did not install Platform SDK. >> You must install Microsoft Windows SDK for Windows 7 and .NET Framework >> 4. >> Refer to http://en.wikipedia.org/wiki/Microsoft_Windows_SDK > > Actually I already have put all these SDKs in place and set the correct > Lib, Include and Path Environment Variables. After trying to understand > the build process of win32 a little bit, I found that there is something > strange with win32\setup.mak > > In line 79 there is the following line: >  $(CC) -MD < nul > > After removing the redirect "> nul" it immediately compiled everything > and even the test-all target was execute with only minor problems > (around 49 fails). Rubyspec is actually hanging at the Kernel.spawn task > but this is another thing. > > I have to admit I'm still not complete understand the behavior, I expect > this was just a symptom but not the real reason, cause otherwise this > would be fixed a long time ago. > > I'm quite confident that all the things (cl, bison, sed, libs and > includes) are in place but something has to be wrong with my setup due > to the reason that I can't even configure the trunk without patching > setup.mak. Any clue everyone? Is actually someone using win32 or is > mingw32 the way everyone else is going? > Without > nul C:\work\snapshot>win32\configure.bat cl -nologo -MD rtname.c user32.lib -link rtname.c Checking unicows.lib Creating Makefile.new "type `nmake' to make ruby." With > nul C:\work\snapshot>win32\configure.bat cl -nologo -MD rtname.c user32.lib -link > nul Checking unicows.lib Creating Makefile.new "type `nmake' to make ruby." With >x nul C:\work\snapshot>win32\configure.bat cl -nologo -MD rtname.c user32.lib -link >x nul NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. I guess in your environment, the ">" redirection operator means something else. What is the outoupt of "dir > nul"? Regards, Park Heesob