[mpich-discuss] make error with enable-error-checking

Jain, Rohit Rohit_Jain at mentor.com
Mon Feb 28 16:06:22 CST 2011


Thanks. That fixed the problem. 

I was getting more errors later due to undefined VALGRIND symbols, so I removed meminit option from enable_g to get a workable build.

But, I am still seeing following make error:

mpich2-1.2.1p1/configure --prefix /mpich2_debug/install/mpich2-1.2.1p1/linux --enable-sharedlibs=gcc --disable-f77 --disable-f90 --disable-f90modules --disable-cxx --enable-totalview --enable-debuginfo --enable-error-messages=all --enable-error-checking=all --enable-g=dbg,mem CFLAGS=-O3 -fPIC CXXFLAGS=-O3 -fPIC


make[3]: Entering directory `/src/pm/gforker'
cd ../util && make
gcc -O3 -fPIC -g -O2    -o mpiexec mpiexec.o  \
../util/libmpiexec.a ../../../lib/libmpich.a -lpthread   -lrt
../../../lib/libmpich.a(dbginit.o): /src/mpich2-1.2.1p1/src/mpi/debugger/dbginit.c:185: multiple definition of `MPIR_debug_abort_string'
../util/libmpiexec.a(dbgiface.o):/src/mpich2-1.2.1p1/src/pm/gforker/../util/dbgiface.c:82: first defined here
../../../lib/libmpich.a(dbginit.o): In function `MPIR_Breakpoint':
/src/mpich2-1.2.1p1/src/mpi/debugger/dbginit.c:183: multiple definition of `MPIR_debug_state'
../util/libmpiexec.a(dbgiface.o):/src/mpich2-1.2.1p1/src/pm/gforker/../util/dbgiface.c:81: first defined here
collect2: ld returned 1 exit status
make[3]: *** [mpiexec] Error 1
make[3]: Leaving directory `/src/pm/gforker'

Regards,
Rohit


-----Original Message-----
From: Nicolas Rosner [mailto:nrosner at gmail.com] 
Sent: Monday, February 28, 2011 1:01 PM
To: mpich-discuss at mcs.anl.gov
Cc: Jain, Rohit
Subject: Re: [mpich-discuss] make error with enable-error-checking

> What am I missing?

Possibly a "=" followed by a value? According to ./configure --help,

  --enable-error-checking=level
      Control the amount of error checking.
        no        - no error checking
        runtime   - error checking controllable at runtime through
environment variables
        all       - error checking always enabled (default)


HTH,
Nicolás


More information about the mpich-discuss mailing list