undefined reference to 'erts_restore_fpu' valgrind debug build in R13B04

Joe Williams joe@REDACTED
Thu Sep 16 18:55:35 CEST 2010


I am attempting to build (make valgrind FLAVOR=smp) a valgrind runtime and received the following error. Note that a normal debug build worked fine.

<snip>
obj/x86_64-unknown-linux-gnu/valgrind/smp/hipe_amd64_bifs.o: In function `nbif_handle_fp_exception':
/home/joe/otp_src_R13B04/erts/emulator/x86_64-unknown-linux-gnu/valgrind/smp/hipe_amd64_bifs.S:287: undefined reference to `erts_restore_fpu'
collect2: ld returned 1 exit status
make[1]: *** [/home/joe/otp_src_R13B04/bin/x86_64-unknown-linux-gnu/beam.valgrind.smp] Error 1
make[1]: Leaving directory `/home/joe/otp_src_R13B04/erts/emulator'
make: *** [valgrind] Error 2

In some old mailing list posts I found that it might be related to unreliable floating point support. Running configure in erts it looks good:

<snip>
checking for unreliable floating point execptions... reliable
<snip>

 I assume it's related to hipe being enabled. Anyone else run into this?

Thanks.
-Joe


Name: Joseph A. Williams
Email: joe@REDACTED
Blog: http://www.joeandmotorboat.com/
Twitter: http://twitter.com/williamsjoe



More information about the erlang-questions mailing list