[erlang-questions] HiPE on powerpc

Sergei Golovan <>
Fri Nov 16 20:03:20 CET 2007


When building Erlang/OTP (R11B-5) with HiPE enabled on powerpc64
machine (but compiler generated 32-bit code) there is the following

beam/erl_bif_info.c: In function 'system_info_1':
beam/erl_bif_info.c:1221: error: 'am_powerpc' undeclared (first use in
this function)

which usually appears if HiPE arcitecture is incorrect.

Shouldn't HiPE architecture be adjusted in this case? Is the following
patch correct?

--- erlang.orig/erts/configure.in
+++ erlang/erts/configure.in
@@ -372,6 +372,10 @@
 	AC_MSG_RESULT(yes: adjusting ARCH=sparc64 to ARCH=ultrasparc)
+	AC_MSG_RESULT(yes: adjusting ARCH=ppc64 to ARCH=ppc)
+	ARCH=ppc
+	;;

The build was on Debian GNU/Linux (unstable branch). The full build
log is available at

Sergei Golovan

More information about the erlang-questions mailing list