[cfe-dev] Error while building llvm/clang

Friedman, Eli via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 27 12:54:36 PDT 2017


On 7/27/2017 12:32 PM, Shreyans Doshi via cfe-dev wrote:
> I'm newbie to llvm/clang development. So, I'm trying to follow the 
> steps mentioned on https://clang.llvm.org/get_started.html. I've 
> skipped optional steps for simplicity. On step 7.4: `make` is to be 
> run. On running it, upto 72% it is fine.
> After that, I'm getting following error:
>
>     [ 72%] Building CXX object
>     tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Targets.cpp.o
>     In file included from
>     /home/thereal/svn/llvm/tools/clang/lib/Basic/Targets.cpp:19:0:
>     /home/thereal/svn/llvm/tools/clang/lib/Basic/Targets/ARM.h:55:34:
>     error: ‘ARMV4T’ is not a member of ‘llvm::ARM::ArchKind’
>        llvm::ARM::ArchKind ArchKind = llvm::ARM::ArchKind::ARMV4T;
>                                       ^~~~
>     make[2]: ***
>     [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Targets.cpp.o]
>     Error 1
>     make[1]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all]
>     Error 2
>     make: *** [all] Error 2
>

It looks like you got unlucky and checked out a revision which doesn't 
build (or you have mismatched revisions of LLVM and clang); try updating 
clang and LLVM to the latest revision, and build again.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170727/e3c56d1c/attachment.html>


More information about the cfe-dev mailing list