ld: /usr/lib64/mpi/gcc/mpich/lib64/libmpi.so.12: error adding symbols: DSO missing from command line #621
Unanswered
ztdepztdep
asked this question in
Compiling
Replies: 1 comment 2 replies
-
It looks like the MPI libs are not linked. Can you please share the full CMake output. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/axhelm-bin.dir/src/bench/axHelm/main.cpp.o: undefined reference to symbol 'MPI_Comm_size' /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/mpi/gcc/mpich/lib64/libmpi.so.12: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/axhelm-bin.dir/build.make:101: nekrs-bench-axhelm] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:340: CMakeFiles/axhelm-bin.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/advsub-bin.dir/src/bench/advsub/main.cpp.o: undefined reference to symbol 'MPI_Comm_size' /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/mpi/gcc/mpich/lib64/libmpi.so.12: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/advsub-bin.dir/build.make:101: nekrs-bench-advsub] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:367: CMakeFiles/advsub-bin.dir/all] Error 2 /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/fdm-bin.dir/src/bench/fdm/main.cpp.o: undefined reference to symbol 'MPI_Comm_size' /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/mpi/gcc/mpich/lib64/libmpi.so.12: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/fdm-bin.dir/build.make:101: nekrs-bench-fdm] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:394: CMakeFiles/fdm-bin.dir/all] Error 2 [100%] Linking CXX executable nekrs /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/nekrs-bin.dir/src/main.cpp.o: undefined reference to symbol 'MPI_Bcast' /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/mpi/gcc/mpich/lib64/libmpi.so.12: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/nekrs-bin.dir/build.make:101: nekrs] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:478: CMakeFiles/nekrs-bin.dir/all] Error 2 gmake: *** [Makefile:156: all] Error 2
Beta Was this translation helpful? Give feedback.
All reactions