<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This is a known issue with the version of llvm-gcc in Snow Leopard. It was fixed in llvm trunk with <<a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090803/083744.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090803/083744.html</a>><div><br></div><div>You have a few options</div><div>1) Compile llvm/clang as 32-bit binaries by specifying --target/--host/--build as i686-apple-darwin10</div><div>2) Disable optimization for clang, or at least <span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">PPMacroExpansion.cpp</span></div><div><span class="Apple-style-span" style="white-space: pre;">3) As you note, use the LLVM 2.6 release candidate or trunk to build llvm-gcc, and then use that to build llvm/clang</span></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Shantonu</div><div><br class="webkit-block-placeholder"></div><div>Sent from my MacBook</div></div></span></span>
</div>
<br><div><div>On Sep 30, 2009, at 4:30 AM, Jean-Daniel Dupas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br><br>I'm compiling clang with llvm-gcc-4.2 on Snow Leopard (i686-apple- <br>darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5646)  <br>(LLVM build 2118)).<br>clang and llvm are compiled as a 64 bit binaries (x86_64).<br><br>When building a debug version, it works well, but when I build without  <br>assert and optimized, clang is badly broken. It often crashes and this  <br>is  the 'make test' result:<br><br>--- Running clang tests for x86_64-apple-darwin10.0.0 ---<br>[..]<br>   Expected Passes    : 1496<br>   Expected Failures  : 15<br>   Unexpected Failures: 118<br><br>Unexpected failures append in many test sections  (Analyze, Codegen,  <br>Frontend, Preprocess, Sema, etc…).<br><br>Is it a known issue  ? Is there any chance it works better if I  <br>compile llvm-gcc myself using a newer codebase ?<br><br>Thanks<br><br>-- Jean-Daniel<br><br><br><br><br><br>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></div></blockquote></div><br></div></body></html>