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

vanilla Ubuntu 20.04 linker errors with OpenMPI #15077

Closed
tjhei opened this issue Apr 11, 2023 · 1 comment · Fixed by #15121
Closed

vanilla Ubuntu 20.04 linker errors with OpenMPI #15077

tjhei opened this issue Apr 11, 2023 · 1 comment · Fixed by #15121
Milestone

Comments

@tjhei
Copy link
Member

tjhei commented Apr 11, 2023

I am seeing linker errors

[ 85%] Building CXX object examples/CMakeFiles/example_step_29_release.dir/step-29/step-29.cc.o
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: error: undefined reference to 'opal_uses_threads'
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: error: undefined reference to 'opal_class_initialize'
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: error: undefined reference to 'opal_list_item_t_class'
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: error: undefined reference to 'opal_class_init_epoch'
collect2: error: ld returned 1 exit status

with the current deal.II master. This is because -fuse-ld=gold is picked up even though it can't correctly link. We used to drop gold because of the "have usable flags check", which doesn't work anymore?

@tamiko
Copy link
Member

tamiko commented Apr 11, 2023

Yes, this check is currently removed, I will refactor and put it back.

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

Successfully merging a pull request may close this issue.

2 participants