<div>
                    <font face="Geneva">Hello,</font>
                </div><div><font face="Geneva"><br></font></div><div><font face="Geneva">I built Clang and LLVM 3.1 on OS X using the following configure command:</font></div><div><font face="Geneva"><br></font></div><div><font face="Geneva">configure --with-gcc-toolchain=/opt/local/ --prefix=/opt/clang-3.1/ --enable-targets=x86_64,x86 --enable-optimized</font></div><div><font face="Geneva"><br></font></div><div><font face="Geneva">the reason for the gcc-tolchain location is to use the macports gcc 4.6 libstdc++ in order to support more of C++11.  I also made the following changes to InitHeaderSearch::AddDefaultCIncludePaths:</font></div><div><font face="Geneva"><br></font></div><div><font face="Geneva"><div>void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,</div><div>                                            const HeaderSearchOptions &HSOpts) {</div><div>  llvm::Triple::OSType os = triple.getOS();</div><div><br></div><div>  if (HSOpts.UseStandardSystemIncludes) {</div><div>    switch (os) {</div><div>    case llvm::Triple::FreeBSD:</div><div>    case llvm::Triple::NetBSD:</div><div>      break;</div><div>    default:</div><div>      // FIXME: temporary hack: hard-coded paths.</div><div>      //AddPath("/usr/local/include", System, true, false, false);</div><div>      </div><div>      AddPath("/opt/local/include/gcc46/c++", System, true, false, false);</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>  AddPath("/opt/local/include/gcc46/c++/x86_64-apple-darwin11/.", System, true, false, false);</div><div>      AddPath("/opt/local/include/gcc46/c++/backward/", System, true, false, false);</div><div>      AddPath("/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3/include", System, true, false, false);</div><div>      AddPath("/usr/local/include", System, true, false, false);</div><div>      AddPath("/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3/include-fixed", System, true, false, false);</div><div>      AddPath("/usr/include", System, true, false, false);</div><div><br></div><div>      break;</div><div>    }</div><div>  }</div></font></div><div><font face="Geneva"><br></font></div><div><font face="Geneva"><br></font></div><div><font face="Geneva">Then when building a C source file I get the following error:</font></div><div><font face="Geneva"><br></font></div><div><font face="Geneva"><div>In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:</div><div>In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21:</div><div>In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:</div><div>In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:129:</div><div>In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32:</div><div>In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29:</div><div>/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3/include/xmmintrin.h:102:10: error: invalid conversion between vector type '__m128' and integer type 'int' of different size</div><div><br></div><div>Any ideas?</div></font></div>
                <div><div><br></div>-- <br>Gabe Rives-Corbett<br><div><br></div></div>