Skip to content

Instantly share code, notes, and snippets.

@kavu
Created July 31, 2010 09:52
Show Gist options
  • Save kavu/501999 to your computer and use it in GitHub Desktop.
Save kavu/501999 to your computer and use it in GitHub Desktop.
Building native extensions. This could take a while...
ERROR: Error installing memprof:
ERROR: Failed to build gem native extension.
/home/kavu/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby extconf.rb
checking for main() in -lyajl_ext... yes
checking for json/json_gen.h... yes
checking for gelf_getshdr() in -lelf_ext... yes
checking for main() in -ldwarf_ext... yes
checking for mach-o/dyld.h... no
creating Makefile
make
gcc -I. -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I. -I/home/kavu/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/i686-linux -I. -DHAVE_JSON_JSON_GEN_H -DHAVE_ELF -DHAVE_DWARF -D_ARCH_i686_ -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -o x86_gen.o -c x86_gen.c
gcc -I. -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I. -I/home/kavu/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/i686-linux -I. -DHAVE_JSON_JSON_GEN_H -DHAVE_ELF -DHAVE_DWARF -D_ARCH_i686_ -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -o util.o -c util.c
gcc -I. -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I. -I/home/kavu/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/i686-linux -I. -DHAVE_JSON_JSON_GEN_H -DHAVE_ELF -DHAVE_DWARF -D_ARCH_i686_ -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -o json.o -c json.c
gcc -I. -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I/home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/dst/include -I. -I/home/kavu/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/i686-linux -I. -DHAVE_JSON_JSON_GEN_H -DHAVE_ELF -DHAVE_DWARF -D_ARCH_i686_ -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -o elf.o -c elf.c
elf.c: In function 'do_bin_allocate_page':
elf.c:287:101: error: 'MAP_32BIT' undeclared (first use in this function)
elf.c:287:101: note: each undeclared identifier is reported only once for each function it appears in
elf.c: In function 'find_plt_addr':
elf.c:370:16: warning: cast to pointer from integer of different size
elf.c: In function 'dissect_elf':
elf.c:1128:28: warning: cast to pointer from integer of different size
elf.c: In function 'bin_init':
elf.c:1218:3: error: duplicate case value
elf.c:1218:3: error: previously used here
elf.c:1219:3: error: duplicate case value
elf.c:1219:3: error: previously used here
make: *** [elf.o] Error 1
Gem files will remain installed in /home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5 for inspection.
Results logged to /home/kavu/.rvm/gems/ree-1.8.7-2010.02/gems/memprof-0.3.5/ext/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment