[cfe-dev] Building LLVM and Clang with EKOPath 4
annulen at yandex.ru
Wed May 30 12:51:37 PDT 2012
30.05.2012, 22:28, "James Dennett" <james.dennett at gmail.com>:
> On Wed, May 30, 2012 at 11:20 AM, Matthieu Monrocq
> <matthieu.monrocq at gmail.com> wrote:
>> On Wed, May 30, 2012 at 9:56 AM, Konstantin Tokarev <annulen at yandex.ru>
>>> Hi all,
>>> I've managed to build LLVM and Clang with EKOPath 188.8.131.52 compiler. Here
>>> are patches I had to introcduce
>>> to make it compiling.
>>> Patch for clang moves some classes from anonymous namespaces which
>>> otherwise caused linker
>>> errors. Probably it's a bug in compiler producing symbols with incorrect
>>> cfe-dev mailing list
>>> cfe-dev at cs.uiuc.edu
>> I must admit it seems weird to be tweaking the code just to get it to
>> compile with an exotic compiler.
>> Adding includes occurs regularly because the standard does not define which
>> standard includes include which others, so you often miss one or two.
>> On the other hand, it seems strange that you had to add the "std::"
>> qualifiers, remove the anonymous namespace in some places (all ?) and change
>> *--S.end() into S[S.size()-1].
> --S.end() isn't portable if S is a std::string (or a std::vector, come
> to that) -- if the iterator type is a pointer type then decrementing
> an rvalue is ill-formed.
This explanation exactly matches error message I've got from EKOPath.
More information about the cfe-dev