Hi,

I going to enable ASAN for my C++ program,i install libasan package, i get 
this error message, i don't know how to resolve it?

[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 g++... g++
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.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by usb configure 1.3.1, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure CXXFLAGS=-fsanitize=address -ggdb

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.32-279.el6.i686
uname -s = Linux
uname -v = #1 SMP Fri Jun 22 10:59:55 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /home/raminfp/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2138: checking for a BSD-compatible install
configure:2206: result: /usr/bin/install -c
configure:2217: checking whether build environment is sane
configure:2277: result: yes
configure:2418: checking for a thread-safe mkdir -p
configure:2457: result: /bin/mkdir -p
configure:2470: checking for gawk
configure:2486: found /usr/bin/gawk
configure:2497: result: gawk
configure:2508: checking whether make sets $(MAKE)
configure:2530: result: yes
configure:2725: checking for C++ compiler version
configure:2733: g++ --version >&5
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 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.

configure:2737: $? = 0
configure:2744: g++ -v >&5
Using built-in specs.
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla 
--enable-bootstrap --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-gnu-unique-object 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk 
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib 
--with-ppl --with-cloog --with-tune=generic --with-arch=i686 
--build=i686-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) 
configure:2748: $? = 0
configure:2755: g++ -V >&5
g++: '-V' option must have argument
configure:2759: $? = 1
configure:2782: checking for C++ compiler default output file name
configure:2804: g++ -fsanitize=address -ggdb   conftest.cpp  >&5
cc1plus: error: unrecognized command line option "-fsanitize=address"
configure:2808: $? = 1
configure:2846: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "usb"
| #define PACKAGE_TARNAME "usb"
| #define PACKAGE_VERSION "1.3.1"
| #define PACKAGE_STRING "usb 1.3.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "usb"
| #define VERSION "1.3.1"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2852: error: in `/root/usb':
configure:2855: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-fsanitize=address -ggdb'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++
ac_cv_env_GLIBMM_CFLAGS_set=
ac_cv_env_GLIBMM_CFLAGS_value=
ac_cv_env_GLIBMM_LIBS_set=
ac_cv_env_GLIBMM_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBXMLXX_CFLAGS_set=
ac_cv_env_LIBXMLXX_CFLAGS_value=
ac_cv_env_LIBXMLXX_LIBS_set=
ac_cv_env_LIBXMLXX_LIBS_value=
ac_cv_env_OPENSSL_CFLAGS_set=
ac_cv_env_OPENSSL_CFLAGS_value=
ac_cv_env_OPENSSL_LIBS_set=
ac_cv_env_OPENSSL_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SQLITE3_CFLAGS_set=
ac_cv_env_SQLITE3_CFLAGS_value=
ac_cv_env_SQLITE3_LIBS_set=
ac_cv_env_SQLITE3_LIBS_value=
ac_cv_env_UUID_CFLAGS_set=
ac_cv_env_UUID_CFLAGS_value=
ac_cv_env_UUID_LIBS_set=
ac_cv_env_UUID_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /root/usb/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /root/usb/missing --run tar'
AM_BACKSLASH=''
AM_DEFAULT_VERBOSITY=''
AR=''
AUTOCONF='${SHELL} /root/usb/missing --run autoconf'
AUTOHEADER='${SHELL} /root/usb/missing --run autoheader'
AUTOMAKE='${SHELL} /root/usb/missing --run automake-1.11'
AWK='gawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-fsanitize=address -ggdb'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GLIBMM_CFLAGS=''
GLIBMM_LIBS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBPPARAM_SO_VERSION=''
LIBS=''
LIBTOOL=''
LIBXMLXX_CFLAGS=''
LIBXMLXX_LIBS=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAJOR_VERSION=''
MAKEINFO='${SHELL} /root/usb/missing --run makeinfo'
MICRO_VERSION=''
MINOR_VERSION=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPENSSL_CFLAGS=''
OPENSSL_LIBS=''
OTOOL64=''
OTOOL=''
PACKAGE='usb'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='usb'
PACKAGE_RPMNAME=''
PACKAGE_RPMVERSION=''
PACKAGE_STRING='usb 1.3.1'
PACKAGE_TARNAME='usb'
PACKAGE_VERSION='1.3.1'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
RELEASE_VERSION=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SQLITE3_CFLAGS=''
SQLITE3_LIBS=''
STRIP=''
UUID_CFLAGS=''
UUID_LIBS=''
VERSION='1.3.1'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /root/usb/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "usb"
#define PACKAGE_TARNAME "usb"
#define PACKAGE_VERSION "1.3.1"
#define PACKAGE_STRING "usb 1.3.1"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE "usb"
#define VERSION "1.3.1"

configure: exit 77

Reply via email to