Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

google-sparsehash 2.0.2 doesn't build on Mac OS 10.11 DP 2 #41087

Closed
primalmotion opened this issue Jun 25, 2015 · 6 comments
Closed

google-sparsehash 2.0.2 doesn't build on Mac OS 10.11 DP 2 #41087

primalmotion opened this issue Jun 25, 2015 · 6 comments
Labels

Comments

@primalmotion
Copy link

brew install google-sparsehash does not work on El Capitan DP 2

textmate [master] % brew install google-sparsehash -v
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Downloading https://sparsehash.googlecode.com/files/sparsehash-2.0.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/google-sparsehash-2.0.2.tar.gz
==> Verifying google-sparsehash-2.0.2.tar.gz checksum
tar xf /Library/Caches/Homebrew/google-sparsehash-2.0.2.tar.gz
==> Downloading https://gist.githubusercontent.com/jacknagel/3314c8cc67032a912f8b/raw/387b44a3b46e7b68876dbcb3c6595d700fa08a3c/sparsehash.diff
Already downloaded: /Library/Caches/Homebrew/google-sparsehash--patch-bc2083e2c7e699c04f65a1d87dd0cb96deee9b24.diff
==> Verifying google-sparsehash--patch-bc2083e2c7e699c04f65a1d87dd0cb96deee9b24.diff checksum
==> Patching
/usr/bin/patch -g 0 -f -p1 -i /private/tmp/google-sparsehash--patch20150625-17028-1ecjkpm/sparsehash.diff
patching file src/sparsehash/internal/sparsehashtable.h
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/google-sparsehash/2.0.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of clang++... none
checking for gcc... clang
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking dependency style of clang... none
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for memcpy... yes
checking for memmove... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for uint16_t... yes
checking for u_int16_t... yes
checking for __uint16... no
checking for long long... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking how to run the C++ preprocessor... clang++ -E
checking google/malloc_extension.h usability... no
checking google/malloc_extension.h presence... no
checking for google/malloc_extension.h... no
checking whether the compiler implements namespaces... yes
checking the location of hash_map... <unordered_map>
checking how to include hash_fun directly... <functional>
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
==> make check
[ -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-beta.app/Contents/Developer/usr/bin/make  check-am
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -c -o template_util_unittest.o `test -f 'src/template_util_unittest.cc' || echo './'`src/template_util_unittest.cc
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -c -o type_traits_unittest.o `test -f 'src/type_traits_unittest.cc' || echo './'`src/type_traits_unittest.cc
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -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
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -c -o sparsetable_unittest.o `test -f 'src/sparsetable_unittest.cc' || echo './'`src/sparsetable_unittest.cc
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -c -o hashtable_test.o `test -f 'src/hashtable_test.cc' || echo './'`src/hashtable_test.cc
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -c -o simple_test.o `test -f 'src/simple_test.cc' || echo './'`src/simple_test.cc
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -c -o simple_compat_test.o `test -f 'src/simple_compat_test.cc' || echo './'`src/simple_compat_test.cc
clang++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -c -o time_hash_map-time_hash_map.o `test -f 'src/time_hash_map.cc' || echo './'`src/time_hash_map.cc
echo 'prefix=/usr/local/Cellar/google-sparsehash/2.0.2' > "libsparsehash.pc".tmp
echo 'exec_prefix='`echo '/usr/local/Cellar/google-sparsehash/2.0.2' | sed 's@^/usr/local/Cellar/google-sparsehash/2.0.2@${prefix}@'` >> "libsparsehash.pc".tmp
echo 'libdir='`echo '/usr/local/Cellar/google-sparsehash/2.0.2/lib' | sed 's@^/usr/local/Cellar/google-sparsehash/2.0.2@${exec_prefix}@'` >> "libsparsehash.pc".tmp
echo 'includedir='`echo '/usr/local/Cellar/google-sparsehash/2.0.2/include' | sed 's@^/usr/local/Cellar/google-sparsehash/2.0.2@${prefix}@'` >> "libsparsehash.pc".tmp
echo '' >> "libsparsehash.pc".tmp
echo 'Name: sparsehash' >> "libsparsehash.pc".tmp
echo 'Version: 2.0.2' >> "libsparsehash.pc".tmp
grep '^Summary:' ./packages/rpm/rpm.spec | sed s/^Summary:/Description:/ | head -n1 >> "libsparsehash.pc".tmp
grep '^URL: ' ./packages/rpm/rpm.spec >> "libsparsehash.pc".tmp
echo 'Requires:' >> "libsparsehash.pc".tmp
clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o template_util_unittest template_util_unittest.o   
echo 'Libs:' >> "libsparsehash.pc".tmp
echo 'Cflags: -I${includedir}' >> "libsparsehash.pc".tmp
mv -f "libsparsehash.pc".tmp "libsparsehash.pc"
clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o type_traits_unittest type_traits_unittest.o    
clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o   
clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_test simple_test.o    
clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_compat_test simple_compat_test.o      
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/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/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: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/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: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: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/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_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/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: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/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/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: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: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/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_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/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: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:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashtable'
  friend void swap(
              ^
./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/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/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/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/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/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: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/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: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: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/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_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/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: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/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/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: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: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/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_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/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: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:674:15: note: candidate template ignored: could not match 'HashtableInterface_SparseHashtable' against 'HashtableInterface_DenseHashtable'
  friend void swap(
              ^
./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/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/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,
              ^
clang++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o sparsetable_unittest sparsetable_unittest.o    
6 errors generated.
make[1]: *** [hashtable_test.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [check] Error 2
==> Formula
Path: /usr/local/Library/Formula/google-sparsehash.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 1024bbbc56971eac629863216a0d190811192561
Last commit: 6 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.11-x86_64
Xcode: 7.0 => /Applications/Xcode-beta.app/Contents/Developer
CLT: 7.0.0.0.1.1434774289
Clang: 7.0 build 700
X11: 2.7.7 => /opt/X11
System Ruby: 2.0.0-p645
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
Java: 1.8.0_05
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11
PATH: /usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin

Error: google-sparsehash 2.0.2 did not build
Logs:
     /Users/Tonio/Library/Logs/Homebrew/google-sparsehash/01.configure
     /Users/Tonio/Library/Logs/Homebrew/google-sparsehash/01.configure.cc
     /Users/Tonio/Library/Logs/Homebrew/google-sparsehash/02.make
     /Users/Tonio/Library/Logs/Homebrew/google-sparsehash/02.make.cc
     /Users/Tonio/Library/Logs/Homebrew/google-sparsehash/config.log

Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
@DomT4 DomT4 added the 10.11 label Jun 25, 2015
@primalmotion
Copy link
Author

seems like removing the check where the comment says NOTE: MSVC seems to have trouble with this free swap, not quite sure why. I've given up trying to fix it though. makes build to pass.

--- /Users/Tonio/Desktop/hashtable_test.cc  2015-06-25 13:26:42.000000000 -0700
+++ src/hashtable_test.cc   2015-06-25 13:26:52.000000000 -0700
@@ -898,11 +898,7 @@
   // Now swap back, using the free-function swap
   // NOTE: MSVC seems to have trouble with this free swap, not quite
   // sure why.  I've given up trying to fix it though.
-#ifdef _MSC_VER
   other_ht.swap(this->ht_);
-#else
-  swap(this->ht_, other_ht);
-#endif

   EXPECT_EQ(this->UniqueKey(1), this->ht_.deleted_key());
   EXPECT_EQ(this->UniqueKey(2), other_ht.deleted_key());

@primalmotion
Copy link
Author

but I'm not sure it makes it work...

@tdsmith
Copy link
Contributor

tdsmith commented Jun 26, 2015

Can you report this to the google-sparsehash developers, please? If you can link to the issue you file, that would be helpful. Thanks!

@DomT4
Copy link
Member

DomT4 commented Jul 6, 2015

Tracking in #40837. Let's get this reported upstream if it hasn't been, Thanks.

@DomT4 DomT4 closed this as completed Jul 6, 2015
@andrew-hill
Copy link

@DomT4
Copy link
Member

DomT4 commented Aug 12, 2015

Thank you! Added the upstream report to the list.

tschoonj added a commit to tschoonj/homebrew that referenced this issue Sep 29, 2015
see also Homebrew#41087
The latest Xcode release for Yosemite produces the same error that was
previously seen on El Capitan
tschoonj added a commit to tschoonj/homebrew that referenced this issue Oct 2, 2015
see also Homebrew#41087
The latest Xcode release for Yosemite produces the same error that was
previously seen on El Capitan
tschoonj added a commit to tschoonj/homebrew that referenced this issue Oct 2, 2015
see also Homebrew#41087
The latest Xcode release for Yosemite produces the same error that was
previously seen on El Capitan
tschoonj added a commit to tschoonj/homebrew that referenced this issue Oct 2, 2015
see also Homebrew#41087
The latest Xcode release for Yosemite produces the same error that was
previously seen on El Capitan
DomT4 pushed a commit that referenced this issue Oct 2, 2015
see also #41087
The latest Xcode release for Yosemite produces the same error that was
previously seen on El Capitan

Closes #44438.

Signed-off-by: Dominyk Tiller <[email protected]>
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants