[mpich-discuss] Duplicated symbols with GCC 4.4.4 on RHEL 5.5 (1.4rc2)

Yauheni Zelenko zelenko at cadence.com
Fri Apr 29 17:09:25 CDT 2011


Latest snapshot was built properly for me.

Eugene.
________________________________________
From: Pavan Balaji [balaji at mcs.anl.gov]
Sent: Friday, April 29, 2011 2:40 PM
To: mpich-discuss at mcs.anl.gov
Cc: Yauheni Zelenko
Subject: Re: [mpich-discuss] Duplicated symbols with GCC 4.4.4 on RHEL 5.5 (1.4rc2)

I believe this was fixed by the hwloc upgrade after 1.4rc2. Can you try
out the nightly snapshot to make sure?

Thanks,

  -- Pavan

On 04/29/2011 01:28 PM, Yauheni Zelenko wrote:
> Hi!
>
> I have duplicated symbols problem with building 1.4rc2 on Red Hat Enterprise Linux Client release 5.5 (Tikanga) with GCC 4.4.4 without --enable-strict.
>
> Next configuration is fine
>
> ./configure --prefix=${InstallDir}                                      \
>          --with-pm=hydra --with-device=ch3:nemesis                       \
>          --disable-chekpointing                                          \
>          --enable-strict --enable-fast=O3                                \
>          --disable-f77 --disable-fc                                      \
>          CC=/grid/common/pkgs/gcc/v4.4.4/bin/gcc CFLAGS="-m32 -fPIC"     \
>          CPP=/grid/common/pkgs/gcc/v4.4.4/bin/cpp                        \
>          CXX=/grid/common/pkgs/gcc/v4.4.4/bin/g++ CXXFLAGS="-m32 -fPIC"  \
>          CXXCPP=/grid/common/pkgs/gcc/v4.4.4/bin/cpp
>
> But:
>
> ./configure --prefix=${InstallDir}                                      \
>          --with-pm=hydra --with-device=ch3:nemesis                       \
>          --disable-chekpointing                                          \
>          --enable-fast=O3                                                \
>          --disable-f77 --disable-fc                                      \
>          CC=/grid/common/pkgs/gcc/v4.4.4/bin/gcc CFLAGS="-m32 -fPIC"     \
>          CPP=/grid/common/pkgs/gcc/v4.4.4/bin/cpp                        \
>          CXX=/grid/common/pkgs/gcc/v4.4.4/bin/g++ CXXFLAGS="-m32 -fPIC"  \
>          CXXCPP=/grid/common/pkgs/gcc/v4.4.4/bin/cpp
>
> Produce multiple errors like:
>
> /home/zelenko/Installs/mpich2-dev/src/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(bind.o): In function `pthread_equal':
> bind.c:(.text+0x0): multiple definition of `pthread_equal'
> /home/zelenko/Installs/mpich2-dev/src/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(topology.o):topology.c:(.text+0x480): first defined here
> /home/zelenko/Installs/mpich2-dev/src/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(bind.o): In function `gnu_dev_major':
> bind.c:(.text+0x20): multiple definition of `gnu_dev_major'
> /home/zelenko/Installs/mpich2-dev/src/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(topology.o):topology.c:(.text+0x0): first defined here
> /home/zelenko/Installs/mpich2-dev/src/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(bind.o): In function `gnu_dev_minor':
> bind.c:(.text+0x40): multiple definition of `gnu_dev_minor'
> /home/zelenko/Installs/mpich2-dev/src/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(topology.o):topology.c:(.text+0x20): first defined here
> /home/zelenko/Installs/mpich2-dev/src/src/pm/hydra/tools/bind/hwloc/hwloc/src/.libs/libhwloc_embedded.a(bind.o): In function `gnu_dev_makedev':
> bind.c:(.text+0x80): multiple definition of `gnu_dev_makedev'
>
> Looks like all problematic symbols is defined as __inline in system headrers.
>
> Eugene.
> _______________________________________________
> 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