<br><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 9:17 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:reid.kleckner@gmail.com">reid.kleckner@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;">
IIUC the issue is that clang masquerades as gcc 4.2.1 to match<br>
llvm-gcc, setting __GNUC__, __GNUC_MINOR__, and GNUC_PATCH_LEVEL__ to<br>
4, 2, and 1.  However, Mark doesn't happen to have gcc 4.2.1's<br>
headers.  Boost seems to be attempting to include specifically the<br>
headers that go with the version of the compiler being used.  Clang<br>
will attempt to use the latest gcc headers installed.  Anybody know<br>
why?  IMO this logic should be disabled ifdef __clang__.<br></blockquote><div><br>Hm.. interesting. So, if I were to add a __clang__ clause and define my own path there, it would work, but, I do not want to patching boost and carry these patches on, everytime I upgrade. <br>
<br>But, that might work for the near future. Thanks much for your advice.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Reid<br>
<br>
On Thu, Apr 7, 2011 at 6:16 AM, Hendrik vP<br>
<<a href="mailto:variadic.template@googlemail.com">variadic.template@googlemail.com</a>> wrote:<br>
> To me, it seems more like a boost-issue than a clang-issue, maybe you are<br>
> more successful on the boost-mailinglist.<br>
><br>
> 2011/4/6 Mark A. Lyan <<a href="mailto:omineo@gmail.com">omineo@gmail.com</a>><br>
<div><div></div><div class="h5">>><br>
>> Dear clang/LLVM gurus-<br>
>><br>
>> I'm trying clang (off of the trunk) to try and build our C/C++ sources.<br>
>><br>
>> Clang compiled the C files properly and a few C++ files OK as well. The<br>
>> problem I currently see is with C++ sources files that use boost headers.<br>
>> The boost headers have relative paths for some headers and clang is unable<br>
>> to get to them.<br>
>><br>
>><br>
>> Any clues to get this working?<br>
>><br>
>> Thanks,<br>
>> -KC<br>
>><br>
>> An example:<br>
>><br>
>> clang: warning: argument unused during compilation: '-mcld'<br>
>> clang: warning: argument unused during compilation: '-fPIE'<br>
>> In file included from AtomicFileStream.cc:14:<br>
>> In file included from include/Exceptions.hh:9:<br>
>> In file included from linux64/include/boost/tr1/tr1/iomanip:16:<br>
>><br>
>> bora/build/package/COMPONENTS/boost1430_lin64_gcc412/ob-387294/linux64/include/boost/tr1/detail/config_all.hpp:151:12:<br>
>> fatal error: '../4.2.1/utility' file not found<br>
>> #  include BOOST_TR1_STD_HEADER(utility)<br>
>>            ^<br>
>><br>
>> bora/build/package/COMPONENTS/boost1430_lin64_gcc412/ob-387294/linux64/include/boost/tr1/detail/config_all.hpp:95:44:<br>
>> note: instantiated from:<br>
>> #        define BOOST_TR1_STD_HEADER(name)<br>
>> <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name><br>
>>                                            ^<br>
>> 1 error generated.<br>
>><br>
>><br>
>> Thanks,<br>
>> -KC<br>
>><br>
>><br>
</div></div>>> _______________________________________________<br>
>> cfe-dev mailing list<br>
>> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><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>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
><br>
</blockquote></div><br>