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

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

Closed
yurivict opened this issue Jan 24, 2022 · 3 comments · Fixed by #960
Closed

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

yurivict opened this issue Jan 24, 2022 · 3 comments · Fixed by #960

Comments

@yurivict
Copy link

yurivict commented Jan 24, 2022

/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

@junghans junghans mentioned this issue Jan 25, 2022
@junghans
Copy link
Member

junghans commented Jan 25, 2022

Can you try #959?

@yurivict
Copy link
Author

#959 fixes it.

@junghans
Copy link
Member

The patch will be part of the 2022.1 release.

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

Successfully merging a pull request may close this issue.

2 participants