<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 17, 2011, at 3:52 PM, Wei Li wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>
<div class="gmail_quote">On Tue, May 17, 2011 at 5:04 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com">echristo@apple.com</a>></span> wrote:<br>
<blockquote style="border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; padding-left: 1ex; position: static; z-index: auto; " class="gmail_quote">
<div style="WORD-WRAP: break-word"><br>
<div>
<div class="im">
<div>On May 17, 2011, at 3:02 PM, Wei Li wrote:</div><br>
<blockquote type="cite"><br><br>
<div class="gmail_quote">On Tue, May 17, 2011 at 3:33 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com" target="_blank">echristo@apple.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="WORD-WRAP: break-word"><br>
<div>
<div>
<div>On May 17, 2011, at 1:29 PM, Wei Li wrote:</div><br>
<blockquote type="cite">
<div>Yes! I am not clear about the error. Here is the output when I used -V flag</div>
<div> </div>
<div>------</div>
<div> </div>
<div> "/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o a.out /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o crtbegin.o -L -L/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/../../.. /tmp/cc-XRbuBS.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crtend.o /usr/lib/../lib64/crtn.o<br>
<font style="BACKGROUND-COLOR: #ff6666">/usr/bin/ld: crtbegin.o: No such file: No such file or directory<br></font>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br></div>
<div>--------------</div>
<div> </div>
<div>I am unable to find the location of crtbegin.o on my system. </div></blockquote>
<div><br></div></div>
<div>find / -name crtbegin.o -print</div>
<div><br></div></div></div></blockquote></div></blockquote>
<div><br></div></div></div></div></blockquote></div>
<div>here the locations....</div>
<div>I tried compiling by linking them but getting the same error</div>
<div><br>/<font style="BACKGROUND-COLOR: #ff9966">usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/crtbegin.o<br>/usr/lib/gcc/x86_64-redhat-linux/4.1.1/crtbegin.o<br clear="all"></font></div>
<div>Thanks for th help<br></div></blockquote><br></div><div>I committed a patch here:</div><div><br></div><div><div>[yendi:llvm/tools/clang] echristo% svn ci</div><div>Sending lib/Driver/ToolChains.cpp</div><div>Sending lib/Frontend/InitHeaderSearch.cpp</div><div>Transmitting file data ..</div><div>Committed revision 131505.</div><div><br></div><div>which should help you. Go ahead and rebuild top of tree again and let me know.</div><div><br></div><div>-eric</div></div><br></body></html>