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

Csaba Raduly rcsaba at gmail.com
Tue May 27 14:45:40 PDT 2014


Hi Frederico,
Sorry, I didn't see your second mail when I started replying.

On Tue, May 27, 2014 at 4:17 PM, Frederico Araujo  wrote:
(snip)
>> > 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"
>>
>> Did you run "make install" and use /usr/local/bin/clang, or did you
>> just point CC at 'Release+Asserts/bin/clang' ?
>
>
> 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.

This is probably irrelevant now, but I thought: maybe the problem was
that the freshly built clang executable can't find its headers or libs
until it all falls into place during "make install".

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list