rdp / google_hash

wrapper for google's hash functions, for ruby
BSD 3-Clause "New" or "Revised" License
92 stars 16 forks source link

Native extension fails to build on MacOSX 10.10 #33

Closed maasha closed 9 years ago

maasha commented 9 years ago
/usr/local/opt/ruby/bin/ruby -r ./siteconf20150115-10862-1kwvmqs.rb extconf.rb
building local copy/version of google sparse/dense hash library
sh configure --prefix=/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed
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 for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -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... g++ -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
[ -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
g++ -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
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o template_util_unittest template_util_unittest.o   
g++ -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
src/type_traits_unittest.cc:88:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:98:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:112:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:138:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
4 warnings generated.
mv -f .deps/type_traits_unittest.Tpo .deps/type_traits_unittest.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o type_traits_unittest type_traits_unittest.o    
g++ -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
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o   
g++ -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
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o sparsetable_unittest sparsetable_unittest.o    
g++ -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
In file included from src/hashtable_test.cc:63:
./src/hash_test_interface.h:436:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
./src/hash_test_interface.h:543:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
./src/hash_test_interface.h:659:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
src/hashtable_test.cc:520:1: warning: unused variable 'HashtableCharStarTest_numtypes' [-Wunused-const-variable]
TYPED_TEST_CASE_6(HashtableCharStarTest, CharStarHashtables);
^
./src/testutil.h:106:20: note: expanded from macro 'TYPED_TEST_CASE_6'
  static const int classname##_numtypes = 6;    \
                   ^
<scratch space>:90:1: note: expanded from here
HashtableCharStarTest_numtypes
^
4 warnings generated.
mv -f .deps/hashtable_test.Tpo .deps/hashtable_test.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o hashtable_test hashtable_test.o     
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_test.o -MD -MP -MF .deps/simple_test.Tpo -c -o simple_test.o `test -f 'src/simple_test.cc' || echo './'`src/simple_test.cc
mv -f .deps/simple_test.Tpo .deps/simple_test.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_test simple_test.o    
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_compat_test.o -MD -MP -MF .deps/simple_compat_test.Tpo -c -o simple_compat_test.o `test -f 'src/simple_compat_test.cc' || echo './'`src/simple_compat_test.cc
mv -f .deps/simple_compat_test.Tpo .deps/simple_compat_test.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_compat_test simple_compat_test.o      
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT time_hash_map-time_hash_map.o -MD -MP -MF .deps/time_hash_map-time_hash_map.Tpo -c -o time_hash_map-time_hash_map.o `test -f 'src/time_hash_map.cc' || echo './'`src/time_hash_map.cc
mv -f .deps/time_hash_map-time_hash_map.Tpo .deps/time_hash_map-time_hash_map.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o time_hash_map time_hash_map-time_hash_map.o     
echo 'prefix=/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed' > "libsparsehash.pc".tmp
echo 'exec_prefix='`echo '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed' | sed 's@^/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed@${prefix}@'` >> "libsparsehash.pc".tmp
echo 'libdir='`echo '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib' | sed 's@^/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed@${exec_prefix}@'` >> "libsparsehash.pc".tmp
echo 'includedir='`echo '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include' | sed 's@^/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed@${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
echo 'Libs:' >> "libsparsehash.pc".tmp
echo 'Cflags: -I${includedir}' >> "libsparsehash.pc".tmp
mv -f "libsparsehash.pc".tmp "libsparsehash.pc"
/Applications/Xcode.app/Contents/Developer/usr/bin/make  install-am
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib"
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/share/doc/sparsehash-2.0.2" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/share/doc/sparsehash-2.0.2"
 /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt TODO doc/dense_hash_map.html doc/dense_hash_set.html doc/sparse_hash_map.html doc/sparse_hash_set.html doc/sparsetable.html doc/implementation.html doc/performance.html doc/index.html doc/designstyle.css '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/share/doc/sparsehash-2.0.2'
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google"
 /usr/bin/install -c -m 644 src/google/dense_hash_map src/google/dense_hash_set src/google/sparse_hash_map src/google/sparse_hash_set src/google/sparsetable src/google/template_util.h src/google/type_traits.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google'
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google/sparsehash" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google/sparsehash"
 /usr/bin/install -c -m 644 src/google/sparsehash/densehashtable.h src/google/sparsehash/sparsehashtable.h src/google/sparsehash/hashtable-common.h src/google/sparsehash/libc_allocator_with_realloc.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google/sparsehash'
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal"
 /usr/bin/install -c -m 644 src/sparsehash/internal/densehashtable.h src/sparsehash/internal/sparsehashtable.h src/sparsehash/internal/hashtable-common.h src/sparsehash/internal/libc_allocator_with_realloc.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal'
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal"
 /usr/bin/install -c -m 644 src/sparsehash/internal/sparseconfig.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal'
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib/pkgconfig" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib/pkgconfig"
 /usr/bin/install -c -m 644 libsparsehash.pc '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib/pkgconfig'
test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash"
 /usr/bin/install -c -m 644 src/sparsehash/dense_hash_map src/sparsehash/dense_hash_set src/sparsehash/sparse_hash_map src/sparsehash/sparse_hash_set src/sparsehash/sparsetable src/sparsehash/template_util.h src/sparsehash/type_traits.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash'
running from /usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext
checking for tr1/functional... no
checking for functional... yes
checking for tr1/functional... no
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling dense_double_to_double.cpp
In file included from dense_double_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_double_to_int.cpp
In file included from dense_double_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_double_to_long.cpp
In file included from dense_double_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_double_to_ruby.cpp
In file included from dense_double_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_double.cpp
In file included from dense_int_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_int.cpp
In file included from dense_int_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_long.cpp
In file included from dense_int_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_ruby.cpp
In file included from dense_int_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_double.cpp
In file included from dense_long_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_int.cpp
In file included from dense_long_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_long.cpp
In file included from dense_long_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_ruby.cpp
In file included from dense_long_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_ruby_to_double.cpp
In file included from dense_ruby_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
dense_ruby_to_double.cpp:84:39: error: use of undeclared identifier 'RBIGNUM'
                    return LONG2FIX(((long*)(RBIGNUM_DIGITS(hash_me)))[0]); // its first digit...I'm thinkin'
                                             ^
dense_ruby_to_double.cpp:59:28: note: expanded from macro 'RBIGNUM_DIGITS'
# define RBIGNUM_DIGITS(a) RBIGNUM(a)->digits
                           ^
/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:235:29: note: expanded from macro 'LONG2FIX'
#define LONG2FIX(i) INT2FIX(i)
                            ^
/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:234:30: note: expanded from macro 'INT2FIX'
#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
                             ^
dense_ruby_to_double.cpp:99:41: error: use of undeclared identifier 'RBIGNUM'
                      return LONG2FIX(((long*)(RBIGNUM_DIGITS(hval)))[0]);
                                               ^
dense_ruby_to_double.cpp:59:28: note: expanded from macro 'RBIGNUM_DIGITS'
# define RBIGNUM_DIGITS(a) RBIGNUM(a)->digits
                           ^
/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:235:29: note: expanded from macro 'LONG2FIX'
#define LONG2FIX(i) INT2FIX(i)
                            ^
/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:234:30: note: expanded from macro 'INT2FIX'
#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
                             ^
1 warning and 2 errors generated.
make: *** [dense_ruby_to_double.o] Error 1

make failed, exit code 2
rdp commented 9 years ago

could you try with git master please?

On Thu, Jan 15, 2015 at 2:50 PM, maasha notifications@github.com wrote:

/usr/local/opt/ruby/bin/ruby -r ./siteconf20150115-10862-1kwvmqs.rb extconf.rb building local copy/version of google sparse/dense hash library sh configure --prefix=/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed 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 for g++... g++ 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 g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -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... g++ -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... checking how to include hash_fun directly... configure: creating ./config.status config.status: creating Makefile config.status: creating src/config.h config.status: executing depfiles commands [ -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 g++ -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 g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o template_util_unittest template_util_unittest.o g++ -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 src/type_traitsunittest.cc:88:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:98:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:112:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:138:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ 4 warnings generated. mv -f .deps/type_traits_unittest.Tpo .deps/type_traits_unittest.Po g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o type_traits_unittest type_traits_unittest.o g++ -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 g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o g++ -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 g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o sparsetable_unittest sparsetable_unittest.o g++ -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 In file included from src/hashtable_test.cc:63: ./src/hash_test_interface.h:436:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ ./src/hash_test_interface.h:543:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ ./src/hash_test_interface.h:659:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ src/hashtable_test.cc:520:1: warning: unused variable 'HashtableCharStarTest_numtypes' [-Wunused-const-variable] TYPED_TEST_CASE_6(HashtableCharStarTest, CharStarHashtables); ^ ./src/testutil.h:106:20: note: expanded from macro 'TYPED_TEST_CASE_6' static const int classname##_numtypes = 6; \ ^

:90:1: note: expanded from here HashtableCharStarTest_numtypes ^ 4 warnings generated. mv -f .deps/hashtable_test.Tpo .deps/hashtable_test.Po g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o hashtable_test hashtable_test.o g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_test.o -MD -MP -MF .deps/simple_test.Tpo -c -o simple_test.o `test -f 'src/simple_test.cc' || echo './'`src/simple_test.cc mv -f .deps/simple_test.Tpo .deps/simple_test.Po g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o simple_test simple_test.o g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_compat_test.o -MD -MP -MF .deps/simple_compat_test.Tpo -c -o simple_compat_test.o `test -f 'src/simple_compat_test.cc' || echo './'`src/simple_compat_test.cc mv -f .deps/simple_compat_test.Tpo .deps/simple_compat_test.Po g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o simple_compat_test simple_compat_test.o g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT time_hash_map-time_hash_map.o -MD -MP -MF .deps/time_hash_map-time_hash_map.Tpo -c -o time_hash_map-time_hash_map.o `test -f 'src/time_hash_map.cc' || echo './'`src/time_hash_map.cc mv -f .deps/time_hash_map-time_hash_map.Tpo .deps/time_hash_map-time_hash_map.Po g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o time_hash_map time_hash_map-time_hash_map.o echo 'prefix=/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed' > "libsparsehash.pc".tmp echo 'exec_prefix='`echo '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed' | sed 's@^/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed@${prefix}@'` >> "libsparsehash.pc".tmp echo 'libdir='`echo '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib' | sed 's@^/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed@${exec_prefix}@'` >> "libsparsehash.pc".tmp echo 'includedir='`echo '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include' | sed 's@^/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed@${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 echo 'Libs:' >> "libsparsehash.pc".tmp echo 'Cflags: -I${includedir}' >> "libsparsehash.pc".tmp mv -f "libsparsehash.pc".tmp "libsparsehash.pc" /Applications/Xcode.app/Contents/Developer/usr/bin/make install-am test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib" test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/share/doc/sparsehash-2.0.2" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/share/doc/sparsehash-2.0.2" /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt TODO doc/dense_hash_map.html doc/dense_hash_set.html doc/sparse_hash_map.html doc/sparse_hash_set.html doc/sparsetable.html doc/implementation.html doc/performance.html doc/index.html doc/designstyle.css '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/share/doc/sparsehash-2.0.2' test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google" /usr/bin/install -c -m 644 src/google/dense_hash_map src/google/dense_hash_set src/google/sparse_hash_map src/google/sparse_hash_set src/google/sparsetable src/google/template_util.h src/google/type_traits.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google' test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google/sparsehash" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google/sparsehash" /usr/bin/install -c -m 644 src/google/sparsehash/densehashtable.h src/google/sparsehash/sparsehashtable.h src/google/sparsehash/hashtable-common.h src/google/sparsehash/libc_allocator_with_realloc.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/google/sparsehash' test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal" /usr/bin/install -c -m 644 src/sparsehash/internal/densehashtable.h src/sparsehash/internal/sparsehashtable.h src/sparsehash/internal/hashtable-common.h src/sparsehash/internal/libc_allocator_with_realloc.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal' test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal" /usr/bin/install -c -m 644 src/sparsehash/internal/sparseconfig.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash/internal' test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib/pkgconfig" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib/pkgconfig" /usr/bin/install -c -m 644 libsparsehash.pc '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/lib/pkgconfig' test -z "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash" || ./install-sh -c -d "/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash" /usr/bin/install -c -m 644 src/sparsehash/dense_hash_map src/sparsehash/dense_hash_set src/sparsehash/sparse_hash_map src/sparsehash/sparse_hash_set src/sparsehash/sparsetable src/sparsehash/template_util.h src/sparsehash/type_traits.h '/usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext/local_installed/include/sparsehash' running from /usr/local/Cellar/ruby/2.2.0/lib/ruby/gems/2.2.0/gems/google_hash-0.8.4/ext checking for tr1/functional... no checking for functional... yes checking for tr1/functional... no creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" compiling dense_double_to_double.cpp In file included from dense_double_to_double.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_double_to_int.cpp In file included from dense_double_to_int.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_double_to_long.cpp In file included from dense_double_to_long.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_double_to_ruby.cpp In file included from dense_double_to_ruby.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_int_to_double.cpp In file included from dense_int_to_double.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_int_to_int.cpp In file included from dense_int_to_int.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_int_to_long.cpp In file included from dense_int_to_long.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_int_to_ruby.cpp In file included from dense_int_to_ruby.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_long_to_double.cpp In file included from dense_long_to_double.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_long_to_int.cpp In file included from dense_long_to_int.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_long_to_long.cpp In file included from dense_long_to_long.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_long_to_ruby.cpp In file included from dense_long_to_ruby.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

1 warning generated. compiling dense_ruby_to_double.cpp In file included from dense_ruby_to_double.cpp:22: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to [-W#warnings]

warning Use of the header <ext/hash_set> is deprecated. Migrate to

^

dense_ruby_to_double.cpp:84:39: error: use of undeclared identifier 'RBIGNUM' return LONG2FIX(((long*)(RBIGNUM_DIGITS(hash_me)))[0]); // its first digit...I'm thinkin' ^ dense_ruby_to_double.cpp:59:28: note: expanded from macro 'RBIGNUM_DIGITS'

define RBIGNUM_DIGITS(a) RBIGNUM(a)->digits

                       ^

/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:235:29: note: expanded from macro 'LONG2FIX'

define LONG2FIX(i) INT2FIX(i)

                        ^

/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:234:30: note: expanded from macro 'INT2FIX'

define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)

                         ^

dense_ruby_to_double.cpp:99:41: error: use of undeclared identifier 'RBIGNUM' return LONG2FIX(((long*)(RBIGNUM_DIGITS(hval)))[0]); ^ dense_ruby_to_double.cpp:59:28: note: expanded from macro 'RBIGNUM_DIGITS'

define RBIGNUM_DIGITS(a) RBIGNUM(a)->digits

                       ^

/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:235:29: note: expanded from macro 'LONG2FIX'

define LONG2FIX(i) INT2FIX(i)

                        ^

/usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/ruby.h:234:30: note: expanded from macro 'INT2FIX'

define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)

                         ^

1 warning and 2 errors generated. make: *\ [dense_ruby_to_double.o] Error 1

make failed, exit code 2

— Reply to this email directly or view it on GitHub https://github.com/rdp/google_hash/issues/33.

maasha commented 9 years ago

OK, only warnings now:

maasha@edna:~/install/src/google_hash/ext$ ruby extconf.rb
building local copy/version of google sparse/dense hash library
sh configure --prefix=/Users/maasha/install/src/google_hash/ext/local_installed
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 for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -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... g++ -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
[ -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
g++ -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
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o template_util_unittest template_util_unittest.o
g++ -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
src/type_traits_unittest.cc:88:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:98:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:112:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:138:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
4 warnings generated.
mv -f .deps/type_traits_unittest.Tpo .deps/type_traits_unittest.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o type_traits_unittest type_traits_unittest.o
g++ -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
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o
g++ -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
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o sparsetable_unittest sparsetable_unittest.o
g++ -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
In file included from src/hashtable_test.cc:63:
./src/hash_test_interface.h:436:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
./src/hash_test_interface.h:543:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
./src/hash_test_interface.h:659:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
src/hashtable_test.cc:520:1: warning: unused variable 'HashtableCharStarTest_numtypes' [-Wunused-const-variable]
TYPED_TEST_CASE_6(HashtableCharStarTest, CharStarHashtables);
^
./src/testutil.h:106:20: note: expanded from macro 'TYPED_TEST_CASE_6'
  static const int classname##_numtypes = 6;    \
                   ^
<scratch space>:90:1: note: expanded from here
HashtableCharStarTest_numtypes
^
4 warnings generated.
mv -f .deps/hashtable_test.Tpo .deps/hashtable_test.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o hashtable_test hashtable_test.o
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_test.o -MD -MP -MF .deps/simple_test.Tpo -c -o simple_test.o `test -f 'src/simple_test.cc' || echo './'`src/simple_test.cc
mv -f .deps/simple_test.Tpo .deps/simple_test.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_test simple_test.o
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_compat_test.o -MD -MP -MF .deps/simple_compat_test.Tpo -c -o simple_compat_test.o `test -f 'src/simple_compat_test.cc' || echo './'`src/simple_compat_test.cc
mv -f .deps/simple_compat_test.Tpo .deps/simple_compat_test.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_compat_test simple_compat_test.o
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT time_hash_map-time_hash_map.o -MD -MP -MF .deps/time_hash_map-time_hash_map.Tpo -c -o time_hash_map-time_hash_map.o `test -f 'src/time_hash_map.cc' || echo './'`src/time_hash_map.cc
mv -f .deps/time_hash_map-time_hash_map.Tpo .deps/time_hash_map-time_hash_map.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o time_hash_map time_hash_map-time_hash_map.o
echo 'prefix=/Users/maasha/install/src/google_hash/ext/local_installed' > "libsparsehash.pc".tmp
echo 'exec_prefix='`echo '/Users/maasha/install/src/google_hash/ext/local_installed' | sed 's@^/Users/maasha/install/src/google_hash/ext/local_installed@${prefix}@'` >> "libsparsehash.pc".tmp
echo 'libdir='`echo '/Users/maasha/install/src/google_hash/ext/local_installed/lib' | sed 's@^/Users/maasha/install/src/google_hash/ext/local_installed@${exec_prefix}@'` >> "libsparsehash.pc".tmp
echo 'includedir='`echo '/Users/maasha/install/src/google_hash/ext/local_installed/include' | sed 's@^/Users/maasha/install/src/google_hash/ext/local_installed@${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
echo 'Libs:' >> "libsparsehash.pc".tmp
echo 'Cflags: -I${includedir}' >> "libsparsehash.pc".tmp
mv -f "libsparsehash.pc".tmp "libsparsehash.pc"
/Applications/Xcode.app/Contents/Developer/usr/bin/make  install-am
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/lib" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/lib"
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/share/doc/sparsehash-2.0.2" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/share/doc/sparsehash-2.0.2"
 /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt TODO doc/dense_hash_map.html doc/dense_hash_set.html doc/sparse_hash_map.html doc/sparse_hash_set.html doc/sparsetable.html doc/implementation.html doc/performance.html doc/index.html doc/designstyle.css '/Users/maasha/install/src/google_hash/ext/local_installed/share/doc/sparsehash-2.0.2'
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/include/google" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/include/google"
 /usr/bin/install -c -m 644 src/google/dense_hash_map src/google/dense_hash_set src/google/sparse_hash_map src/google/sparse_hash_set src/google/sparsetable src/google/template_util.h src/google/type_traits.h '/Users/maasha/install/src/google_hash/ext/local_installed/include/google'
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/include/google/sparsehash" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/include/google/sparsehash"
 /usr/bin/install -c -m 644 src/google/sparsehash/densehashtable.h src/google/sparsehash/sparsehashtable.h src/google/sparsehash/hashtable-common.h src/google/sparsehash/libc_allocator_with_realloc.h '/Users/maasha/install/src/google_hash/ext/local_installed/include/google/sparsehash'
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash/internal"
 /usr/bin/install -c -m 644 src/sparsehash/internal/densehashtable.h src/sparsehash/internal/sparsehashtable.h src/sparsehash/internal/hashtable-common.h src/sparsehash/internal/libc_allocator_with_realloc.h '/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash/internal'
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash/internal"
 /usr/bin/install -c -m 644 src/sparsehash/internal/sparseconfig.h '/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash/internal'
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/lib/pkgconfig" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/lib/pkgconfig"
 /usr/bin/install -c -m 644 libsparsehash.pc '/Users/maasha/install/src/google_hash/ext/local_installed/lib/pkgconfig'
test -z "/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash" || ./install-sh -c -d "/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash"
 /usr/bin/install -c -m 644 src/sparsehash/dense_hash_map src/sparsehash/dense_hash_set src/sparsehash/sparse_hash_map src/sparsehash/sparse_hash_set src/sparsehash/sparsetable src/sparsehash/template_util.h src/sparsehash/type_traits.h '/Users/maasha/install/src/google_hash/ext/local_installed/include/sparsehash'
running from /Users/maasha/install/src/google_hash/ext
checking for tr1/functional... no
checking for functional... yes
checking for tr1/functional... no
creating Makefile
maasha@edna:~/install/src/google_hash/ext$ make
compiling dense_double_to_double.cpp
In file included from dense_double_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_double_to_int.cpp
In file included from dense_double_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_double_to_long.cpp
In file included from dense_double_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_double_to_ruby.cpp
In file included from dense_double_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_double.cpp
In file included from dense_int_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_int.cpp
In file included from dense_int_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_long.cpp
In file included from dense_int_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_int_to_ruby.cpp
In file included from dense_int_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_double.cpp
In file included from dense_long_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_int.cpp
In file included from dense_long_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_long.cpp
In file included from dense_long_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_long_to_ruby.cpp
In file included from dense_long_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_ruby_to_double.cpp
In file included from dense_ruby_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_ruby_to_int.cpp
In file included from dense_ruby_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_ruby_to_long.cpp
In file included from dense_ruby_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling dense_ruby_to_ruby.cpp
In file included from dense_ruby_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling main.cpp
compiling sparse_double_to_double.cpp
In file included from sparse_double_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_double_to_int.cpp
In file included from sparse_double_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_double_to_long.cpp
In file included from sparse_double_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_double_to_ruby.cpp
In file included from sparse_double_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_int_to_double.cpp
In file included from sparse_int_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_int_to_int.cpp
In file included from sparse_int_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_int_to_long.cpp
In file included from sparse_int_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_int_to_ruby.cpp
In file included from sparse_int_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_long_to_double.cpp
In file included from sparse_long_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_long_to_int.cpp
In file included from sparse_long_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_long_to_long.cpp
In file included from sparse_long_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_long_to_ruby.cpp
In file included from sparse_long_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_ruby_to_double.cpp
In file included from sparse_ruby_to_double.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_ruby_to_int.cpp
In file included from sparse_ruby_to_int.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_ruby_to_long.cpp
In file included from sparse_ruby_to_long.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
compiling sparse_ruby_to_ruby.cpp
In file included from sparse_ruby_to_ruby.cpp:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_set:205:5: warning: Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> [-W#warnings]
#   warning Use of the header <ext/hash_set> is deprecated.  Migrate to <unordered_set>
    ^
1 warning generated.
linking shared-object google_hash.bundle
rdp commented 9 years ago

ok hopefully fixed in 0.8.5

bbhoss commented 9 years ago

This works with 0.8.5, but fails in the latest release: https://gist.github.com/bbhoss/109016af0af101c95a90

rdp commented 9 years ago

try with 0.8.8 please?

On Fri, Apr 17, 2015 at 8:34 PM, Preston Marshall notifications@github.com wrote:

This works with 0.8.5, but fails in the latest release: https://gist.github.com/bbhoss/109016af0af101c95a90

— Reply to this email directly or view it on GitHub https://github.com/rdp/google_hash/issues/33#issuecomment-94118506.

maasha commented 9 years ago
maasha@edna:~/scratch$ gem install google_hash
Fetching: google_hash-0.8.8.gem (100%)
Building native extensions.  This could take a while...
Successfully installed google_hash-0.8.8
Parsing documentation for google_hash-0.8.8
Installing ri documentation for google_hash-0.8.8
Done installing documentation for google_hash after 4 seconds
1 gem installed
maasha@edna:~/scratch$ uname -a
Darwin edna 14.1.0 Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64
rdp commented 9 years ago

Thanks for the note.

maasha commented 9 years ago

No. Thank YOU for an awesome gem.

bbhoss commented 9 years ago

For some reason I'm still having issues. Do you have a gcc? If so, what version?

Building native extensions.  This could take a while...
ERROR:  Error installing google_hash:
    ERROR: Failed to build gem native extension.

    /Users/bbhoss/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
building local copy/version of google sparse/dense hash library
sh configure --prefix=/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed
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 for g++... no
checking for c++... c++
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 c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking for gcc... no
checking for cc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cc -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... c++ -E
checking google/malloc_extension.h usability... yes
checking google/malloc_extension.h presence... yes
checking for google/malloc_extension.h... yes
checking build system type... x86_64-apple-darwin14.0.0
checking host system type... x86_64-apple-darwin14.0.0
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking whether to check for GCC pthread/shared inconsistencies... no
checking whether what we have so far is sufficient with -nostdlib... no
checking whether -lpthread saves the day... no
configure: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib
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
[ -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
c++ -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
c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o template_util_unittest template_util_unittest.o
c++ -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
src/type_traits_unittest.cc:296:28: warning: 'const' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers]
  EXPECT_TRUE(is_reference<const RefFloat>::value);
                           ^~~~~~
./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE'
  if (!(cond)) {                                        \
        ^
src/type_traits_unittest.cc:297:28: warning: 'volatile' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers]
  EXPECT_TRUE(is_reference<volatile RefFloat>::value);
                           ^~~~~~~~~
./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE'
  if (!(cond)) {                                        \
        ^
src/type_traits_unittest.cc:298:28: warning: 'const' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers]
  EXPECT_TRUE(is_reference<const volatile RefFloat>::value);
                           ^~~~~~
./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE'
  if (!(cond)) {                                        \
        ^
src/type_traits_unittest.cc:298:34: warning: 'volatile' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers]
  EXPECT_TRUE(is_reference<const volatile RefFloat>::value);
                                 ^~~~~~~~~
./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE'
  if (!(cond)) {                                        \
        ^
src/type_traits_unittest.cc:88:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:98:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:112:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
src/type_traits_unittest.cc:138:7: warning: private field 'n_' is not used [-Wunused-private-field]
  int n_;
      ^
8 warnings generated.
mv -f .deps/type_traits_unittest.Tpo .deps/type_traits_unittest.Po
c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o type_traits_unittest type_traits_unittest.o
c++ -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
c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o
c++ -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
c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o sparsetable_unittest sparsetable_unittest.o
c++ -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
In file included from src/hashtable_test.cc:63:
./src/hash_test_interface.h:436:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
./src/hash_test_interface.h:543:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
./src/hash_test_interface.h:659:50: warning: unused parameter 'k' [-Wunused-parameter]
  void set_empty_key(const typename p::key_type& k) { }
                                                 ^
src/hashtable_test.cc:520:1: warning: unused variable 'HashtableCharStarTest_numtypes' [-Wunused-const-variable]
TYPED_TEST_CASE_6(HashtableCharStarTest, CharStarHashtables);
^
./src/testutil.h:106:20: note: expanded from macro 'TYPED_TEST_CASE_6'
  static const int classname##_numtypes = 6;    \
                   ^
<scratch space>:94:1: note: expanded from here
HashtableCharStarTest_numtypes
^
4 warnings generated.
mv -f .deps/hashtable_test.Tpo .deps/hashtable_test.Po
c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o hashtable_test hashtable_test.o
c++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_test.o -MD -MP -MF .deps/simple_test.Tpo -c -o simple_test.o `test -f 'src/simple_test.cc' || echo './'`src/simple_test.cc
mv -f .deps/simple_test.Tpo .deps/simple_test.Po
c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_test simple_test.o
c++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_compat_test.o -MD -MP -MF .deps/simple_compat_test.Tpo -c -o simple_compat_test.o `test -f 'src/simple_compat_test.cc' || echo './'`src/simple_compat_test.cc
mv -f .deps/simple_compat_test.Tpo .deps/simple_compat_test.Po
c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o simple_compat_test simple_compat_test.o
c++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -D_THREAD_SAFE  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT time_hash_map-time_hash_map.o -MD -MP -MF .deps/time_hash_map-time_hash_map.Tpo -c -o time_hash_map-time_hash_map.o `test -f 'src/time_hash_map.cc' || echo './'`src/time_hash_map.cc
mv -f .deps/time_hash_map-time_hash_map.Tpo .deps/time_hash_map-time_hash_map.Po
c++ -D_THREAD_SAFE  -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -D_THREAD_SAFE   -o time_hash_map time_hash_map-time_hash_map.o    -ltcmalloc
echo 'prefix=/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed' > "libsparsehash.pc".tmp
echo 'exec_prefix='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${prefix}@'` >> "libsparsehash.pc".tmp
echo 'libdir='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${exec_prefix}@'` >> "libsparsehash.pc".tmp
echo 'includedir='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${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
echo 'Libs:' >> "libsparsehash.pc".tmp
echo 'Cflags: -I${includedir}' >> "libsparsehash.pc".tmp
mv -f "libsparsehash.pc".tmp "libsparsehash.pc"
/Applications/Xcode.app/Contents/Developer/usr/bin/make  install-am
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib"
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2"
 /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt TODO doc/dense_hash_map.html doc/dense_hash_set.html doc/sparse_hash_map.html doc/sparse_hash_set.html doc/sparsetable.html doc/implementation.html doc/performance.html doc/index.html doc/designstyle.css '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2'
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google"
 /usr/bin/install -c -m 644 src/google/dense_hash_map src/google/dense_hash_set src/google/sparse_hash_map src/google/sparse_hash_set src/google/sparsetable src/google/template_util.h src/google/type_traits.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google'
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash"
 /usr/bin/install -c -m 644 src/google/sparsehash/densehashtable.h src/google/sparsehash/sparsehashtable.h src/google/sparsehash/hashtable-common.h src/google/sparsehash/libc_allocator_with_realloc.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash'
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal"
 /usr/bin/install -c -m 644 src/sparsehash/internal/densehashtable.h src/sparsehash/internal/sparsehashtable.h src/sparsehash/internal/hashtable-common.h src/sparsehash/internal/libc_allocator_with_realloc.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal'
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal"
 /usr/bin/install -c -m 644 src/sparsehash/internal/sparseconfig.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal'
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig"
 /usr/bin/install -c -m 644 libsparsehash.pc '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig'
test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash"
 /usr/bin/install -c -m 644 src/sparsehash/dense_hash_map src/sparsehash/dense_hash_set src/sparsehash/sparse_hash_map src/sparsehash/sparse_hash_set src/sparsehash/sparsetable src/sparsehash/template_util.h src/sparsehash/type_traits.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash'
running from /Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext
checking for tr1/functional... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/bbhoss/.rvm/rubies/ruby-2.1.2/bin/ruby
/Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:587:in `try_cpp'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1067:in `block in have_header'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:321:in `open'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:321:in `open'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:347:in `postpone'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for'
    from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1066:in `have_header'
    from extconf.rb:112:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8 for inspection.
Results logged to /Users/bbhoss/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/google_hash-0.8.8/gem_make.out
maasha commented 9 years ago

gcc/g++ on Yosemite links to clang

maasha@edna:~/scratch$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
maasha@edna:~/scratch$ g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
rdp commented 9 years ago

here's my gcc, what's yours? :)

$ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix

On Wed, Apr 22, 2015 at 10:28 AM, Preston Marshall <notifications@github.com

wrote:

For some reason I'm still having issues. Do you have a gcc? If so, what version?

Building native extensions. This could take a while... ERROR: Error installing google_hash: ERROR: Failed to build gem native extension.

/Users/bbhoss/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb

building local copy/version of google sparse/dense hash library sh configure --prefix=/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed 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 for g++... no checking for c++... c++ 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 c++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of c++... gcc3 checking for gcc... no checking for cc... cc checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking dependency style of cc... gcc3 checking how to run the C preprocessor... cc -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... c++ -E checking google/malloc_extension.h usability... yes checking google/malloc_extension.h presence... yes checking for google/malloc_extension.h... yes checking build system type... x86_64-apple-darwin14.0.0 checking host system type... x86_64-apple-darwin14.0.0 checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... -D_THREAD_SAFE checking whether to check for GCC pthread/shared inconsistencies... no checking whether what we have so far is sufficient with -nostdlib... no checking whether -lpthread saves the day... no configure: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib checking whether the compiler implements namespaces... yes checking the location of hash_map... checking how to include hashfun directly... configure: creating ./config.status config.status: creating Makefile config.status: creating src/config.h config.status: executing depfiles commands [ -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 c++ -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 c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o template_util_unittest template_util_unittest.o c++ -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 src/type_traits_unittest.cc:296:28: warning: 'const' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traits_unittest.cc:297:28: warning: 'volatile' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~~~~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traits_unittest.cc:298:28: warning: 'const' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traits_unittest.cc:298:34: warning: 'volatile' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~~~~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traitsunittest.cc:88:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:98:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:112:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:138:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ 8 warnings generated. mv -f .deps/type_traits_unittest.Tpo .deps/type_traits_unittest.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o type_traits_unittest type_traits_unittest.o c++ -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 c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o c++ -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 c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o sparsetable_unittest sparsetable_unittest.o c++ -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 In file included from src/hashtable_test.cc:63: ./src/hash_test_interface.h:436:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ ./src/hash_test_interface.h:543:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ ./src/hash_test_interface.h:659:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ src/hashtable_test.cc:520:1: warning: unused variable 'HashtableCharStarTest_numtypes' [-Wunused-const-variable] TYPED_TEST_CASE_6(HashtableCharStarTest, CharStarHashtables); ^ ./src/testutil.h:106:20: note: expanded from macro 'TYPED_TEST_CASE_6' static const int classname##_numtypes = 6; \ ^

:94:1: note: expanded from here HashtableCharStarTest_numtypes ^ 4 warnings generated. mv -f .deps/hashtable_test.Tpo .deps/hashtable_test.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o hashtable_test hashtable_test.o c++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_test.o -MD -MP -MF .deps/simple_test.Tpo -c -o simple_test.o `test -f 'src/simple_test.cc' || echo './'`src/simple_test.cc mv -f .deps/simple_test.Tpo .deps/simple_test.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o simple_test simple_test.o c++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_compat_test.o -MD -MP -MF .deps/simple_compat_test.Tpo -c -o simple_compat_test.o `test -f 'src/simple_compat_test.cc' || echo './'`src/simple_compat_test.cc mv -f .deps/simple_compat_test.Tpo .deps/simple_compat_test.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o simple_compat_test simple_compat_test.o c++ -DHAVE_CONFIG_H -I. -I./src -I./src -D_THREAD_SAFE -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT time_hash_map-time_hash_map.o -MD -MP -MF .deps/time_hash_map-time_hash_map.Tpo -c -o time_hash_map-time_hash_map.o `test -f 'src/time_hash_map.cc' || echo './'`src/time_hash_map.cc mv -f .deps/time_hash_map-time_hash_map.Tpo .deps/time_hash_map-time_hash_map.Po c++ -D_THREAD_SAFE -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -D_THREAD_SAFE -o time_hash_map time_hash_map-time_hash_map.o -ltcmalloc echo 'prefix=/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed' > "libsparsehash.pc".tmp echo 'exec_prefix='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${prefix}@'` >> "libsparsehash.pc".tmp echo 'libdir='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${exec_prefix}@'` >> "libsparsehash.pc".tmp echo 'includedir='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${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 echo 'Libs:' >> "libsparsehash.pc".tmp echo 'Cflags: -I${includedir}' >> "libsparsehash.pc".tmp mv -f "libsparsehash.pc".tmp "libsparsehash.pc" /Applications/Xcode.app/Contents/Developer/usr/bin/make install-am test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib" test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2" /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt TODO doc/dense_hash_map.html doc/dense_hash_set.html doc/sparse_hash_map.html doc/sparse_hash_set.html doc/sparsetable.html doc/implementation.html doc/performance.html doc/index.html doc/designstyle.css '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google" /usr/bin/install -c -m 644 src/google/dense_hash_map src/google/dense_hash_set src/google/sparse_hash_map src/google/sparse_hash_set src/google/sparsetable src/google/template_util.h src/google/type_traits.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash" /usr/bin/install -c -m 644 src/google/sparsehash/densehashtable.h src/google/sparsehash/sparsehashtable.h src/google/sparsehash/hashtable-common.h src/google/sparsehash/libc_allocator_with_realloc.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" /usr/bin/install -c -m 644 src/sparsehash/internal/densehashtable.h src/sparsehash/internal/sparsehashtable.h src/sparsehash/internal/hashtable-common.h src/sparsehash/internal/libc_allocator_with_realloc.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" /usr/bin/install -c -m 644 src/sparsehash/internal/sparseconfig.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig" /usr/bin/install -c -m 644 libsparsehash.pc '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash" /usr/bin/install -c -m 644 src/sparsehash/dense_hash_map src/sparsehash/dense_hash_set src/sparsehash/sparse_hash_map src/sparsehash/sparse_hash_set src/sparsehash/sparsetable src/sparsehash/template_util.h src/sparsehash/type_traits.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash' running from /Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext checking for tr1/functional... *_\* extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/bbhoss/.rvm/rubies/ruby-2.1.2/bin/ruby /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:587:intry_cpp' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1067:in block in have_header' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:918:inblock in checking_for' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:351:in block (2 levels) in postpone' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:321:inopen' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:351:in block in postpone' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:321:inopen' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:347:in postpone' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:917:inchecking_for' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1066:in have_header' from extconf.rb:112:in

'

extconf failed, exit code 1

Gem files will remain installed in /Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8 for inspection. Results logged to /Users/bbhoss/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/google_hash-0.8.8/gem_make.out

— Reply to this email directly or view it on GitHub https://github.com/rdp/google_hash/issues/33#issuecomment-95255809.

rdp commented 9 years ago

OK I successfully built 0.8.8 on OS X 10.6 with this gcc, as well: gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) does it still fail for anybody? (ruby 2.1.1)

On Wed, Apr 22, 2015 at 11:12 AM, Roger Pack rogerdpack@gmail.com wrote:

here's my gcc, what's yours? :)

$ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix

On Wed, Apr 22, 2015 at 10:28 AM, Preston Marshall < notifications@github.com> wrote:

For some reason I'm still having issues. Do you have a gcc? If so, what version?

Building native extensions. This could take a while... ERROR: Error installing google_hash: ERROR: Failed to build gem native extension.

/Users/bbhoss/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb

building local copy/version of google sparse/dense hash library sh configure --prefix=/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed 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 for g++... no checking for c++... c++ 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 c++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of c++... gcc3 checking for gcc... no checking for cc... cc checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking dependency style of cc... gcc3 checking how to run the C preprocessor... cc -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... c++ -E checking google/malloc_extension.h usability... yes checking google/malloc_extension.h presence... yes checking for google/malloc_extension.h... yes checking build system type... x86_64-apple-darwin14.0.0 checking host system type... x86_64-apple-darwin14.0.0 checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... -D_THREAD_SAFE checking whether to check for GCC pthread/shared inconsistencies... no checking whether what we have so far is sufficient with -nostdlib... no checking whether -lpthread saves the day... no configure: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib checking whether the compiler implements namespaces... yes checking the location of hash_map... checking how to include hashfun directly... configure: creating ./config.status config.status: creating Makefile config.status: creating src/config.h config.status: executing depfiles commands [ -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 c++ -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 c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o template_util_unittest template_util_unittest.o c++ -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 src/type_traits_unittest.cc:296:28: warning: 'const' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traits_unittest.cc:297:28: warning: 'volatile' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~~~~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traits_unittest.cc:298:28: warning: 'const' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traits_unittest.cc:298:34: warning: 'volatile' qualifier on reference type 'RefFloat' (aka 'float &') has no effect [-Wignored-qualifiers] EXPECT_TRUE(is_reference::value); ^~~~~ ./src/testutil.h:51:9: note: expanded from macro 'EXPECT_TRUE' if (!(cond)) { \ ^ src/type_traitsunittest.cc:88:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:98:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:112:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ src/type_traitsunittest.cc:138:7: warning: private field 'n' is not used [-Wunused-private-field] int n_; ^ 8 warnings generated. mv -f .deps/type_traits_unittest.Tpo .deps/type_traits_unittest.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o type_traits_unittest type_traits_unittest.o c++ -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 c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o c++ -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 c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o sparsetable_unittest sparsetable_unittest.o c++ -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 In file included from src/hashtable_test.cc:63: ./src/hash_test_interface.h:436:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ ./src/hash_test_interface.h:543:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ ./src/hash_test_interface.h:659:50: warning: unused parameter 'k' [-Wunused-parameter] void set_empty_key(const typename p::key_type& k) { } ^ src/hashtable_test.cc:520:1: warning: unused variable 'HashtableCharStarTest_numtypes' [-Wunused-const-variable] TYPED_TEST_CASE_6(HashtableCharStarTest, CharStarHashtables); ^ ./src/testutil.h:106:20: note: expanded from macro 'TYPED_TEST_CASE_6' static const int classname##_numtypes = 6; \ ^

:94:1: note: expanded from here HashtableCharStarTest_numtypes ^ 4 warnings generated. mv -f .deps/hashtable_test.Tpo .deps/hashtable_test.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o hashtable_test hashtable_test.o c++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_test.o -MD -MP -MF .deps/simple_test.Tpo -c -o simple_test.o `test -f 'src/simple_test.cc' || echo './'`src/simple_test.cc mv -f .deps/simple_test.Tpo .deps/simple_test.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o simple_test simple_test.o c++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT simple_compat_test.o -MD -MP -MF .deps/simple_compat_test.Tpo -c -o simple_compat_test.o `test -f 'src/simple_compat_test.cc' || echo './'`src/simple_compat_test.cc mv -f .deps/simple_compat_test.Tpo .deps/simple_compat_test.Po c++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o simple_compat_test simple_compat_test.o c++ -DHAVE_CONFIG_H -I. -I./src -I./src -D_THREAD_SAFE -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT time_hash_map-time_hash_map.o -MD -MP -MF .deps/time_hash_map-time_hash_map.Tpo -c -o time_hash_map-time_hash_map.o `test -f 'src/time_hash_map.cc' || echo './'`src/time_hash_map.cc mv -f .deps/time_hash_map-time_hash_map.Tpo .deps/time_hash_map-time_hash_map.Po c++ -D_THREAD_SAFE -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -D_THREAD_SAFE -o time_hash_map time_hash_map-time_hash_map.o -ltcmalloc echo 'prefix=/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed' > "libsparsehash.pc".tmp echo 'exec_prefix='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${prefix}@'` >> "libsparsehash.pc".tmp echo 'libdir='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${exec_prefix}@'` >> "libsparsehash.pc".tmp echo 'includedir='`echo '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include' | sed 's@^/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed@${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 echo 'Libs:' >> "libsparsehash.pc".tmp echo 'Cflags: -I${includedir}' >> "libsparsehash.pc".tmp mv -f "libsparsehash.pc".tmp "libsparsehash.pc" /Applications/Xcode.app/Contents/Developer/usr/bin/make install-am test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib" test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2" /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt TODO doc/dense_hash_map.html doc/dense_hash_set.html doc/sparse_hash_map.html doc/sparse_hash_set.html doc/sparsetable.html doc/implementation.html doc/performance.html doc/index.html doc/designstyle.css '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/share/doc/sparsehash-2.0.2' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google" /usr/bin/install -c -m 644 src/google/dense_hash_map src/google/dense_hash_set src/google/sparse_hash_map src/google/sparse_hash_set src/google/sparsetable src/google/template_util.h src/google/type_traits.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash" /usr/bin/install -c -m 644 src/google/sparsehash/densehashtable.h src/google/sparsehash/sparsehashtable.h src/google/sparsehash/hashtable-common.h src/google/sparsehash/libc_allocator_with_realloc.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/google/sparsehash' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" /usr/bin/install -c -m 644 src/sparsehash/internal/densehashtable.h src/sparsehash/internal/sparsehashtable.h src/sparsehash/internal/hashtable-common.h src/sparsehash/internal/libc_allocator_with_realloc.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal" /usr/bin/install -c -m 644 src/sparsehash/internal/sparseconfig.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash/internal' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig" /usr/bin/install -c -m 644 libsparsehash.pc '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/lib/pkgconfig' test -z "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash" || ./install-sh -c -d "/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash" /usr/bin/install -c -m 644 src/sparsehash/dense_hash_map src/sparsehash/dense_hash_set src/sparsehash/sparse_hash_map src/sparsehash/sparse_hash_set src/sparsehash/sparsetable src/sparsehash/template_util.h src/sparsehash/type_traits.h '/Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext/local_installed/include/sparsehash' running from /Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8/ext checking for tr1/functional... *_\* extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/bbhoss/.rvm/rubies/ruby-2.1.2/bin/ruby /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:587:intry_cpp' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1067:in block in have_header' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:918:inblock in checking_for' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:351:in block (2 levels) in postpone' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:321:inopen' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:351:in block in postpone' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:321:inopen' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:347:in postpone' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:917:inchecking_for' from /Users/bbhoss/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1066:in have_header' from extconf.rb:112:in

'

extconf failed, exit code 1

Gem files will remain installed in /Users/bbhoss/.rvm/gems/ruby-2.1.2/gems/google_hash-0.8.8 for inspection. Results logged to /Users/bbhoss/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/google_hash-0.8.8/gem_make.out

— Reply to this email directly or view it on GitHub https://github.com/rdp/google_hash/issues/33#issuecomment-95255809.