<div dir="rtl"><div dir="ltr">The quoted source is about 'error' whereas the source is 'Error' with uppercase E.<br></div><div dir="ltr">A macro thing? could you try renaming the variable to Error1 and re-compile?</div><div dir="ltr"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-06-10 22:43 GMT+03:00 Russell Wallace <span dir="ltr"><<a href="mailto:russell.wallace@gmail.com" target="_blank">russell.wallace@gmail.com</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm trying to get clang 3.6.1 to compile itself on Windows, using this command line:</div><div><br></div><div>msbuild /p:Configuration=Release /p:CLToolExe=clang-cl.exe /p:CLToolPath=c:\llvm\build\Release\bin\ /p:TrackFileAccess=false /p:Platform="x64" /fileLogger ALL_BUILD.vcxproj</div><div><br></div><div>It barfed on an occurrence of __try but that was only in a test file so I commented it out and retried. Now it's getting an error I can't quite make sense of:</div><div><br></div><div>  In file included from C:\llvm2\lib\Support\TimeValue.cpp:55:</div><div>C:\llvm2\lib\Support/Windows/TimeValue.inc(48,7): warning : unused variable 'Error' [-Wunused-variable] [C:\llvm2\build\lib\Support\LLVMSupport.vcxproj]</div><div>CL : int error =: :_localtime64_s(&Storage, &OurTime); [C:\llvm2\build\lib\Support\LLVMSupport.vcxproj]</div><div>        ^</div><div>  1 warning generated.</div><div>  The command exited with code -1.</div><div>Done executing task "CL" -- FAILED.</div><div>Done building target "ClCompile" in project "LLVMSupport.vcxproj" -- FAILED.</div><div>Done Building Project "C:\llvm2\build\lib\Support\LLVMSupport.vcxproj" (default targets) -- FAILED.</div><div><br></div><div>That says 'warning generated' but it looks like a syntax error not an unused variable warning, and it is the one place in the build where the command exited with code -1. And the final verdict on the unsuccessful build:</div><div><br></div><div>"C:\llvm2\build\ALL_BUILD.vcxproj" (default target) (1) -></div><div>"C:\llvm2\build\utils\FileCheck\FileCheck.vcxproj" (default target) (2) -></div><div>"C:\llvm2\build\lib\Support\LLVMSupport.vcxproj" (default target) (3) -></div><div>(ClCompile target) -> </div><div>  CL : int error =: :_localtime64_s(&Storage, &OurTime); [C:\llvm2\build\lib\Support\LLVMSupport.vcxproj]</div><div><br></div><div>    135 Warning(s)</div><div>    1 Error(s)</div><div><br></div><div>So it seems to be saying that was the one error that prevented the build from proceeding. So I took a look in that file, and here's the offending line 48:</div><div><br></div><div>  int Error = ::_localtime64_s(&Storage, &OurTime);</div><div><br></div><div>... Contrary to the report, no syntax error, no space between the :'s. I looked at a hex dump of the file and it is as it seems here, still no error. I'd be wondering about cosmic rays flipping bits in RAM but I tried the build twice and got the mysterious error each time.</div><div><br></div><div>Anyone have any idea what's going on? Am I just missing something terribly obvious?</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div></div>