<div dir="ltr">Hello List and Sverker,<div><br></div><div>Thank you for your assistance. I did have valgrind installed prior to running configure, but not its source code. Installing the source code and running configure again did fix the problem of the missing include file just as you indicated.</div>
<div><br></div><div>However, I am still unable to build the valgrind-enabled emulator due to occurence of other errors. After calling: </div><div><br></div><div><div>env ERL_TOP=/home/ec2-user/otp_src_R16B02 make valgrind FLAVOR=smp</div>
</div><div><br></div><div>I receive the following errors:</div><div><br></div><div>...</div><div>...</div><div><div>obj/x86_64-unknown-linux-gnu/valgrind/smp/hipe_bif0.o:(.data+0x5b40): undefined reference to `nbif_emulate_fpe'</div>
<div>obj/x86_64-unknown-linux-gnu/valgrind/smp/hipe_amd64_bifs.o: In function `nbif_handle_fp_exception':</div><div>/home/ec2-user/otp_src_R16B02/erts/emulator/x86_64-unknown-linux-gnu/valgrind/smp/hipe_amd64_bifs.S:287: undefined reference to `erts_restore_fpu'</div>
<div>collect2: ld returned 1 exit status</div><div>make[1]: *** [/home/ec2-user/otp_src_R16B02/bin/x86_64-unknown-linux-gnu/beam.valgrind.smp] Error 1</div><div>make[1]: Leaving directory `/home/ec2-user/otp_src_R16B02/erts/emulator'</div>
</div><div><br></div><div><br></div><div>Would appreciate any suggestions as to how to fix this.</div><div><br></div><div>Kris<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 8:45 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"><div class="HOEnZb"><div class="h5">On 03/01/2014 12:12 AM, Kris Prieb wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
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 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 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>; 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></div></div>
Kris<br>
<br>
</blockquote>
<br>
If configure does not find a working valgrind, that target will be disabled.<br>
<br>
Search for "valgrind" in erts/config.log to see what failed. It probably failed to compile #include <valgrind/valgrind.h>.<br>
<br>
If your valgrind is installed in a non-standard place, point it out to configure with CPPFLAGS=-I/my/valgrind/<u></u>install/dir/include.<br>
<br>
/Sverker, Erlang/OTP<br>
<br>
<br>
<br>
</blockquote></div><br></div>