Error while building llvm/clang

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error while building llvm/clang

Sumner, Brian via cfe-dev
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


I've not made any changes to the code yet. I just to build it first.

Am I missing any modules ? 
I don't have any clues. Please help me.

Thanks.

Regards
Shreyans Doshi

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while building llvm/clang

Sumner, Brian via cfe-dev
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

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...