{"action":"created","issue":{"url":"https://api.github.com/repos/tmm1/gdb.rb/issues/10","repository_url":"https://api.github.com/repos/tmm1/gdb.rb","labels_url":"https://api.github.com/repos/tmm1/gdb.rb/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/tmm1/gdb.rb/issues/10/comments","events_url":"https://api.github.com/repos/tmm1/gdb.rb/issues/10/events","html_url":"https://github.com/tmm1/gdb.rb/issues/10","id":28088369,"number":10,"title":"bundle install fails on Debian","user":{"login":"alexis779","id":210994,"avatar_url":"https://avatars2.githubusercontent.com/u/210994?v=4","gravatar_id":"","url":"https://api.github.com/users/alexis779","html_url":"https://github.com/alexis779","followers_url":"https://api.github.com/users/alexis779/followers","following_url":"https://api.github.com/users/alexis779/following{/other_user}","gists_url":"https://api.github.com/users/alexis779/gists{/gist_id}","starred_url":"https://api.github.com/users/alexis779/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexis779/subscriptions","organizations_url":"https://api.github.com/users/alexis779/orgs","repos_url":"https://api.github.com/users/alexis779/repos","events_url":"https://api.github.com/users/alexis779/events{/privacy}","received_events_url":"https://api.github.com/users/alexis779/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-02-22T03:34:57Z","updated_at":"2018-03-20T18:09:16Z","closed_at":null,"author_association":"NONE","body":"Trying to debug a memory leak in a Rails app, i could not get the gem installed.\n\nThis is my simple Gemfile:\n\n```\nsource 'https://rubygems.org'\ngem \"gdb.rb\"\n```\n\nI'm using Debian unstable on Macbook Pro.\n\n```\n$ uname -a\nLinux alexis-laptop 3.10-3-amd64 #1 SMP Debian 3.10.11-1 (2013-09-10) x86_64 GNU/Linux\n```\n\nI already have gdb-7.6.1-1 and python-2.7.5-5 installed.\nI installed libruby1.8-dbg libruby1.9.1-dbg python-dev ncurses-dev packages as recommended but that does not help much.\nThe gem build attempts to install and old version of gdb, version 7.2.\n\n```\n$ bundle install\nFetching gem metadata from https://rubygems.org/..\nResolving dependencies...\n\n\nGem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\n\n        /usr/bin/ruby1.9.1 extconf.rb \nchecking for python2.4/Python.h... no\nchecking for python2.5/Python.h... no\nchecking for python2.6/Python.h... no\nchecking for python2.7/Python.h... yes\nchecking for ncurses.h... yes\n(I'm about to compile gdb7.. this will definitely take a while)\n  -- tar jxvf gdb-7.2.tar.bz2\n  -- patch -p1 < ../../../../patches/gdb-leak.patch\n  -- patch -p1 < ../../../../patches/gdb-strings.patch\n  -- ./configure --prefix=/home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/dst/ --with-python=yes\n  -- make\nextconf.rb:6:in `sys': make failed, please report to gdb@tmm1.net with pastie.org link to /home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/mkmf.log and /home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/src/gdb-7.2/config.log (RuntimeError)\n        from extconf.rb:74:in `block (2 levels) in <main>'\n        from extconf.rb:72:in `chdir'\n        from extconf.rb:72:in `block in <main>'\n        from extconf.rb:52:in `chdir'\n        from extconf.rb:52:in `<main>'\n\n\nGem files will remain installed in /home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7 for inspection.\nResults logged to /home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/gem_make.out\nAn error occurred while installing gdb.rb (0.1.7), and Bundler cannot continue.\nMake sure that `gem install gdb.rb -v '0.1.7'` succeeds before bundling.\n```\n\nThis is the build error:\n\n```\n/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include  -DHAVE_bfd_elf64_x86_64_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_x86_64pei_vec -DHAVE_bfd_elf64_l1om_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec  -DBINDIR='\"/home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/dst/bin\"'  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfdio.lo -MD -MP -MF .deps/bfdio.Tpo -c -o bfdio.lo bfdio.c\nlibtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_bfd_elf64_x86_64_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_x86_64pei_vec -DHAVE_bfd_elf64_l1om_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\\\"/home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/dst/bin\\\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfdio.lo -MD -MP -MF .deps/bfdio.Tpo -c bfdio.c -o bfdio.o\nbfdio.c: In function ‘memory_bstat’:\nbfdio.c:580:30: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]\n   memset (statbuf, 0, sizeof (statbuf));\n                              ^\ncc1: all warnings being treated as errors\nmake[4]: *** [bfdio.lo] Error 1\nmake[4]: Leaving directory `/home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/src/gdb-7.2/bfd'\nmake[3]: *** [all-recursive] Error 1\nmake[3]: Leaving directory `/home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/src/gdb-7.2/bfd'\nmake[2]: *** [all] Error 2\nmake[2]: Leaving directory `/home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/src/gdb-7.2/bfd'\nmake[1]: *** [all-bfd] Error 2\nmake[1]: Leaving directory `/home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/src/gdb-7.2'\nmake: *** [all] Error 2\n```\n\nHere are the 2 attached files:\n- /home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/mkmf.log is available at\n  https://www.dropbox.com/s/0yrjto73076m9w0/mkmf.log\n- /home/alexis2/.bundler/tmp/24979/gems/gdb.rb-0.1.7/ext/src/gdb-7.2/config.log is available at\n  http://pastebin.ca/2645145\n\nLet me know if I can provide more info about my config to help troubleshooting the build ...\n"},"comment":{"url":"https://api.github.com/repos/tmm1/gdb.rb/issues/comments/374700867","html_url":"https://github.com/tmm1/gdb.rb/issues/10#issuecomment-374700867","issue_url":"https://api.github.com/repos/tmm1/gdb.rb/issues/10","id":374700867,"user":{"login":"mirelon","id":1101497,"avatar_url":"https://avatars0.githubusercontent.com/u/1101497?v=4","gravatar_id":"","url":"https://api.github.com/users/mirelon","html_url":"https://github.com/mirelon","followers_url":"https://api.github.com/users/mirelon/followers","following_url":"https://api.github.com/users/mirelon/following{/other_user}","gists_url":"https://api.github.com/users/mirelon/gists{/gist_id}","starred_url":"https://api.github.com/users/mirelon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirelon/subscriptions","organizations_url":"https://api.github.com/users/mirelon/orgs","repos_url":"https://api.github.com/users/mirelon/repos","events_url":"https://api.github.com/users/mirelon/events{/privacy}","received_events_url":"https://api.github.com/users/mirelon/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T18:09:16Z","updated_at":"2018-03-20T18:09:16Z","author_association":"NONE","body":"Exactly the same issue, CentOS 7"}}
{"actor":{"display_login":"mirelon"}}