[Pkg-scicomp-devel] Bug#487969: Bug#487969: Can't reproduce this
Ólafur Jens Sigurðsson
ojsbug at gmail.com
Sat Jul 19 12:56:53 UTC 2008
On Fri, Jul 18, 2008 at 11:16:20AM -0400, Adam C Powell IV wrote:
> I don't have this problem with ex2, or any other example. Unfortunately
> the shlib is stripped so there are no symbols to check. :-(
>
> What's your architecture? It's fine on amd64.
When I follow the example I get the following:
g++ -I/usr/include/libmesh -I/usr/include/mpi -I/usr/include/petsc -c -o ex2.o ex2.C
so the first compile works fine
g++ -o ex2 ex2.o -lmesh -lscotchmetis -lscotch -lscotcherr
ex2.o: In function main':
ex2.C:(.text+0x7c): undefined reference to lam_mpi_comm_world'
ex2.C:(.text+0x97): undefined reference to libMesh::init(int&,
char**&, _comm*)'
ex2.o: In function PMPI::Cartcomm::Cartcomm(_comm* const&)':
ex2.C:(.text._ZN4PMPI8CartcommC1ERKP5_comm[PMPI::Cartcomm::Cartcomm(_comm*
const&)]+0x1d): undefined reference to MPI::Is_initialized()'
ex2.o: In function PMPI::Graphcomm::Graphcomm(_comm* const&)':
ex2.C:(.text._ZN4PMPI9GraphcommC1ERKP5_comm[PMPI::Graphcomm::Graphcomm(_comm*
const&)]+0x1d): undefined reference to MPI::Is_initialized()'
ex2.o: In function PMPI::Intracomm::Intracomm(_comm* const&)':
ex2.C:(.text._ZN4PMPI9IntracommC1ERKP5_comm[PMPI::Intracomm::Intracomm(_comm*
const&)]+0x1d): undefined reference to MPI::Is_initialized()'
ex2.o: In function PMPI::Intracomm::Exscan(void const*, void*, int,
PMPI::Datatype const&, PMPI::Op const&) const':
ex2.C:(.text._ZNK4PMPI9Intracomm6ExscanEPKvPviRKNS_8DatatypeERKNS_2OpE[PMPI::Intracomm::Exscan(void
const*, void*, int, PMPI::Datatype const&, PMPI::Op const&)
const]+0xc): undefined reference to PMPI::Intracomm::current_op'
ex2.C:(.text._ZNK4PMPI9Intracomm6ExscanEPKvPviRKNS_8DatatypeERKNS_2OpE[PMPI::Intracomm::Exscan(void
const*, void*, int, PMPI::Datatype const&, PMPI::Op const&)
const]+0x55): undefined reference to PMPI::Intracomm::current_op'
ex2.o: In function PMPI::Intracomm::Scan(void const*, void*, int,
PMPI::Datatype const&, PMPI::Op const&) const':
ex2.C:(.text._ZNK4PMPI9Intracomm4ScanEPKvPviRKNS_8DatatypeERKNS_2OpE[PMPI::Intracomm::Scan(void
const*, void*, int, PMPI::Datatype const&, PMPI::Op const&)
const]+0xc): undefined reference to PMPI::Intracomm::current_op'
ex2.C:(.text._ZNK4PMPI9Intracomm4ScanEPKvPviRKNS_8DatatypeERKNS_2OpE[PMPI::Intracomm::Scan(void
const*, void*, int, PMPI::Datatype const&, PMPI::Op const&)
const]+0x55): undefined reference to PMPI::Intracomm::current_op'
ex2.o: In function PMPI::Intracomm::Reduce_scatter(void const*, void*,
int*, PMPI::Datatype const&, PMPI::Op const&) const':
ex2.C:(.text._ZNK4PMPI9Intracomm14Reduce_scatterEPKvPvPiRKNS_8DatatypeERKNS_2OpE[PMPI::Intracomm::Reduce_scatter(void
const*, void*, int*, PMPI::Datatype const&, PMPI::Op const&)
const]+0xc): undefined reference to PMPI::Intracomm::current_op'
ex2.o:ex2.C:(.text._ZNK4PMPI9Intracomm14Reduce_scatterEPKvPvPiRKNS_8DatatypeERKNS_2OpE[PMPI::Intracomm::Reduce_scatter(void
const*, void*, int*, PMPI::Datatype const&, PMPI::Op const&)
const]+0x55): more undefined references to
PMPI::Intracomm::current_op' follow
ex2.o: In function PMPI::Comm::Set_attr(int, void const*) const':
ex2.C:(.text._ZNK4PMPI4Comm8Set_attrEiPKv[PMPI::Comm::Set_attr(int,
void const*) const]+0x77): undefined reference to
PMPI::Comm::mpi_comm_map'
ex2.C:(.text._ZNK4PMPI4Comm8Set_attrEiPKv[PMPI::Comm::Set_attr(int,
void const*) const]+0xbf): undefined reference to
PMPI::Comm::mpi_comm_map'
ex2.o: In function PMPI::Comm::Set_errhandler(PMPI::Errhandler const&)':
ex2.C:(.text._ZN4PMPI4Comm14Set_errhandlerERKNS_10ErrhandlerE[PMPI::Comm::Set_errhandler(PMPI::Errhandler
const&)]+0x1c): undefined reference to PMPI::Comm::mpi_err_map'
ex2.o: In function PMPI::Comm::Free()':
ex2.C:(.text._ZN4PMPI4Comm4FreeEv[PMPI::Comm::Free()]+0x27): undefined
reference to PMPI::Comm::mpi_comm_map'
ex2.C:(.text._ZN4PMPI4Comm4FreeEv[PMPI::Comm::Free()]+0x45): undefined
reference to PMPI::Comm::mpi_comm_map'
ex2.C:(.text._ZN4PMPI4Comm4FreeEv[PMPI::Comm::Free()]+0x62): undefined
reference to PMPI::Comm::mpi_comm_map'
ex2.o: In function PMPI::Op::Init(void (*)(void const*, void*, int,
PMPI::Datatype const&), bool)':
ex2.C:(.text._ZN4PMPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[PMPI::Op::Init(void
(*)(void const*, void*, int, PMPI::Datatype const&), bool)]+0x21):
undefined reference to op_intercept'
collect2: ld returned 1 exit status
HTH
Oli
More information about the Pkg-scicomp-devel
mailing list