Maybe you can find a used Android cell phone somewhere? They typically have 256 MB RAM and as much "disk" as you can put on an MicroSD card.<div><br><div>Or, for $35, the Raspberry Pi would be a nice little target. Linux, ARM, networking, desktop!</div>
<div><br></div><div><br><br><br>Sincerely,<br><br>Jon Watte<br><br><br>--<br>"I pledge allegiance to the flag of the United States of America, and to the republic for which it stands, one nation indivisible, with liberty and justice for all."<br>
~ Adopted by U.S. Congress, June 22, 1942<br><br>
<br><br><div class="gmail_quote">On Sat, Apr 14, 2012 at 1:12 AM, Kostis Sagonas <span dir="ltr"><<a href="mailto:kostis@cs.ntua.gr">kostis@cs.ntua.gr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 04/14/2012 09:24 AM, Andrew Wiley wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Sat, Apr 14, 2012 at 12:43 AM, Andrew Wiley <<a href="mailto:wiley.andrew.j@gmail.com" target="_blank">wiley.andrew.j@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:wiley.andrew.j@gmail.com" target="_blank">wiley.andrew.j@gmail.<u></u>com</a>>> wrote:<br>
<br>
    Hello,<br>
<br>
    I'm trying to get Erlang with HiPE to build on an ARMv7 box (a<br></div>
    Trimslice - <a href="http://trimslice.com/" target="_blank">http://trimslice.com/</a> <<a href="http://trimslice.com/web/" target="_blank">http://trimslice.com/web/</a>> ), and<div class="im"><br>
    I'm getting an undefined reference to am_arm. I'm building R15B01,<br>
    and the build commands I'm using are:<br>
    ./otp_build autoconf<br></div>
    ./configure --enable-native-libs --enable-hipe<div class="im"><br>
    --prefix=/usr --enable-smp-support --enable-threads<br>
    ./otp_build boot<br>
<br>
    The build failure looks like this:<br></div>
    ...<div class="im"><br>
<br>
    It looks like am_x86 is declared in<br>
    erts/emulator/armv7l-unknown-<u></u>linux-gnu/erl_atom_table.h; should<br>
    am_arm be in there as well?<br>
    I'm not sure what else would be helpful to diagnose this, but here's<br>
    `uname -a`:<br>
    Linux tseng 3.2.1-1-ARCH #1 SMP PREEMPT Sun Jan 22 06:37:13 UTC 2012<br>
    armv7l ARMv7 Processor rev 0 (v7l) trimslice GNU/Linux<br>
<br></div><div class="im">
Just saw<br>
<a href="http://erlang.org/pipermail/erlang-bugs/2006-December/000268.html" target="_blank">http://erlang.org/pipermail/<u></u>erlang-bugs/2006-December/<u></u>000268.html</a> and it<br>
looks like I'm having the same issue. Are there any plans to try to fix<br>
</div><a href="http://configure.in" target="_blank">configure.in</a> <<a href="http://configure.in" target="_blank">http://configure.in</a>> so that ARM builds like this either<div class="im"><br>
work or produce an error?<br>
</div></blockquote>
<br>
In the HiPE team we would very much like to support the ARM architecture<br>
but the problem these days - for quite some time actually - is that we do not have access to any machine with an ARM processor. It's very painful to be testing ARM using QEMU, esp. all sorts of different ARMs that exist these days. Hence, occasionally code tends to rot or, as in this case which involves a newer ARMv7, code has never been tested on newer architectures.<br>

<br>
(I do not know what sort of access to ARM machines the Erlang/OTP team at Ericsson has, but I suspect that they do not have access to all possible ARMs either.)<br>
<br>
In this particular case, I would recommend that you extend the following lines in erts/<a href="http://configure.in" target="_blank">configure.in</a><br>
<br>
    armv5b)     ARCH=arm;;<br>
    armv5teb)   ARCH=arm;;<br>
    armv5tel)   ARCH=arm;;<br>
<br>
with the line that corresponds to your newer armv7 and test to see what happens.  If all goes well, please submit a patch using git.<br>
<br>
Also, since you are on an unexplored territory, I would recommend to build Erlang/OTP in two steps. First do:<br>
<br>
        ./configure --enable-hipe ...<br>
<br>
which will test if Erlang/OTP can be built with HiPE support, and only if that works do:<br>
<br>
        make clean  // or start from a fresh copy, for extra safety<br>
        ./configure --enable-hipe ... --enable-native-libs<br>
<br>
which will additionally test that the HiPE compiler generates correct native code and is able to self-compile itself (as well as many of the Erlang/OTP libraries: currently kernel, stdlib, compiler, syntax_tools, hipe, dialyzer, and typer).<br>

<br>
In any case, please report your findings here.<br>
<br>
Kostis<br>
<br>
PS. We welcome support, for example, donations of ARM-based machines that we can be using to test the HiPE compiler or its newer LLVM-based back-end (see <a href="http://erllvm.softlab.ntua.gr/" target="_blank">http://erllvm.softlab.ntua.gr/</a><u></u>) more regularly. Similar with other exotic architectures that people these days care about. Minimally, if you want native code for some configuration other than x86 and x86_64-based machines, give us some form of remote access to it.<br>

______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote></div><br></div></div>