votca / votca

The source of the votca-csg and xtp packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boost 1.81 support

junghans opened this issue · comments

Some of the boost::filesystem function have been migrated to std::filesystem:

2023-02-04T03:44:16.8903262Z cd /__w/votca/votca/builddir/csg/src/libcsg && /usr/lib64/ccache/g++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DGMX_DOUBLE=0 -DTMPI_USE_VISIBILITY -Dvotca_csg_EXPORTS -I/__w/votca/votca/builddir/csg/src/libcsg -I/__w/votca/votca/csg/include -I/__w/votca/votca/tools/include -I/__w/votca/votca/builddir/tools/include/votca/tools -I/__w/votca/votca/builddir/tools/include -isystem /usr/include/eigen3 -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Werror -O3 -DNDEBUG -fPIC -fopenmp -MD -MT csg/src/libcsg/CMakeFiles/votca_csg.dir/modules/io/dlpolytrajectorywriter.cc.o -MF CMakeFiles/votca_csg.dir/modules/io/dlpolytrajectorywriter.cc.o.d -o CMakeFiles/votca_csg.dir/modules/io/dlpolytrajectorywriter.cc.o -c /__w/votca/votca/csg/src/libcsg/modules/io/dlpolytrajectorywriter.cc
2023-02-04T03:44:25.1307391Z /__w/votca/votca/csg/src/libcsg/modules/io/dlpolytrajectorywriter.cc: In member function 'virtual void votca::csg::DLPOLYTrajectoryWriter::Open(std::string, bool)':
2023-02-04T03:44:25.1308518Z /__w/votca/votca/csg/src/libcsg/modules/io/dlpolytrajectorywriter.cc:46:35: error: 'std::string boost::filesystem::extension(const path&)' is deprecated: Use path::extension() instead [-Werror=deprecated-declarations]
2023-02-04T03:44:25.1309179Z    46 |   if (boost::filesystem::extension(filepath).size() == 0) {
2023-02-04T03:44:25.1309473Z       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
2023-02-04T03:44:25.1309822Z In file included from /__w/votca/votca/csg/src/libcsg/modules/io/dlpolytrajectorywriter.cc:23:
2023-02-04T03:44:25.1310219Z /usr/include/boost/filesystem/convenience.hpp:29:20: note: declared here
2023-02-04T03:44:25.1310557Z    29 | inline std::string extension(const path& p)
2023-02-04T03:44:25.1310815Z       |                    ^~~~~~~~~
2023-02-04T03:44:25.1311564Z /__w/votca/votca/csg/src/libcsg/modules/io/dlpolytrajectorywriter.cc:51:42: error: 'std::string boost::filesystem::extension(const path&)' is deprecated: Use path::extension() instead [-Werror=deprecated-declarations]
2023-02-04T03:44:25.1312110Z    51 |   } else if (boost::filesystem::extension(filepath) == ".dlpc") {
2023-02-04T03:44:25.1312396Z       |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
2023-02-04T03:44:25.1313054Z /usr/include/boost/filesystem/convenience.hpp:29:20: note: declared here
2023-02-04T03:44:25.1313395Z    29 | inline std::string extension(const path& p)
2023-02-04T03:44:25.1313654Z       |                    ^~~~~~~~~
2023-02-04T03:44:25.1314475Z /__w/votca/votca/csg/src/libcsg/modules/io/dlpolytrajectorywriter.cc:56:42: error: 'std::string boost::filesystem::extension(const path&)' is deprecated: Use path::extension() instead [-Werror=deprecated-declarations]
2023-02-04T03:44:25.1316993Z    56 |   } else if (boost::filesystem::extension(filepath) == ".dlph") {
2023-02-04T03:44:25.1317957Z       |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
2023-02-04T03:44:25.1318283Z /usr/include/boost/filesystem/convenience.hpp:29:20: note: declared here
2023-02-04T03:44:25.1318627Z    29 | inline std::string extension(const path& p)
2023-02-04T03:44:25.1318892Z       |                    ^~~~~~~~~
2023-02-04T03:44:25.1319723Z /__w/votca/votca/csg/src/libcsg/modules/io/dlpolytrajectorywriter.cc:65:34: error: 'std::string boost::filesystem::basename(const path&)' is deprecated: Use path::stem() instead [-Werror=deprecated-declarations]
2023-02-04T03:44:25.1320255Z    65 |   if (boost::filesystem::basename(filepath).size() == 0) {
2023-02-04T03:44:25.1320535Z       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
2023-02-04T03:44:25.1320850Z /usr/include/boost/filesystem/convenience.hpp:35:20: note: declared here
2023-02-04T03:44:25.1321170Z    35 | inline std::string basename(const path& p)
2023-02-04T03:44:25.1321426Z       |                    ^~~~~~~~
2023-02-04T03:44:25.1321680Z cc1plus: all warnings being treated as errors
2023-02-04T03:44:25.1325938Z gmake[2]: *** [csg/src/libcsg/CMakeFiles/votca_csg.dir/build.make:555: csg/src/libcsg/CMakeFiles/votca_csg.dir/modules/io/dlpolytrajectorywriter.cc.o] Error 1