<div dir="ltr">Hi Csaba,<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 27, 2014 at 2:57 AM, Csaba Raduly <span dir="ltr"><<a href="mailto:rcsaba@gmail.com" target="_blank">rcsaba@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Frederico,<br>
<br>
Unfortunately, you did not provide enough information to allow<br>
diagnosing your problem.<br>
You did not show us the commands you ran; you did not show us the<br>
error messages.</blockquote><div><br></div><div>Sorry, my bad. I should have replied this message to my previous email which contains the error messages from config.log. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
<br>
On Mon, May 26, 2014 at 5:41 PM, Frederico Araujo wrote:<br>
> Dear list,<br>
><br>
> Have anybody compile a project using GNU configure with clang as compiler<br>
> and with the dataflow sanitizer option enabled? I tried compiling several<br>
> open source projects (e.g., Apache Httpd, Apache APR, Nginx) with dfsan and<br>
> all fail on the configure step when performing the usual checks for system<br>
> types, functions, etc.<br>
<br>
</div>What was the error message? Did you check config.log?<br></blockquote><div><br></div><div>Just in case someone else makes the same mistake, the problem is that I had two versions of clang installed in my system, one compiled with configure/make and the other with cmake. I mistakenly used the former, which does not build the ABI list, as explained by Peter in a previous message. That's why the compilation step failed when trying to run configure for any of my applications. Please correct me if this is not accurate. <br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
><br>
> Interestingly, compiling with other sanitizers such as "memory" or "address"<br>
> work fine. These are the variables I set for compilation:<br>
><br>
> CC=<path-to-my-clang installation, compiled with cmake><br>
> CFLAGS="-fsanitize=dataflow"<br>
<br>
</div>Did you run "make install" and use /usr/local/bin/clang, or did you<br>
just point CC at 'Release+Asserts/bin/clang' ?<br></blockquote><div><br></div><div>I did not run install. I included on my PATH both the bin and lib folders from my local compilation of clang. Is that a problem? I did that because I was learning clang and had more than one compiled version of it (one compiled with gnu configure/make and another with cmake). I will probably stick with the cmake-generated version for now.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
><br>
> Notes: when using dfsan, I have to specify -S for the configure script to<br>
<br>
</div>How did you specify -S to the configure script? It does not have such an option:<br>
<br>
$ ./configure -S<br>
configure: error: unrecognized option: `-S'<br>
Try `./configure --help' for more information<br>
<div class=""><br>
> pass the C compiler check, otherwise the compiler check fails. With -S flag<br>
> specified, the GNU configure script fails on the sanity checks for system<br>
<br>
</div>Did you mean 'with' or 'without' ?<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>Actually, I meant -S option to the clang compiler, to generate textual assembly rather than binary assembly. But this was a wrong. The problem is that I was using the wrong version of clang, as mentioned before. </div>
<div><br></div><div>Thanks a lot for your comments,</div><div>Fred</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
> functions and types. With the other sanitizers I don't need this and<br>
> everything works fine. I also tried setting the configure script LDLIBS with<br>
> the dfsan libraries, again without success.<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">Csaba<br>
--<br>
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++<br>
The Tao of math: The numbers you can count are not the real numbers.<br>
Life is complex, with real and imaginary parts.<br>
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds<br>
"People disagree with me. I just ignore them." -- Linus Torvalds<br>
</font></span></blockquote></div><br></div></div>