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

Building with OpenMP fails on ubuntu 21.04 #9

Open
nelinnemann opened this issue May 6, 2022 · 0 comments
Open

Building with OpenMP fails on ubuntu 21.04 #9

nelinnemann opened this issue May 6, 2022 · 0 comments

Comments

@nelinnemann
Copy link

nelinnemann commented May 6, 2022

Using Cmake I get this error from release 21.11 trying to build with OpenMP

[ 99%] Building CXX object CMakeFiles/liggghts_bin.dir/main.cpp.o [100%] Linking CXX executable liggghts /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::granular_nsq_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::respa_bin_newton_tri_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_multi_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_bin_no_newton_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_from_full_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::full_nsq_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::respa_bin_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_bin_newton_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::granular_nsq_no_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::granular_bin_no_newton_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_bin_newton_tri_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::full_bin_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::granular_bin_newton_tri_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::full_bin_ghost_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to vtable for LAMMPS_NS::DomainOMP'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::respa_nsq_newton_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_nsq_no_newton_ghost_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_multi_newton_tri_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_from_full_no_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_bin_no_newton_ghost_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_multi_no_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::respa_bin_no_newton_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::full_nsq_ghost_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::respa_nsq_no_newton_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_nsq_no_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::full_multi_omp(LAMMPS_NS::NeighList*)' /usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::granular_bin_newton_omp(LAMMPS_NS::NeighList*)'
/usr/bin/ld: libliggghts.so: undefined reference to LAMMPS_NS::Neighbor::half_nsq_newton_omp(LAMMPS_NS::NeighList*)' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/liggghts_bin.dir/build.make:232: liggghts] Error 1 make[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/liggghts_bin.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

@nelinnemann nelinnemann changed the title Building fails on ubuntu 21.04 Building with OpenMP fails on ubuntu 21.04 May 6, 2022
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