Thanks Christopher.<br><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 10:22 AM, Christopher Jefferson <span dir="ltr"><<a href="mailto:chris@bubblescope.net">chris@bubblescope.net</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><br>
On 7 Apr 2011, at 17:17, Reid Kleckner wrote:<br>
<br>
> 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>
><br> 
<br></div></blockquote><div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
</div>Which boost version are you using?<br>
<br></blockquote><div><br>I'm using boost-1.43 as of now. But, will try to upgrade to 1.46.1 and see if that helps. <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Only very recently has boost and clang started working well together. I would advise upgrading to the latest version of boost.<br>
<br>
Chris<br>
<div><div></div><div class="h5"><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>
>>><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>
>>> _______________________________________________<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>
><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>
</div></div></blockquote></div><br>