The instructions aren't quite correct, they miss the LDFLAGS setting.
I emailed Hanno, not sure when he fixes this.
> so i use : ./configure --disable-shared CFLAGS="-fsanitize=address -ggdb"
> CXXFLAGS="-fsanitize=address -ggdb"
>
> again i got error:
>
> c++: error: unrecognized command line option '-fsanitize=address'
Please try to execute
gcc --version
g++ --version
c++ --version
and report your findings.
> On Friday, July 7, 2017 at 11:18:33 AM UTC+4:30, Yuri Gribov wrote:
>>
>> On Fri, Jul 7, 2017 at 7:32 AM, Ramin Farajpour Cami
>> <
ramin.b...@gmail.com> wrote:
>> > Yuri,
>> >
>> > again i have error:
>> >
>> > [root@localhost usb]# ./configure CXXFLAGS="-fsanitize=address -ggdb"
>> > checking for a BSD-compatible install... /usr/bin/install -c
>> > checking whether build environment is sane... yes
>> > checking for a thread-safe mkdir -p... /bin/mkdir -p
>> > checking for gawk... gawk
>> > checking whether make sets $(MAKE)... yes
>> > checking for C++ compiler default output file name...
>> > configure: error: in `/root/usb':
>> > configure: error: C++ compiler cannot create executables
>> > See `config.log' for more details.
>>
>> Ramin,
>>
>> First of all, you should add -fsanitize=address to CFLAGS, CXXFLAGS and
>> LDFLAGS.
>>
>> If that does not help, you'll need to investigate why compiler test
>> inside configure fails. You can find particular source code and
>> command line options which cause your g++ compilation to abort in
>> config.log.
>>
>> -Y
>
> --
> You received this message because you are subscribed to the Google Groups
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
address-saniti...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.