[cfe-dev] Build LLVM/Clang for Pandaboard
Justin Holewinski
justin.holewinski at gmail.com
Wed Jun 6 08:32:49 PDT 2012
On Tue, Jun 5, 2012 at 11:05 PM, Yuan-Yi Chang <changyy.csie at gmail.com>wrote:
> 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
>
I'm not really sure what you're asking. You seem to have it built and
running on the PandaBoard. Are you wanting to build ARM binaries from an
x86 host?
>
> 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.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
--
Thanks,
Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120606/ebb45cda/attachment.html>
More information about the cfe-dev
mailing list