Skip to content

Tests fail to link: undefined reference to `MPIdata::g_comm_', etc #10

@yurivict

Description

@yurivict
===>  Testing for qbox-1.76.1
gmake[1]: Entering directory '/usr/ports/science/qbox/work/qbox-public-rel1_76_1/src'
c++  -o testAndersonMixer testAndersonMixer.o AndersonMixer.o Context.o -fstack-protector-strong -L/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -lfftw3 -lscalapack -llapack -lblas -lm -lxerces-c -lpthread -lmpichcxx -lstdc++ -lcurl -liconv -luuid -lmpich
/usr/local/bin/x86_64-unknown-freebsd14.0-ld: AndersonMixer.o: in function `AndersonMixer::update(double*, double*, double*, double*)':
AndersonMixer.cpp:(.text+0x8bb): undefined reference to `MPIdata::g_comm_'
/usr/local/bin/x86_64-unknown-freebsd14.0-ld: AndersonMixer.cpp:(.text+0x906): undefined reference to `MPIdata::g_comm_'
/usr/local/bin/x86_64-unknown-freebsd14.0-ld: AndersonMixer.cpp:(.text+0x949): undefined reference to `MPIdata::rank_'
/usr/local/bin/x86_64-unknown-freebsd14.0-ld: AndersonMixer.cpp:(.text+0xf6a): undefined reference to `MPIdata::comm_'
c++: error: linker command failed with exit code 1 (use -v to see invocation)

It looks like MPIdata.o should be added into the link line.

Version: 1_76_1
clang-16
FreeBSD 14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions