<div dir="ltr"><div><div><div><div>Hi cschen,<br><br></div>Did you run the following command before the apt-get install?<br><br></div>$ sudo apt-get update<br><br></div>Thanks.<br></div>Logan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 3, 2014 at 5:27 PM, gamma_chen <span dir="ltr"><<a href="mailto:gamma_chen@yahoo.com.tw" target="_blank">gamma_chen@yahoo.com.tw</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div><span>Hi,</span></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><br><span></span></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><span>I install Virtual Box on Linux and install debain on VB from web,</span></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><span><a href="https://www.debian.org/releases/wheezy/" target="_blank">https://www.debian.org/releases/wheezy/</a></span></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">Attached file is the source.list I follow your README.md.</div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><br></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">Paste the error as follows,</div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">cschen@debian:~/test/libcxx-scripts$ sudo apt-get install binutils clang-3.5 cmake gcc make<br>[sudo] password for cschen: <br>Reading package lists... Done<br>Building dependency tree <br>Reading state information... Done<br>E: Unable to locate package clang-3.5<br>E: Couldn't find any package by regex 'clang-3.5'<br></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><br></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">My debian version as follows,</div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">cschen@debian:~/test/libcxx-scripts$ cat /etc/issue<br>Debian GNU/Linux 7 \n \l<br><br>cschen@debian:~/test/libcxx-scripts$ cat /proc/version<br>Linux version 3.2.0-4-amd64 (<a href="mailto:debian-kernel@lists.debian.org" target="_blank">debian-kernel@lists.debian.org</a>) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.60-1+deb7u3<br></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><br></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">I
use Virtual Box to try it. Will it a problem with this?</div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><br></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">cschen<br></div><div style="color:rgb(0,0,0);font-size:12px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><span><br></span></div> <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div dir="ltr"> <font face="Arial"> gamma_chen <<a href="mailto:gamma_chen@yahoo.com.tw" target="_blank">gamma_chen@yahoo.com.tw</a>> 於 2014/10/1 (週三) 5:36 AM 寫道﹕<br> </font> </div><div><div class="h5"> <br><br> <div><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div>Logan and Richard,</div><div><br clear="none"></div><div dir="ltr">Thank your quick and kindly help. I am
busy with something else today and will try these script tomorrow.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Best regards</div><div dir="ltr"><br clear="none"></div><div dir="ltr">cschen<br clear="none"></div><div><span></span></div> <div><br clear="none"><br clear="none"></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div dir="ltr"> <font face="Arial"> Logan Chien <<a href="mailto:tzuhsiang.chien@gmail.com" target="_blank">tzuhsiang.chien@gmail.com</a>> 於 2014/10/1 (週三) 1:58 AM 寫道﹕<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div><div><div><div><div dir="ltr"><div><div><div><div><div><div><div><div>Hi cschen,<br clear="none"><br clear="none"></div>Here are the test scripts which I written when I was developing ARM exception handling support:<br clear="none"><a rel="nofollow" shape="rect" href="https://github.com/loganchien/libcxx-scripts" target="_blank">https://github.com/loganchien/libcxx-scripts</a><br clear="none"><br clear="none"></div>The script should work on Debian wheezy (cross-compiling from amd64 to armhf.)<br clear="none"><br clear="none"></div>In general, here are the necessary steps:<br clear="none"></div>1. Get a working arm-linux-gnueabihf gcc/g++ toolchain (for the headers and libraries)<br clear="none"></div>2. Setup the include search path (e.g. /usr/arm-linux-gnueabihf/include)<br clear="none"></div>3. Compile with correct compiler/linker flags (e.g. -target arm-linux-gnueabihf and some cmake tricks)<br clear="none"><br clear="none"></div>Feel free to let me know if you have encountered any problem.<br clear="none"><br clear="none"></div>Sincerely,<br clear="none">Logan<br clear="none"></div><div><br clear="none"><div>On Tue, Sep 30, 2014 at 5:22 PM, Richard Pennington <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:rich@pennware.com" target="_blank">rich@pennware.com</a>></span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><div><div>
<div>On 09/30/2014 02:37 AM, gamma_chen
wrote:<br clear="none">
</div>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px">
<div dir="ltr">The
following web say the libc++abi is ready on arm.</div>
<div dir="ltr"><a rel="nofollow" shape="rect" href="http://libcxxabi.llvm.org/spec.html" target="_blank">http://libcxxabi.llvm.org/spec.html</a></div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">I try to
build libc++ and libc++abi for host x86_64(linux) and target
arm(linux) but fail.</div>
<div dir="ltr">I have read
the web <a rel="nofollow" shape="rect" href="http://llvm.org/docs/HowToCrossCompileLLVM.html" target="_blank">http://llvm.org/docs/HowToCrossCompileLLVM.html</a></div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">Does anyone
know whether it's available for my need? If you know how to
build, what is the build options you use?</div>
<br clear="none">
</div>
</blockquote></div></div>
I use libc++ and libc++abi (as well as compiler-rt) for the ELLCC
cross compilation tool chain project (<a rel="nofollow" shape="rect" href="http://ellcc.org/" target="_blank">http://ellcc.org</a>). I use
makefiles to build the libc++ stuff, which are pretty dependent on
being used in an ELLCC environment. You can get pre built binaries
from <a rel="nofollow" shape="rect" href="ftp://ellcc.org/pub" target="_blank">ftp://ellcc.org/pub</a>. The tarballs contain pre built libraries
for ARM (as well as Mips, x86, PowerPC, and semi-functional
Microblaze).<br clear="none">
<br clear="none">
-Rich<br clear="none">
</div></div>
<br clear="none">_______________________________________________<br clear="none">
LLVM Developers mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a rel="nofollow" shape="rect" href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br clear="none">
<a rel="nofollow" shape="rect" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br clear="none"><br clear="none"></div></div> </div> </div> </div> </div></div></div><br><br></div> </div></div></div> </div> </div> </div></div></blockquote></div><br></div>