[llvm-commits] trying to build lld

Michael Spencer bigcheesegs at gmail.com
Wed Mar 28 16:52:25 PDT 2012


On Wed, Mar 28, 2012 at 10:31 AM, Marshall Clow <mclow.lists at gmail.com> wrote:
> When I try to build TOT lld, I get an error:
>
>> [100%] Building CXX object tools/lld-core/CMakeFiles/lld-core.dir/lld-core.cpp.o
>> /Volumes/EyeFive/Marshall/Sources/LLVM/lld/tools/lld-core/lld-core.cpp:126:35: error: implicit instantiation of undefined template
>>       'llvm::ArrayRef<unsigned char>'
>>   virtual llvm::ArrayRef<uint8_t> rawContent() const {
>>                                   ^
>> /Volumes/EyeFive/Marshall/Sources/LLVM/lld/include/lld/Core/DefinedAtom.h:20:9: note: template is declared here
>>   class ArrayRef;
>>         ^
>>
>
>
> Adding an include for <ArrayRef.h> fixes the problem:
>
> Index: tools/lld-core/lld-core.cpp
> ===================================================================
> --- tools/lld-core/lld-core.cpp (revision 153576)
> +++ tools/lld-core/lld-core.cpp (working copy)
> @@ -21,6 +21,7 @@
>
>  #include "llvm/ADT/OwningPtr.h"
>  #include "llvm/ADT/StringRef.h"
> +#include "llvm/ADT/ArrayRef.h"
>  #include "llvm/ADT/SmallString.h"
>  #include "llvm/ADT/Twine.h"
>  #include "llvm/Support/CommandLine.h"
>
> Ok to commit?
>
> -- Marshall
>
> Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>
>
> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
>        -- Yu Suzuki
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

I wasn't building with the latest version of llvm, sorry about that.
This is ok to commit.

- Michael Spencer




More information about the llvm-commits mailing list