Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Dec 24, 2023 · 0 comments
Open

Comments

@yurivict
Copy link

===>  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant