[mpich-discuss] make error with enable-error-checking
Jain, Rohit
Rohit_Jain at mentor.com
Mon Feb 28 20:00:04 CST 2011
Hi Pavan,
I downloaded the latest version. No longer see earlier issue. But, still not able to do successful build:
mpich2-1.3.3rc1/configure --prefix /u/mpich2_debug/install/mpich2-1.3.3rc1/linux --disable-f77 --disable-fc --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[4]: Entering directory `/u/mpich2_debug/src/pm/hydra'
CCLD hydra_persist
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(traversal.o): In function `gnu_dev_major':
/usr/include/sys/sysmacros.h:43: multiple definition of `gnu_dev_major'
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(topology.o):/usr/include/sys/sysmacros.h:43: first defined here
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(traversal.o): In function `gnu_dev_minor':
/usr/include/sys/sysmacros.h:49: multiple definition of `gnu_dev_minor'
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(topology.o):/usr/include/sys/sysmacros.h:49: first defined here
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(traversal.o): In function `gnu_dev_makedev':
/usr/include/sys/sysmacros.h:55: multiple definition of `gnu_dev_makedev'
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(topology.o):/usr/include/sys/sysmacros.h:55: first defined here
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(traversal.o): In function `feof_unlocked':
/usr/include/bits/stdio.h:113: multiple definition of `feof_unlocked'
/u/mpich2_debug/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(topology.o):/usr/include/bits/stdio.h:113: first defined here
I see separate link for hydra download. I just downloaded mpich2 src. Does it have to do with that?
Regards,
Rohit
-----Original Message-----
From: Pavan Balaji [mailto:balaji at mcs.anl.gov]
Sent: Monday, February 28, 2011 3:08 PM
To: mpich-discuss at mcs.anl.gov
Cc: Jain, Rohit
Subject: Re: [mpich-discuss] make error with enable-error-checking
This looks like an error that got fixed a long time ago. Can you try out
the latest version of MPICH2 (1.3.3rc1) to see if that works for you?
-- Pavan
On 02/28/2011 04:06 PM, Jain, Rohit wrote:
> 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
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list