votca / votca

The source of the votca-csg and xtp packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testsuite fails to build: error: reference to 'filesystem' is ambiguous

yurivict opened this issue · comments

/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:37:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::FileExists(filename), false);
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:44:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::FileExists(filename2), true);
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:50:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::GetFileExtension(filename), "txt");
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:53:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::GetFileExtension(filename2), "");
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:56:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::GetFileExtension(filename3), "gro");
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:62:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::GetFileBase(filename), "bla");
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:65:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::GetFileBase(filename2), "blubb");
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/src/tests/test_filesystem.cc:68:21: error: reference to 'filesystem' is ambiguous
  BOOST_CHECK_EQUAL(filesystem::GetFileBase(filename3), "a.b.c.d");
                    ^
/usr/include/c++/v1/filesystem:267:1: note: candidate found by name lookup is 'std::filesystem'
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
^
/usr/include/c++/v1/__config:824:65: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM'
  _LIBCPP_BEGIN_NAMESPACE_STD inline namespace __fs { namespace filesystem {
                                                                ^
/disk-samsung/freebsd-ports/science/votca/work/votca-2022/tools/include/votca/tools/filesystem.h:27:11: note: candidate found by name lookup is 'votca::tools::filesystem'
namespace filesystem {
          ^
8 errors generated.

clang-12
FreeBSD 13

Can you try #959?

#959 fixes it.

The patch will be part of the 2022.1 release.