[cfe-dev] Build LLVM/Clang for Pandaboard

Yuan-Yi Chang changyy.csie at gmail.com
Tue Jun 5 23:05:44 PDT 2012


Hi, 

I'm new to LLVM World! I wanna build LLVM for Pandaboard Platform. Is there
any better method without building on pandaboard?

current status:

Device: Pandaboard ES 
OS: ubuntu-12.04-preinstalled-server-armhf+omap4
SD: Transcend SDHC Class10 8GB 

1.Install Ubuntu 12.04 server on Pandaboard
(ubuntu-12.04-preinstalled-server-armhf+omap4.img.gz)
2.Initial building enviroments
 - $ sudp apt-get update && sudo apt-get upgrade
 - $ sudo apt-get install subversion gcc g++ make cmake 
3.Get LLVM/Clang source code
 - $ svn co http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_31/final/
llvm-src/
 - $ cd ~/llvm-src/tools/
 - $ svn co http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final/
clang
 - $ cd ~/llvm-src/projects/
 - $ svn co
http://llvm.org/svn/llvm-project/compiler-rt/tags/RELEASE_31/final/
compiler-rt
4. Build it
 - $ mkdir ~/bulid && cd ~/build && cmake
-DCMAKE_INSTALL_PREFIX:PATH=$HOME/out ../llvm-src 
 - $ make -j2 (about 120 mins)
 - $ make install
5. Testing
 - $ ~/out/bin/llvm-config
   llvm-config --version
   3.1svn
 - $ ~/out/bin/clang --version
   clang version 3.1 (tags/RELEASE_31/final 158045)
   Target: armv7l-unknown-linux-gnueabihf
   Thread model: posix

Best Regards, 
Yuan-Yi Chang

--
View this message in context: http://clang-developers.42468.n3.nabble.com/Build-LLVM-Clang-for-Pandaboard-tp4024304.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list