On Fri, Jul 7, 2017 at 10:48 AM, Ramin Farajpour Cami <ramin.black...@gmail.com> wrote: > Ok Thanks a lot Yuri, > > you say work ASAN in the version GCC > 4.7.* but i have GCC = 4.9.1 > > do you think i should install GCC 5 resolve my issue? > > > [root@localhost usb]# gcc --version
So what about version of g++ and c++? > gcc (GCC) 4.9.1 20140922 (Red Hat 4.9.1-10) > Copyright (C) 2014 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > > On Friday, July 7, 2017 at 2:00:50 PM UTC+4:30, Yuri Gribov wrote: >> >> On Fri, Jul 7, 2017 at 10:22 AM, Ramin Farajpour Cami >> <ramin.b...@gmail.com> wrote: >> > i don't know, i spend many time for resolve it, but nothing, >> > >> > please look : https://fuzzing-project.org/tutorial2.html >> >> 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. > > -- > 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-sanitizer+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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-sanitizer+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.