[cfe-dev] Problem compiling with -fsanitize=dataflow

Frederico Araujo araujof at gmail.com
Mon May 26 08:41:45 PDT 2014


Dear list,

Have anybody compile a project using GNU configure with clang as compiler
and with the dataflow sanitizer option enabled? I tried compiling several
open source projects (e.g., Apache Httpd, Apache APR, Nginx) with dfsan and
all fail on the configure step when performing the usual checks for system
types, functions, etc.

Interestingly, compiling with other sanitizers such as "memory" or
"address" work fine. These are the variables I set for compilation:

CC=<path-to-my-clang installation, compiled with cmake>
CFLAGS="-fsanitize=dataflow"

Notes: when using dfsan, I have to specify -S for the configure script to
pass the C compiler check, otherwise the compiler check fails. With -S flag
specified, the GNU configure script fails on the sanity checks for system
functions and types. With the other sanitizers I don't need this and
everything works fine. I also tried setting the configure script LDLIBS
with the dfsan libraries, again without success.

I tried for days playing with different options of the GNU configure
scripts, but no luck so far. I think I'm missing something, since compiling
with the other sanitizers work. Any help will be much appreciated!

Thanks,
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140526/0c84e4d3/attachment.html>


More information about the cfe-dev mailing list