hi,<br>I tried this by installing MinGW. When I execute a small program like helloworld.c <br><br>#include<stdio.h><br>int main()<br>{<br>printf("\n hello world");<br>return 0;<br>}<br><br><br>It gives the output as given in this snapshot. It still connects to mingw but the assembler cant figure out these statements i guess. It is giving errors as shown in the snapshot. Do you know why is it doing this?<br>
<br>Thanks<br><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 6:54 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Wed, Feb 10, 2010 at 3:39 PM, kalyan ponnala<br>
<<a href="mailto:ponnala.kalyan@gmail.com">ponnala.kalyan@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am trying to build clang/llvm using cmake and visual studio on a windows<br>
> vista platform. When I try to build a .c file from command prompt it says<br>
> it's actually searching for gcc<br>
> to find the assembler and since i dont have gcc it's failing to assemble the<br>
> code and generating an error message.<br>
><br>
> "gcc" -v -c -o C:/Users/Kalyan/AppData/Local/Temp/cc-000001.o -x assembler<br>
> c:/Users/Kalyan/AppData/Local/Temp/cc-000000.s<br>
> clang:error: unable to execute command: program not executable<br>
> clang:error: assembler command failed due to signal 1 (use -v to see<br>
> invocation)<br>
><br>
> could you tell me why is the clang searching for gcc assembler. and how can<br>
> i change it to point to a write assembler? what assembler does it use by the<br>
> way?<br>
<br>
</div></div>Because the clang driver doesn't know how to deal with the toolchain<br>
on Windows, it is actually looking for gcc, which is used as a<br>
fallback when clang doesn't know the correct commands to assemble and<br>
link files.  Note that because clang only knows how to output GNU<br>
assembler syntax on Windows, you'll need the GNU assembler (which is<br>
available in MinGW, among other places).<br>
<font color="#888888"><br>
-Eli<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Kalyan Ponnala<br>phone: 8163772059<br>