Skip to content

Tests fail to compile: member reference base type 'testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'int') is not a structure or union, etc. #173

@yurivict

Description

@yurivict
[  0% 6/209] : && /usr/local/libexec/ccache/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -DGTEST_LANG_CXX11 -Wno-invalid-offsetof -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong test/unit/tree/CMakeFiles/unit-tree.dir/__/main.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_rcu_gpb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_rcu_gpi.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_rcu_gpt.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_rcu_shb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_ptr_rcu_gpb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_ptr_rcu_gpi.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_ptr_rcu_gpt.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/bronson_avltree_map_ptr_rcu_shb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_update_desc_pool.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_map_hp.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_map_dhp.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_map_rcu_gpb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_map_rcu_gpi.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_map_rcu_gpt.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_map_rcu_shb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_set_dhp.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_set_hp.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_set_rcu_gpb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_set_rcu_gpi.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_set_rcu_gpt.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/ellen_bintree_set_rcu_shb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/intrusive_ellenbintree_hp.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/intrusive_ellenbintree_dhp.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/intrusive_ellenbintree_rcu_gpb.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/intrusive_ellenbintree_rcu_gpi.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/intrusive_ellenbintree_rcu_gpt.cpp.o test/unit/tree/CMakeFiles/unit-tree.dir/intrusive_ellenbintree_rcu_shb.cpp.o -o bin/unit-tree  -Wl,-rpath,/disk-samsung/freebsd-ports/devel/libcds/work/.build/bin:/usr/local/lib  bin/libcds.so.2.3.3  lib/libgtest_main.a  /usr/local/lib/libboost_thread.so  /usr/local/lib/libboost_system.so  -lpthread  lib/libgtest.a  -lpthread && :
[  0% 7/209] /usr/local/libexec/ccache/c++  -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/stress -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress -I/usr/local/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -DGTEST_LANG_CXX11 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -mcx16 -std=gnu++11 -MD -MT test/stress/CMakeFiles/stress-framework.dir/framework/stress_test.cpp.o -MF test/stress/CMakeFiles/stress-framework.dir/framework/stress_test.cpp.o.d -o test/stress/CMakeFiles/stress-framework.dir/framework/stress_test.cpp.o -c /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/stress_test.cpp
FAILED: test/stress/CMakeFiles/stress-framework.dir/framework/stress_test.cpp.o 
/usr/local/libexec/ccache/c++  -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/stress -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress -I/usr/local/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -DGTEST_LANG_CXX11 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -mcx16 -std=gnu++11 -MD -MT test/stress/CMakeFiles/stress-framework.dir/framework/stress_test.cpp.o -MF test/stress/CMakeFiles/stress-framework.dir/framework/stress_test.cpp.o.d -o test/stress/CMakeFiles/stress-framework.dir/framework/stress_test.cpp.o -c /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/stress_test.cpp
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/stress_test.cpp:8:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/stress_test.h:10:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/fixture.h:9:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/ext_gtest.h:16:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest.h:60:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-death-test.h:43:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-death-test-internal.h:46:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-matchers.h:48:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-printers.h:114:
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:635:54: error: too few template arguments for class template 'less'
  typedef ::std::map<std::string, CodeLocation, std::less<>> RegisteredTestsMap;
                                                     ^
/usr/include/c++/v1/__functional/operations.h:473:29: note: template is declared here
struct _LIBCPP_TEMPLATE_VIS less
                            ^
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/stress_test.cpp:8:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/stress_test.h:10:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/fixture.h:9:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/ext_gtest.h:16:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest.h:60:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-death-test.h:43:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-death-test-internal.h:46:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-matchers.h:48:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-printers.h:114:
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:612:22: error: member reference base type 'testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'int') is not a structure or union
    registered_tests_.insert(
    ~~~~~~~~~~~~~~~~~^~~~~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:618:29: error: member reference base type 'const testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'const int') is not a structure or union
    return registered_tests_.count(test_name) > 0;
           ~~~~~~~~~~~~~~~~~^~~~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:622:5: error: 'testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'int') is not a class, namespace, or enumeration
    RegisteredTestsMap::const_iterator it = registered_tests_.find(test_name);
    ^
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:622:62: error: member reference base type 'const testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'const int') is not a structure or union
    RegisteredTestsMap::const_iterator it = registered_tests_.find(test_name);
                                            ~~~~~~~~~~~~~~~~~^~~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:623:41: error: member reference base type 'const testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'const int') is not a structure or union
    GTEST_CHECK_(it != registered_tests_.end());
                       ~~~~~~~~~~~~~~~~~^~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-port.h:1005:35: note: expanded from macro 'GTEST_CHECK_'
  if (::testing::internal::IsTrue(condition)) \
                                  ^~~~~~~~~
6 errors generated.
[  1% 7/209] /usr/local/libexec/ccache/c++  -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/stress -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress -I/usr/local/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -DGTEST_LANG_CXX11 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -mcx16 -std=gnu++11 -MD -MT test/stress/CMakeFiles/stress-framework.dir/framework/config.cpp.o -MF test/stress/CMakeFiles/stress-framework.dir/framework/config.cpp.o.d -o test/stress/CMakeFiles/stress-framework.dir/framework/config.cpp.o -c /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/config.cpp
FAILED: test/stress/CMakeFiles/stress-framework.dir/framework/config.cpp.o 
/usr/local/libexec/ccache/c++  -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/stress -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress -I/usr/local/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include -I/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include -I/disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -DGTEST_LANG_CXX11 -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -mcx16 -std=gnu++11 -MD -MT test/stress/CMakeFiles/stress-framework.dir/framework/config.cpp.o -MF test/stress/CMakeFiles/stress-framework.dir/framework/config.cpp.o.d -o test/stress/CMakeFiles/stress-framework.dir/framework/config.cpp.o -c /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/config.cpp
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/config.cpp:9:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/stress_test.h:10:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/fixture.h:9:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/ext_gtest.h:16:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest.h:60:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-death-test.h:43:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-death-test-internal.h:46:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-matchers.h:48:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-printers.h:114:
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:635:54: error: too few template arguments for class template 'less'
  typedef ::std::map<std::string, CodeLocation, std::less<>> RegisteredTestsMap;
                                                     ^
/usr/include/c++/v1/__functional/operations.h:473:29: note: template is declared here
struct _LIBCPP_TEMPLATE_VIS less
                            ^
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/stress/framework/config.cpp:9:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/stress_test.h:10:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/fixture.h:9:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/libcds-2.3.3-102-g9985d2a8/test/include/cds_test/ext_gtest.h:16:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest.h:60:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-death-test.h:43:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-death-test-internal.h:46:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-matchers.h:48:
In file included from /disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/gtest-printers.h:114:
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:612:22: error: member reference base type 'testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'int') is not a structure or union
    registered_tests_.insert(
    ~~~~~~~~~~~~~~~~~^~~~~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:618:29: error: member reference base type 'const testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'const int') is not a structure or union
    return registered_tests_.count(test_name) > 0;
           ~~~~~~~~~~~~~~~~~^~~~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:622:5: error: 'testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'int') is not a class, namespace, or enumeration
    RegisteredTestsMap::const_iterator it = registered_tests_.find(test_name);
    ^
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:622:62: error: member reference base type 'const testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'const int') is not a structure or union
    RegisteredTestsMap::const_iterator it = registered_tests_.find(test_name);
                                            ~~~~~~~~~~~~~~~~~^~~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-internal.h:623:41: error: member reference base type 'const testing::internal::TypedTestSuitePState::RegisteredTestsMap' (aka 'const int') is not a structure or union
    GTEST_CHECK_(it != registered_tests_.end());
                       ~~~~~~~~~~~~~~~~~^~~~
/disk-samsung/freebsd-ports/devel/libcds/work/.build/test/googletest-src/googletest/include/gtest/internal/gtest-port.h:1005:35: note: expanded from macro 'GTEST_CHECK_'
  if (::testing::internal::IsTrue(condition)) \
                                  ^~~~~~~~~
6 errors generated.

clang-14
OS: FreeBSD 13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions