make example/cpp/executor error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 14.7k
- Forks
- 2.8k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 489
Description
System Info
command:
mkdir build
cd build
cmake ..
make -j
error messsages:
usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o: in function `MPI::Intracomm::Clone() const':
executorExampleAdvancedMultiInstances.cpp:(.text._ZNK3MPI9Intracomm5CloneEv[_ZNK3MPI9Intracomm5CloneEv]+0x40): undefined reference to `MPI::Comm::Comm()'
/usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o: in function `MPI::Graphcomm::Clone() const':
executorExampleAdvancedMultiInstances.cpp:(.text._ZNK3MPI9Graphcomm5CloneEv[_ZNK3MPI9Graphcomm5CloneEv]+0x38): undefined reference to `MPI::Comm::Comm()'
/usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o: in function `MPI::Cartcomm::Sub(bool const*) const':
executorExampleAdvancedMultiInstances.cpp:(.text._ZNK3MPI8Cartcomm3SubEPKb[_ZNK3MPI8Cartcomm3SubEPKb]+0x98): undefined reference to `MPI::Comm::Comm()'
/usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o: in function `MPI::Intracomm::Create_graph(int, int const*, int const*, bool) const':
executorExampleAdvancedMultiInstances.cpp:(.text._ZNK3MPI9Intracomm12Create_graphEiPKiS2_b[_ZNK3MPI9Intracomm12Create_graphEiPKiS2_b]+0x38): undefined reference to `MPI::Comm::Comm()'
/usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o: in function `MPI::Cartcomm::Clone() const':
executorExampleAdvancedMultiInstances.cpp:(.text._ZNK3MPI8Cartcomm5CloneEv[_ZNK3MPI8Cartcomm5CloneEv]+0x38): undefined reference to `MPI::Comm::Comm()'
/usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o:executorExampleAdvancedMultiInstances.cpp:(.text._ZNK3MPI9Intracomm11Create_cartEiPKiPKbb[_ZNK3MPI9Intracomm11Create_cartEiPKiPKbb]+0xac): more undefined references to `MPI::Comm::Comm()' follow
/usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o:(.data.rel.ro._ZTVN3MPI8DatatypeE[_ZTVN3MPI8DatatypeE]+0x78): undefined reference to `MPI::Datatype::Free()'
/usr/bin/ld: CMakeFiles/executorExampleAdvancedMultiInstances.dir/executorExampleAdvancedMultiInstances.cpp.o:(.data.rel.ro._ZTVN3MPI3WinE[_ZTVN3MPI3WinE]+0x48): undefined reference to `MPI::Win::Free()'
Who can help?
No response
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
cd to examples/cpp/executor dir and the execute command: mkdir build && cd build && cmake .. && make -j
Expected behavior
no
actual behavior
no
additional notes
link openmpi error
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in examples/cpp/executor and reproduce the documented mkdir, cmake .., and make -j commands. Read the CMake configuration and compare the linker output for executorExampleAdvancedMultiInstances.cpp, especially the missing MPI::Comm, MPI::Datatype, and MPI::Win symbols. Done means the example builds without these linker errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100