<div dir="ltr">Ok, I've carried out the steps recommended, and valgrind-enabled emulator is now up and running. Thank you!<div><br></div><div>Kris<br><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Mar 4, 2014 at 4:39 AM, Sverker Eriksson <span dir="ltr"><<a href="mailto:sverker.eriksson@ericsson.com" target="_blank">sverker.eriksson@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You have to disable hipe:<br>
<br>
./configure --disable-hipe<br>
<br>
<br>
After successful build, set<br>
export VALGRIND_LOG_DIR=/my/valgrind/<u></u>log/dir<br>
export VALGRIND_MISC_FLAGS="--<u></u>suppressions=$ERL_TOP/erts/<u></u>emulator/valgrind/suppress.<u></u>standard --show-possibly-lost=no"<br>
<br>
and run with<br>
$ERL_TOP/bin/cerl -valgrind<span class="HOEnZb"><font color="#888888"><br>
<br>
/Sverker</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 03/04/2014 09:45 AM, Kris Prieb wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello List and Sverker,<br>
<br>
Thank you for your assistance. I did have valgrind installed prior to<br>
running configure, but not its source code. Installing the source code and<br>
running configure again did fix the problem of the missing include file<br>
just as you indicated.<br>
<br>
However, I am still unable to build the valgrind-enabled emulator due to<br>
occurence of other errors. After calling:<br>
<br>
env ERL_TOP=/home/ec2-user/otp_<u></u>src_R16B02 make valgrind FLAVOR=smp<br>
<br>
I receive the following errors:<br>
<br>
...<br>
...<br>
obj/x86_64-unknown-linux-gnu/<u></u>valgrind/smp/hipe_bif0.o:(.<u></u>data+0x5b40):<br>
undefined reference to `nbif_emulate_fpe'<br>
obj/x86_64-unknown-linux-gnu/<u></u>valgrind/smp/hipe_amd64_bifs.<u></u>o: In function<br>
`nbif_handle_fp_exception':<br>
/home/ec2-user/otp_src_R16B02/<u></u>erts/emulator/x86_64-unknown-<u></u>linux-gnu/valgrind/smp/hipe_<u></u>amd64_bifs.S:287:<br>
undefined reference to `erts_restore_fpu'<br>
collect2: ld returned 1 exit status<br>
make[1]: ***<br>
[/home/ec2-user/otp_src_<u></u>R16B02/bin/x86_64-unknown-<u></u>linux-gnu/beam.valgrind.smp]<br>
Error 1<br>
make[1]: Leaving directory `/home/ec2-user/otp_src_<u></u>R16B02/erts/emulator'<br>
<br>
<br>
Would appreciate any suggestions as to how to fix this.<br>
<br>
Kris<br>
<br>
<br>
On Mon, Mar 3, 2014 at 8:45 AM, Sverker Eriksson <<br>
<a href="mailto:sverker.eriksson@ericsson.com" target="_blank">sverker.eriksson@ericsson.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 03/01/2014 12:12 AM, Kris Prieb wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello List,<br>
<br>
I am attempting to build a valgrind-enabled erlang runtime per:<br>
<a href="http://www.erlang.org/doc/installation_guide/INSTALL.html#id72660" target="_blank">http://www.erlang.org/doc/<u></u>installation_guide/INSTALL.<u></u>html#id72660</a><br>
<br>
My platform is an amazon linux machine image on ec2 on which I have<br>
already<br>
installed an erlang disribution from source.<br>
<br>
I entered the following at the command prompt:<br>
<br>
[ec2-user@ip-10-185-52-110 emulator]$ env<br>
ERL_TOP=/home/ec2-user/otp_<u></u>src_R16B02 FLAVOR=smp make valgrind<br>
FLAVOR=$FLAVOR<br>
<br>
The following was returned:<br>
<br>
make -f x86_64-unknown-linux-gnu/<u></u>Makefile TYPE=valgrind<br>
can't open x86_64-unknown-linux-gnu/<u></u>valgrind/plain/erl_compile_<u></u>flags.h<br>
for<br>
writing at utils/make_compiler_flags line 65.<br>
make[1]: Entering directory `/home/ec2-user/otp_src_<u></u>R16B02/erts/emulator'<br>
if utils/gen_git_version x86_64-unknown-linux-gnu/<a href="http://gen_git_version.mk" target="_blank">gen_<u></u>git_version.mk</a>;<br>
then<br>
touch beam/erl_bif_info.c; fi<br>
*** valgrind emulator disabled by configure - omitted target all<br>
make[1]: Leaving directory `/home/ec2-user/otp_src_<u></u>R16B02/erts/emulator'<br>
<br>
<br>
What have I done wrong here? Do I have to run "configure" with special<br>
arguments before building valgrind-enabled runtime?<br>
<br>
Any help would be much appreciated!<br>
Kris<br>
<br>
<br>
</blockquote>
If configure does not find a working valgrind, that target will be<br>
disabled.<br>
<br>
Search for "valgrind" in erts/config.log to see what failed. It probably<br>
failed to compile #include <valgrind/valgrind.h>.<br>
<br>
If your valgrind is installed in a non-standard place, point it out to<br>
configure with CPPFLAGS=-I/my/valgrind/<u></u>install/dir/include.<br>
<br>
/Sverker, Erlang/OTP<br>
<br>
<br>
<br>
<br>
</blockquote></blockquote>
<br>
</div></div></blockquote></div><br></div></div></div>