Skip to content

‘MPI’ has not been declared #1

@lionty

Description

@lionty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions