[erlang-questions] HiPE on ARM Build Issue

Andrew Wiley <>
Sat Apr 14 07:43:08 CEST 2012


I'm trying to get Erlang with HiPE to build on an ARMv7 box (a Trimslice -
http://trimslice.com/ <http://trimslice.com/web/> ), and I'm getting an
undefined reference to am_arm. I'm building R15B01, and the build commands
I'm using are:
./otp_build autoconf
./otp_build configure --enable-native-libs --enable-hipe --prefix=/usr
--enable-smp-support --enable-threads
./otp_build boot

The build failure looks like this:
gcc  -g  -O3 -fomit-frame-pointer
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-tree-copyrename
 -D_GNU_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS
 -Iarmv7l-unknown-linux-gnu/opt/smp -Ibeam -Isys/unix -Isys/common
-Iarmv7l-unknown-linux-gnu -Izlib  -Ipcre -Ihipe -I../include
-I../include/armv7l-unknown-linux-gnu -I../include/internal
-I../include/internal/armv7l-unknown-linux-gnu -c beam/erl_bif_info.c -o
beam/erl_bif_info.c: In function âsystem_info_1â:
beam/erl_bif_info.c:2133:2: error: âam_armâ undeclared (first use in this
beam/erl_bif_info.c:2133:2: note: each undeclared identifier is reported
only once for each function it appears in
make[3]: *** [obj/armv7l-unknown-linux-gnu/opt/smp/erl_bif_info.o] Error 1
make[3]: Leaving directory
make[2]: *** [opt] Error 2
make[2]: Leaving directory
make[1]: *** [smp] Error 2
make[1]: Leaving directory
make: *** [emulator] Error 2

It looks like am_x86 is declared in
erts/emulator/armv7l-unknown-linux-gnu/erl_atom_table.h; should am_arm be
in there as well?
I'm not sure what else would be helpful to diagnose this, but here's `uname
Linux tseng 3.2.1-1-ARCH #1 SMP PREEMPT Sun Jan 22 06:37:13 UTC 2012 armv7l
ARMv7 Processor rev 0 (v7l) trimslice GNU/Linux

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120414/4c4f5208/attachment.html>

More information about the erlang-questions mailing list