Skip to content

Instantly share code, notes, and snippets.

@roryk
Created September 21, 2015 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roryk/fda5c55fb732ea06a1b5 to your computer and use it in GitHub Desktop.
Save roryk/fda5c55fb732ea06a1b5 to your computer and use it in GitHub Desktop.
sparsehash-build-issues
[ 51%] Performing build step for 'libsparsehash'
cd /tmp/sailfish20150920-18016-i304l8/sailfish-0.7.4/external/sparsehash-sparsehash-2.0.2 && /Applications/Xcode.app/Contents/Developer/usr/bin/make
[ -d src/sparsehash/internal ] || mkdir -p src/sparsehash/internal
echo "/*" > src/sparsehash/internal/_sparsehash_config
echo " * NOTE: This file is for internal use only." >> src/sparsehash/internal/_sparsehash_config
echo " * Do not use these #defines in your own program!" >> src/sparsehash/internal/_sparsehash_config
echo " */" >> src/sparsehash/internal/_sparsehash_config
awk '{prevline=currline; currline=$0;} \
/^#/ {in_second_file = 1;} \
!in_second_file {if (currline !~ /^ *$/) {inc[currline]=0}}; \
in_second_file { for (i in inc) { \
if (index(currline, i) != 0) { \
print "\n"prevline"\n"currline; \
delete inc[i]; \
} \
} }' \
./src/config.h.include ./src/config.h \
>> src/sparsehash/internal/_sparsehash_config
mv -f src/sparsehash/internal/_sparsehash_config src/sparsehash/internal/sparseconfig.h
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
/usr/local/Library/ENV/4.3/clang++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT template_util_unittest.o -MD -MP -MF .deps/template_util_unittest.Tpo -c -o template_util_unittest.o `test -f 'src/template_util_unittest.cc' || echo './'`src/template_util_unittest.cc
mv -f .deps/template_util_unittest.Tpo .deps/template_util_unittest.Po
/usr/local/Library/ENV/4.3/clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o template_util_unittest template_util_unittest.o
/usr/local/Library/ENV/4.3/clang++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT type_traits_unittest.o -MD -MP -MF .deps/type_traits_unittest.Tpo -c -o type_traits_unittest.o `test -f 'src/type_traits_unittest.cc' || echo './'`src/type_traits_unittest.cc
mv -f .deps/type_traits_unittest.Tpo .deps/type_traits_unittest.Po
/usr/local/Library/ENV/4.3/clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o type_traits_unittest type_traits_unittest.o
/usr/local/Library/ENV/4.3/clang++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT libc_allocator_with_realloc_test.o -MD -MP -MF .deps/libc_allocator_with_realloc_test.Tpo -c -o libc_allocator_with_realloc_test.o `test -f 'src/libc_allocator_with_realloc_test.cc' || echo './'`src/libc_allocator_with_realloc_test.cc
mv -f .deps/libc_allocator_with_realloc_test.Tpo .deps/libc_allocator_with_realloc_test.Po
/usr/local/Library/ENV/4.3/clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o
/usr/local/Library/ENV/4.3/clang++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT sparsetable_unittest.o -MD -MP -MF .deps/sparsetable_unittest.Tpo -c -o sparsetable_unittest.o `test -f 'src/sparsetable_unittest.cc' || echo './'`src/sparsetable_unittest.cc
mv -f .deps/sparsetable_unittest.Tpo .deps/sparsetable_unittest.Po
/usr/local/Library/ENV/4.3/clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o sparsetable_unittest sparsetable_unittest.o
/usr/local/Library/ENV/4.3/clang++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT hashtable_test.o -MD -MP -MF .deps/hashtable_test.Tpo -c -o hashtable_test.o `test -f 'src/hashtable_test.cc' || echo './'`src/hashtable_test.cc
src/hashtable_test.cc:904:3: error: no matching function for call to 'swap'
swap(this->ht_, other_ht);
^~~~
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashMap<int, int, &kEmptyInt, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:171:7: note: expanded from macro 'TYPED_TEST'
Run(); \
^
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashMap<int, int, &kEmptyInt, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_Swap' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:193:68: note: expanded from macro 'TYPED_TEST'
TEST_onetype_##superclass##_##testname<superclass##_type4> t; \
^
./src/sparsehash/sparsetable:1348:13: note: candidate template ignored: could not match 'sparsegroup' against 'HashtableInterface_DenseHashMap'
inline void swap(sparsegroup<T,GROUP_SIZE,Alloc> &x,
^
./src/hash_test_interface.h:553:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashSet' against 'HashtableInterface_DenseHashMap'
friend void swap(HashtableInterface_SparseHashSet<K2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:772:15: note: candidate template ignored: substitution failure [with K2 = int, T2 = int]: deduced non-type template argument does not have the same type as the its corresponding template parameter ('int' vs 'const int &')
friend void swap(HashtableInterface_DenseHashMap<K2,T2,Empty2,H2,E2,A2>& a,
^
./src/sparsehash/sparsetable:1813:13: note: candidate template ignored: could not match 'sparsetable' against 'HashtableInterface_DenseHashMap'
inline void swap(sparsetable<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/internal/sparsehashtable.h:1222:13: note: candidate template ignored: could not match 'sparse_hashtable' against 'HashtableInterface_DenseHashMap'
inline void swap(sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/sparse_hash_map:356:13: note: candidate template ignored: could not match 'sparse_hash_map' against 'HashtableInterface_DenseHashMap'
inline void swap(sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/sparse_hash_set:331:13: note: candidate template ignored: could not match 'sparse_hash_set' against 'HashtableInterface_DenseHashMap'
inline void swap(sparse_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/sparsehash/internal/densehashtable.h:1290:13: note: candidate template ignored: could not match 'dense_hashtable' against 'HashtableInterface_DenseHashMap'
inline void swap(dense_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/dense_hash_map:362:13: note: candidate template ignored: could not match 'dense_hash_map' against 'HashtableInterface_DenseHashMap'
inline void swap(dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/dense_hash_set:331:13: note: candidate template ignored: could not match 'dense_hash_set' against 'HashtableInterface_DenseHashMap'
inline void swap(dense_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/hash_test_interface.h:446:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashMap' against 'HashtableInterface_DenseHashMap'
friend void swap(HashtableInterface_SparseHashMap<K2,T2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashMap'
friend void swap(
^
./src/hash_test_interface.h:876:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashSet' against 'HashtableInterface_DenseHashMap'
friend void swap(HashtableInterface_DenseHashSet<K2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:1007:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashtable' against 'HashtableInterface_DenseHashMap'
friend void swap(
^
src/hashtable_test.cc:904:3: error: no matching function for call to 'swap'
swap(this->ht_, other_ht);
^~~~
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashSet<int, &kEmptyInt, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:171:7: note: expanded from macro 'TYPED_TEST'
Run(); \
^
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashSet<int, &kEmptyInt, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_Swap' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:197:68: note: expanded from macro 'TYPED_TEST'
TEST_onetype_##superclass##_##testname<superclass##_type5> t; \
^
./src/sparsehash/sparsetable:1348:13: note: candidate template ignored: could not match 'sparsegroup' against 'HashtableInterface_DenseHashSet'
inline void swap(sparsegroup<T,GROUP_SIZE,Alloc> &x,
^
./src/hash_test_interface.h:553:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashSet' against 'HashtableInterface_DenseHashSet'
friend void swap(HashtableInterface_SparseHashSet<K2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:772:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashMap' against 'HashtableInterface_DenseHashSet'
friend void swap(HashtableInterface_DenseHashMap<K2,T2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:876:15: note: candidate template ignored: substitution failure [with K2 = int]: deduced non-type template argument does not have the same type as the its corresponding template parameter ('int' vs 'const int &')
friend void swap(HashtableInterface_DenseHashSet<K2,Empty2,H2,E2,A2>& a,
^
./src/sparsehash/sparsetable:1813:13: note: candidate template ignored: could not match 'sparsetable' against 'HashtableInterface_DenseHashSet'
inline void swap(sparsetable<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/internal/sparsehashtable.h:1222:13: note: candidate template ignored: could not match 'sparse_hashtable' against 'HashtableInterface_DenseHashSet'
inline void swap(sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/sparse_hash_map:356:13: note: candidate template ignored: could not match 'sparse_hash_map' against 'HashtableInterface_DenseHashSet'
inline void swap(sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/sparse_hash_set:331:13: note: candidate template ignored: could not match 'sparse_hash_set' against 'HashtableInterface_DenseHashSet'
inline void swap(sparse_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/sparsehash/internal/densehashtable.h:1290:13: note: candidate template ignored: could not match 'dense_hashtable' against 'HashtableInterface_DenseHashSet'
inline void swap(dense_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/dense_hash_map:362:13: note: candidate template ignored: could not match 'dense_hash_map' against 'HashtableInterface_DenseHashSet'
inline void swap(dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/dense_hash_set:331:13: note: candidate template ignored: could not match 'dense_hash_set' against 'HashtableInterface_DenseHashSet'
inline void swap(dense_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/hash_test_interface.h:446:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashMap' against 'HashtableInterface_DenseHashSet'
friend void swap(HashtableInterface_SparseHashMap<K2,T2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashSet'
friend void swap(
^
./src/hash_test_interface.h:1007:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashtable' against 'HashtableInterface_DenseHashSet'
friend void swap(
^
src/hashtable_test.cc:904:3: error: no matching function for call to 'swap'
swap(this->ht_, other_ht);
^~~~
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashtable<int, int, &kEmptyInt, (anonymous namespace)::Hasher, (anonymous namespace)::Negation<int>, (anonymous namespace)::SetKey<int, (anonymous namespace)::Negation<int> >, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:171:7: note: expanded from macro 'TYPED_TEST'
Run(); \
^
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashtable<int, int, &kEmptyInt, (anonymous namespace)::Hasher, (anonymous namespace)::Negation<int>, (anonymous namespace)::SetKey<int, (anonymous namespace)::Negation<int> >, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_Swap' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:201:68: note: expanded from macro 'TYPED_TEST'
TEST_onetype_##superclass##_##testname<superclass##_type6> t; \
^
./src/sparsehash/sparsetable:1348:13: note: candidate template ignored: could not match 'sparsegroup' against 'HashtableInterface_DenseHashtable'
inline void swap(sparsegroup<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/sparse_hash_map:356:13: note: candidate template ignored: could not match 'sparse_hash_map' against 'HashtableInterface_DenseHashtable'
inline void swap(sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/internal/densehashtable.h:1290:13: note: candidate template ignored: could not match 'dense_hashtable' against 'HashtableInterface_DenseHashtable'
inline void swap(dense_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/dense_hash_map:362:13: note: candidate template ignored: could not match 'dense_hash_map' against 'HashtableInterface_DenseHashtable'
inline void swap(dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/hash_test_interface.h:553:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashSet' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_SparseHashSet<K2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:772:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashMap' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_DenseHashMap<K2,T2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:876:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashSet' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_DenseHashSet<K2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:1007:15: note: candidate template ignored: substitution failure [with V2 = int, K2 = int]: deduced non-type template argument does not have the same type as the its corresponding template parameter ('int' vs 'const int &')
friend void swap(
^
./src/sparsehash/sparsetable:1813:13: note: candidate template ignored: could not match 'sparsetable' against 'HashtableInterface_DenseHashtable'
inline void swap(sparsetable<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/internal/sparsehashtable.h:1222:13: note: candidate template ignored: could not match 'sparse_hashtable' against 'HashtableInterface_DenseHashtable'
inline void swap(sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/sparse_hash_set:331:13: note: candidate template ignored: could not match 'sparse_hash_set' against 'HashtableInterface_DenseHashtable'
inline void swap(sparse_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/sparsehash/dense_hash_set:331:13: note: candidate template ignored: could not match 'dense_hash_set' against 'HashtableInterface_DenseHashtable'
inline void swap(dense_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/hash_test_interface.h:446:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashMap' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_SparseHashMap<K2,T2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashtable'
friend void swap(
^
src/hashtable_test.cc:904:3: error: no matching function for call to 'swap'
swap(this->ht_, other_ht);
^~~~
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashMap<const char *, (anonymous namespace)::ValueType, &kEmptyCharStar, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<const char *, unsigned long, 18446744073709551615> > >::Run' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:171:7: note: expanded from macro 'TYPED_TEST'
Run(); \
^
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashMap<const char *, (anonymous namespace)::ValueType, &kEmptyCharStar, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<const char *, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_Swap' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:241:69: note: expanded from macro 'TYPED_TEST'
TEST_onetype_##superclass##_##testname<superclass##_type16> t; \
^
./src/sparsehash/sparsetable:1348:13: note: candidate template ignored: could not match 'sparsegroup' against 'HashtableInterface_DenseHashMap'
inline void swap(sparsegroup<T,GROUP_SIZE,Alloc> &x,
^
./src/hash_test_interface.h:553:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashSet' against 'HashtableInterface_DenseHashMap'
friend void swap(HashtableInterface_SparseHashSet<K2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:772:15: note: candidate template ignored: substitution failure [with K2 = const char *, T2 = (anonymous namespace)::ValueType]: deduced non-type template argument does not have the same type as the its corresponding template parameter ('const char *' vs 'const char *const &')
friend void swap(HashtableInterface_DenseHashMap<K2,T2,Empty2,H2,E2,A2>& a,
^
./src/sparsehash/sparsetable:1813:13: note: candidate template ignored: could not match 'sparsetable' against 'HashtableInterface_DenseHashMap'
inline void swap(sparsetable<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/internal/sparsehashtable.h:1222:13: note: candidate template ignored: could not match 'sparse_hashtable' against 'HashtableInterface_DenseHashMap'
inline void swap(sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/sparse_hash_map:356:13: note: candidate template ignored: could not match 'sparse_hash_map' against 'HashtableInterface_DenseHashMap'
inline void swap(sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/sparse_hash_set:331:13: note: candidate template ignored: could not match 'sparse_hash_set' against 'HashtableInterface_DenseHashMap'
inline void swap(sparse_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/sparsehash/internal/densehashtable.h:1290:13: note: candidate template ignored: could not match 'dense_hashtable' against 'HashtableInterface_DenseHashMap'
inline void swap(dense_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/dense_hash_map:362:13: note: candidate template ignored: could not match 'dense_hash_map' against 'HashtableInterface_DenseHashMap'
inline void swap(dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/dense_hash_set:331:13: note: candidate template ignored: could not match 'dense_hash_set' against 'HashtableInterface_DenseHashMap'
inline void swap(dense_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/hash_test_interface.h:446:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashMap' against 'HashtableInterface_DenseHashMap'
friend void swap(HashtableInterface_SparseHashMap<K2,T2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashMap'
friend void swap(
^
./src/hash_test_interface.h:876:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashSet' against 'HashtableInterface_DenseHashMap'
friend void swap(HashtableInterface_DenseHashSet<K2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:1007:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashtable' against 'HashtableInterface_DenseHashMap'
friend void swap(
^
src/hashtable_test.cc:904:3: error: no matching function for call to 'swap'
swap(this->ht_, other_ht);
^~~~
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashSet<const char *, &kEmptyCharStar, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<const char *, unsigned long, 18446744073709551615> > >::Run' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:171:7: note: expanded from macro 'TYPED_TEST'
Run(); \
^
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashSet<const char *, &kEmptyCharStar, (anonymous namespace)::Hasher, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<const char *, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_Swap' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:245:69: note: expanded from macro 'TYPED_TEST'
TEST_onetype_##superclass##_##testname<superclass##_type17> t; \
^
./src/sparsehash/sparsetable:1348:13: note: candidate template ignored: could not match 'sparsegroup' against 'HashtableInterface_DenseHashSet'
inline void swap(sparsegroup<T,GROUP_SIZE,Alloc> &x,
^
./src/hash_test_interface.h:553:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashSet' against 'HashtableInterface_DenseHashSet'
friend void swap(HashtableInterface_SparseHashSet<K2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:772:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashMap' against 'HashtableInterface_DenseHashSet'
friend void swap(HashtableInterface_DenseHashMap<K2,T2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:876:15: note: candidate template ignored: substitution failure [with K2 = const char *]: deduced non-type template argument does not have the same type as the its corresponding template parameter ('const char *' vs 'const char *const &')
friend void swap(HashtableInterface_DenseHashSet<K2,Empty2,H2,E2,A2>& a,
^
./src/sparsehash/sparsetable:1813:13: note: candidate template ignored: could not match 'sparsetable' against 'HashtableInterface_DenseHashSet'
inline void swap(sparsetable<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/internal/sparsehashtable.h:1222:13: note: candidate template ignored: could not match 'sparse_hashtable' against 'HashtableInterface_DenseHashSet'
inline void swap(sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/sparse_hash_map:356:13: note: candidate template ignored: could not match 'sparse_hash_map' against 'HashtableInterface_DenseHashSet'
inline void swap(sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/sparse_hash_set:331:13: note: candidate template ignored: could not match 'sparse_hash_set' against 'HashtableInterface_DenseHashSet'
inline void swap(sparse_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/sparsehash/internal/densehashtable.h:1290:13: note: candidate template ignored: could not match 'dense_hashtable' against 'HashtableInterface_DenseHashSet'
inline void swap(dense_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/dense_hash_map:362:13: note: candidate template ignored: could not match 'dense_hash_map' against 'HashtableInterface_DenseHashSet'
inline void swap(dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/dense_hash_set:331:13: note: candidate template ignored: could not match 'dense_hash_set' against 'HashtableInterface_DenseHashSet'
inline void swap(dense_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/hash_test_interface.h:446:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashMap' against 'HashtableInterface_DenseHashSet'
friend void swap(HashtableInterface_SparseHashMap<K2,T2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashSet'
friend void swap(
^
./src/hash_test_interface.h:1007:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashtable' against 'HashtableInterface_DenseHashSet'
friend void swap(
^
src/hashtable_test.cc:904:3: error: no matching function for call to 'swap'
swap(this->ht_, other_ht);
^~~~
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashtable<const char *, const char *, &kEmptyCharStar, (anonymous namespace)::Hasher, (anonymous namespace)::Identity, (anonymous namespace)::SetKey<const char *, (anonymous namespace)::Identity>, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<(anonymous namespace)::ValueType, unsigned long, 18446744073709551615> > >::Run' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:171:7: note: expanded from macro 'TYPED_TEST'
Run(); \
^
src/hashtable_test.cc:857:1: note: in instantiation of member function '(anonymous namespace)::TEST_onetype_HashtableAllTest_Swap<google::HashtableInterface_DenseHashtable<const char *, const char *, &kEmptyCharStar, (anonymous namespace)::Hasher, (anonymous namespace)::Identity, (anonymous namespace)::SetKey<const char *, (anonymous namespace)::Identity>, (anonymous namespace)::Hasher, (anonymous namespace)::Alloc<(anonymous namespace)::ValueType, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_Swap' requested here
TYPED_TEST(HashtableAllTest, Swap) {
^
./src/testutil.h:249:69: note: expanded from macro 'TYPED_TEST'
TEST_onetype_##superclass##_##testname<superclass##_type18> t; \
^
./src/sparsehash/sparsetable:1348:13: note: candidate template ignored: could not match 'sparsegroup' against 'HashtableInterface_DenseHashtable'
inline void swap(sparsegroup<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/sparse_hash_map:356:13: note: candidate template ignored: could not match 'sparse_hash_map' against 'HashtableInterface_DenseHashtable'
inline void swap(sparse_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/sparsehash/internal/densehashtable.h:1290:13: note: candidate template ignored: could not match 'dense_hashtable' against 'HashtableInterface_DenseHashtable'
inline void swap(dense_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/dense_hash_map:362:13: note: candidate template ignored: could not match 'dense_hash_map' against 'HashtableInterface_DenseHashtable'
inline void swap(dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
./src/hash_test_interface.h:553:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashSet' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_SparseHashSet<K2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:772:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashMap' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_DenseHashMap<K2,T2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:876:15: note: candidate template ignored: could not match 'HashtableInterface_DenseHashSet' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_DenseHashSet<K2,Empty2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:1007:15: note: candidate template ignored: substitution failure [with V2 = const char *, K2 = const char *]: deduced non-type template argument does not have the same type as the its corresponding template parameter ('const char *' vs 'const char *const &')
friend void swap(
^
./src/sparsehash/sparsetable:1813:13: note: candidate template ignored: could not match 'sparsetable' against 'HashtableInterface_DenseHashtable'
inline void swap(sparsetable<T,GROUP_SIZE,Alloc> &x,
^
./src/sparsehash/internal/sparsehashtable.h:1222:13: note: candidate template ignored: could not match 'sparse_hashtable' against 'HashtableInterface_DenseHashtable'
inline void swap(sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> &x,
^
./src/sparsehash/sparse_hash_set:331:13: note: candidate template ignored: could not match 'sparse_hash_set' against 'HashtableInterface_DenseHashtable'
inline void swap(sparse_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/sparsehash/dense_hash_set:331:13: note: candidate template ignored: could not match 'dense_hash_set' against 'HashtableInterface_DenseHashtable'
inline void swap(dense_hash_set<Val, HashFcn, EqualKey, Alloc>& hs1,
^
./src/hash_test_interface.h:446:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashMap' against 'HashtableInterface_DenseHashtable'
friend void swap(HashtableInterface_SparseHashMap<K2,T2,H2,E2,A2>& a,
^
./src/hash_test_interface.h:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashtable'
friend void swap(
^
6 errors generated.
make[4]: *** [hashtable_test.o] Error 1
make[3]: *** [all] Error 2
make[2]: *** [libsparsehash-prefix/src/libsparsehash-stamp/libsparsehash-build] Error 2
make[1]: *** [CMakeFiles/libsparsehash.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment