[erlang-questions] Yet another cross-compilation question

Mark Scandariato mark@REDACTED
Sun Dec 21 23:17:32 CET 2008


On Fri, Dec 19, 2008 at 12:14 PM, Mikael Pettersson <mikpe@REDACTED> wrote:

> 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.


Until (if?) I can get a newer version of gcc for microblaze, how horrible
would it be to compile beam_emu.c without any optimization? (It does compile
without optimization.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081221/e61d3ba9/attachment.htm>


More information about the erlang-questions mailing list