[erlang-questions] Yet another cross-compilation question

Mikael Pettersson mikpe@REDACTED
Fri Dec 19 18:14:52 CET 2008

Mark Scandariato writes:
 > Hi all,
 > I'm trying to cross-compile Erlang (R12B-5) for BlueCat Linux on a Xilinx
 > Microblaze.
 > Configuration was pretty simple (posted here for posterity and possible
 > ridicule):
 > $ export ac_cv_func_getaddrinfo=no
 > $ ./configure --disable-hipe --without-java --without-ssl
 > --build=i686-pc-cygwin --host=microblaze-linux --prefix=/tmp/erlang
 > But the build choked on beam_emu.c:
 > beam/beam_emu.c: In function 'process_main':
 > beam/beam_emu.c:4875: internal compiler error: in redirect_branch_edge, at
 > cfgrtl.c:942
 > gcc is version 4.1.1
 > Any suggestions (other than get a newer/older compiler)? Is this a known
 > problem with gcc 4.1.1?

This very clearly is a gcc bug. gcc-4.1.1 is fairly old, you should try
something newer. I don't recall seeing anything like this problem on any
other platform, so chances are it's a Microblaze-specific bug.

More information about the erlang-questions mailing list