[erlang-questions] HiPE on powerpc

Sergei Golovan sgolovan@REDACTED
Fri Nov 16 20:03:20 CET 2007


Hi!

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

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)
 	ARCH=ultrasparc
 	;;
+ppc64-4)
+	AC_MSG_RESULT(yes: adjusting ARCH=ppc64 to ARCH=ppc)
+	ARCH=ppc
+	;;
 *)
 	AC_MSG_RESULT(no)
 	;;
-----------------

The build was on Debian GNU/Linux (unstable branch). The full build
log is available at
http://experimental.debian.net/build.php?arch=powerpc&pkg=erlang&ver=1:11.b.5dfsg-9

-- 
Sergei Golovan



More information about the erlang-questions mailing list