Compiling R9C in Debian Woody
Mikael Pettersson
mikpe@REDACTED
Wed Dec 3 13:34:48 CET 2003
fille manjong writes:
> Hi,
>
> I am trying to compile R9C in Debian woody and get the error "undefined
> reference to `erts_restore_x87'" (See excerpt below)
> My environment is User mode linux linuxuml-2.4.18-45 and root_fs_woody.bz2
> (modified to with gcc 3.04) from
> http://sourceforge.net/project/showfiles.php?group_id=13751
> Compiling R9C in the host environment, which is Redhat 8.0 and gcc 2.95,
> works without problems.
>
> Any suggestions to why I get this error?
In the ./configure step, did it or did it not detect support for
reliable floating-point exceptions?
HiPE requires reliable f.p. exceptions on Linux/x86. If they aren't
available, a linkage error like the one you showed will occur.
What does `uname -s` and `uname -m` say in your UML environment?
If your UML environment doesn't provide reliable f.p. exceptions,
then you should use ./configure --disable-hipe.
On an unrelated note: gcc-3.0 is known to have bugs related to it
generating code that touches stack slots _below_ the stack pointer.
Please switch to a saner compiler, like 3.2.3 or 3.3.2.
/Mikael
More information about the erlang-questions
mailing list