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

‘MPI’ has not been declared #1

Open
lionty opened this issue Aug 2, 2018 · 2 comments
Open

‘MPI’ has not been declared #1

lionty opened this issue Aug 2, 2018 · 2 comments

Comments

@lionty
Copy link

lionty commented Aug 2, 2018

hello!When I ran "./localinstall.sh", I had some trouble.
lionty@server:~/local/src/mpi2$ ./localinstall.sh
-- Build type: NativeRelease
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:63 (find_package)

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:63 (find_package)

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:63 (find_package)

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:63 (find_package)

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:63 (find_package)

-- Boost version: 1.63.0
-- Found the following Boost libraries:
-- serialization
-- mpi
-- system
-- filesystem
-- thread
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lionty/local/src/mpi2/build
[ 8%] Built target rg
[ 12%] Building CXX object mpi2/CMakeFiles/mpi2.dir/init_impl.cc.o
/home/lionty/local/src/mpi2/mpi2/init_impl.cc: In function ‘boost::mpi::communicator& mpi2::mpi2init(int&, char**&)’:
/home/lionty/local/src/mpi2/mpi2/init_impl.cc:28:20: error: ‘MPI’ has not been declared
int threadLevel = MPI::Init_thread(argc, argv, MPI_THREAD_MULTIPLE);
^
/home/lionty/local/src/mpi2/mpi2/init_impl.cc: In function ‘void mpi2::mpi2finalize()’:
/home/lionty/local/src/mpi2/mpi2/init_impl.cc:114:2: error: ‘MPI’ has not been declared
MPI::Finalize();
^
mpi2/CMakeFiles/mpi2.dir/build.make:86: recipe for target 'mpi2/CMakeFiles/mpi2.dir/init_impl.cc.o' failed
make[2]: *** [mpi2/CMakeFiles/mpi2.dir/init_impl.cc.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'mpi2/CMakeFiles/mpi2.dir/all' failed
make[1]: *** [mpi2/CMakeFiles/mpi2.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

@tvandera
Copy link

MPI C++ binding are deprecated:

open-mpi/ompi#3173

@yhs1450239423
Copy link

hello!When I ran "./localinstall.sh", I had some trouble.
hadoop@ubuntu:~/local/src/mpi2-master$ ./localinstall.sh

-- Build files have been written to: /home/hadoop/local/src/mpi2-master/build
Scanning dependencies of target rg
[ 4%] Building CXX object util/CMakeFiles/rg.dir/exception/Exception.cc.o
[ 8%] Linking CXX shared library librg.so
[ 8%] Built target rg
Scanning dependencies of target mpi2
[ 12%] Building CXX object mpi2/CMakeFiles/mpi2.dir/env_impl.cc.o

[ 33%] Built target mpi2
Scanning dependencies of target event
[ 37%] Building CXX object examples/CMakeFiles/event.dir/event.cc.o
[ 41%] Linking CXX executable event
CMakeFiles/event.dir/event.cc.o: In function Task1::run(mpi2::Channel, mpi2::TaskInfo)': event.cc:(.text._ZN5Task13runEN4mpi27ChannelENS0_8TaskInfoE[_ZN5Task13runEN4mpi27ChannelENS0_8TaskInfoE]+0x30): undefined reference to boost::mpi::communicator::operator int() const'
CMakeFiles/event.dir/event.cc.o: In function std::vector<boost::mpi::request, std::allocator<boost::mpi::request> > mpi2::isendEach<unsigned int>(std::vector<mpi2::Channel, std::allocator<mpi2::Channel> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, bool)': event.cc:(.text._ZN4mpi29isendEachIjEESt6vectorIN5boost3mpi7requestESaIS4_EERKS1_INS_7ChannelESaIS7_EERKS1_IT_SaISC_EEb[_ZN4mpi29isendEachIjEESt6vectorIN5boost3mpi7requestESaIS4_EERKS1_INS_7ChannelESaIS7_EERKS1_IT_SaISC_EEb]+0xb2): undefined reference to boost::mpi::communicator::operator int() const'
collect2: error: ld returned 1 exit status
examples/CMakeFiles/event.dir/build.make:112: recipe for target 'examples/event' failed
make[2]: *** [examples/event] Error 1
CMakeFiles/Makefile2:228: recipe for target 'examples/CMakeFiles/event.dir/all' failed
make[1]: *** [examples/CMakeFiles/event.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

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

3 participants