[cfe-dev] clang and boost
Mark A. Lyan
omineo at gmail.com
Thu Apr 7 11:33:14 PDT 2011
On Thu, Apr 7, 2011 at 9:17 AM, Reid Kleckner <reid.kleckner at gmail.com>wrote:
> IIUC the issue is that clang masquerades as gcc 4.2.1 to match
> llvm-gcc, setting __GNUC__, __GNUC_MINOR__, and GNUC_PATCH_LEVEL__ to
> 4, 2, and 1. However, Mark doesn't happen to have gcc 4.2.1's
> headers. Boost seems to be attempting to include specifically the
> headers that go with the version of the compiler being used. Clang
> will attempt to use the latest gcc headers installed. Anybody know
> why? IMO this logic should be disabled ifdef __clang__.
>
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.
But, that might work for the near future. Thanks much for your advice.
>
> Reid
>
> On Thu, Apr 7, 2011 at 6:16 AM, Hendrik vP
> <variadic.template at googlemail.com> wrote:
> > To me, it seems more like a boost-issue than a clang-issue, maybe you are
> > more successful on the boost-mailinglist.
> >
> > 2011/4/6 Mark A. Lyan <omineo at gmail.com>
> >>
> >> Dear clang/LLVM gurus-
> >>
> >> I'm trying clang (off of the trunk) to try and build our C/C++ sources.
> >>
> >> Clang compiled the C files properly and a few C++ files OK as well. The
> >> problem I currently see is with C++ sources files that use boost
> headers.
> >> The boost headers have relative paths for some headers and clang is
> unable
> >> to get to them.
> >>
> >>
> >> Any clues to get this working?
> >>
> >> Thanks,
> >> -KC
> >>
> >> An example:
> >>
> >> clang: warning: argument unused during compilation: '-mcld'
> >> clang: warning: argument unused during compilation: '-fPIE'
> >> In file included from AtomicFileStream.cc:14:
> >> In file included from include/Exceptions.hh:9:
> >> In file included from linux64/include/boost/tr1/tr1/iomanip:16:
> >>
> >>
> bora/build/package/COMPONENTS/boost1430_lin64_gcc412/ob-387294/linux64/include/boost/tr1/detail/config_all.hpp:151:12:
> >> fatal error: '../4.2.1/utility' file not found
> >> # include BOOST_TR1_STD_HEADER(utility)
> >> ^
> >>
> >>
> bora/build/package/COMPONENTS/boost1430_lin64_gcc412/ob-387294/linux64/include/boost/tr1/detail/config_all.hpp:95:44:
> >> note: instantiated from:
> >> # define BOOST_TR1_STD_HEADER(name)
> >> <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
> >> ^
> >> 1 error generated.
> >>
> >>
> >> Thanks,
> >> -KC
> >>
> >>
> >> _______________________________________________
> >> cfe-dev mailing list
> >> cfe-dev at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >>
> >
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110407/1cafe0a3/attachment.html>
More information about the cfe-dev
mailing list