Skip to content

Instantly share code, notes, and snippets.

@vnazarenko
Created August 12, 2016 19:35
Show Gist options
  • Save vnazarenko/fcea922a853700b54625af2714e0897f to your computer and use it in GitHub Desktop.
Save vnazarenko/fcea922a853700b54625af2714e0897f to your computer and use it in GitHub Desktop.
google_hash build error
Building native extensions. This could take a while...
ERROR: Error installing google_hash:
ERROR: Failed to build gem native extension.
current directory: /Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext
/Users/viktornazarenko/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160812-49325-j28qsy.rb extconf.rb
building local copy/version of google sparse/dense hash library
sh configure --prefix=/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/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: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
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
In file included from src/sparsetable_unittest.cc:47:
In file included from ./src/sparsehash/sparsetable:246:
./src/sparsehash/internal/hashtable-common.h:167:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
./src/sparsehash/internal/hashtable-common.h:180:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
2 warnings generated.
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>:103:1: note: expanded from here
HashtableCharStarTest_numtypes
^
In file included from src/hashtable_test.cc:62:
In file included from ./src/sparsehash/sparsetable:246:
./src/sparsehash/internal/hashtable-common.h:167:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
./src/sparsehash/internal/hashtable-common.h:180:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
src/hashtable_test.cc:590:47: warning: unused typedef 'cf' [-Wunused-local-typedef]
typedef typename TypeParam::const_reference cf;
^
src/hashtable_test.cc:589:41: warning: unused typedef 'r' [-Wunused-local-typedef]
typedef typename TypeParam::reference r;
^
8 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
In file included from src/simple_test.cc:40:
In file included from ./src/sparsehash/sparse_hash_set:97:
In file included from ./src/sparsehash/internal/sparsehashtable.h:105:
./src/sparsehash/internal/hashtable-common.h:167:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
./src/sparsehash/internal/hashtable-common.h:180:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
2 warnings generated.
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
In file included from src/simple_compat_test.cc:40:
In file included from ./src/google/sparse_hash_set:34:
In file included from ./src/sparsehash/sparse_hash_set:97:
In file included from ./src/sparsehash/internal/sparsehashtable.h:105:
./src/sparsehash/internal/hashtable-common.h:167:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
./src/sparsehash/internal/hashtable-common.h:180:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
2 warnings generated.
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
In file included from src/time_hash_map.cc:86:
In file included from ./src/sparsehash/dense_hash_map:104:
In file included from ./src/sparsehash/internal/densehashtable.h:100:
./src/sparsehash/internal/hashtable-common.h:167:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
./src/sparsehash/internal/hashtable-common.h:180:29: warning: unused typedef 'serializing_int_requires_an_unsigned_type' [-Wunused-local-typedef]
serializing_int_requires_an_unsigned_type);
^
2 warnings generated.
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=/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed' > "libsparsehash.pc".tmp
echo 'exec_prefix='`echo '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed' | sed 's@^/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed@${prefix}@'` >> "libsparsehash.pc".tmp
echo 'libdir='`echo '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/lib' | sed 's@^/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed@${exec_prefix}@'` >> "libsparsehash.pc".tmp
echo 'includedir='`echo '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include' | sed 's@^/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/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 "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/lib" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/lib"
test -z "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/share/doc/sparsehash-2.0.2" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/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 '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/share/doc/sparsehash-2.0.2'
test -z "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/google" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/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 '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/google'
test -z "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/google/sparsehash" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/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 '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/google/sparsehash'
test -z "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/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 '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/sparsehash/internal'
test -z "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/sparsehash/internal" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/sparsehash/internal"
/usr/bin/install -c -m 644 src/sparsehash/internal/sparseconfig.h '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/sparsehash/internal'
test -z "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/lib/pkgconfig" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/lib/pkgconfig"
/usr/bin/install -c -m 644 libsparsehash.pc '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/lib/pkgconfig'
test -z "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/sparsehash" || ./install-sh -c -d "/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/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 '/Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext/local_installed/include/sparsehash'
running from /Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext
checking for tr1/functional... no
checking for functional... yes
checking for tr1/functional... no
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/viktornazarenko/.rvm/gems/ruby-2.3.0/extensions/x86_64-darwin-15/2.3.0/google_hash-0.9.0/mkmf.log
current directory: /Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext
make "DESTDIR=" clean
current directory: /Volumes/Storage/.rvm/gems/ruby-2.3.0/gems/google_hash-0.9.0/ext
make "DESTDIR="
compiling dense_double_to_double.cpp
In file included from dense_double_to_double.cpp:4:
In file included from /Users/viktornazarenko/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby.h:33:
In file included from /Users/viktornazarenko/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby/ruby.h:29:
In file included from /Users/viktornazarenko/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby/defines.h:68:
/Users/viktornazarenko/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby/missing.h:256:5: error: use of undeclared identifier 'memset_s'
memset_s(b, len, 0, len);
^
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 and 1 error generated.
make: *** [dense_double_to_double.o] Error 1
make failed, exit code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment