Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Installing Byebug w/ Ruby 2.1.5 64bits & DevKit 64bits, Win7 64 #119

Closed
amalbuquerque opened this issue Feb 11, 2015 · 8 comments
Closed

Comments

@amalbuquerque
Copy link

I've followed the installation instructions, on a Win7 64 Pro machine:

  • Installed Ruby with: rubyinstaller-2.1.5-x64.exe
  • Installed the DevKit with: DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe

I was able to install the json gem with gem install json --platform=ruby:

>gem list

*** LOCAL GEMS ***

bigdecimal (1.2.4)
columnize (0.9.0)
debugger-linecache (1.2.0)
ethon (0.7.2)
ffi (1.9.6 x64-mingw32)
io-console (0.4.2)
json (1.8.2, 1.8.1)
minitest (4.7.5)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
slop (3.6.0)
test-unit (2.1.5.0)
typhoeus (0.7.1)

My Ruby environment:

>gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 2.2.2
  - RUBY VERSION: 2.1.5 (2014-11-13 patchlevel 273) [x64-mingw32]
  - INSTALLATION DIRECTORY: C:/dados/programas/Ruby21-x64/lib/ruby/gems/2.1.0
  - RUBY EXECUTABLE: C:/dados/programas/Ruby21-x64/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/dados/programas/Ruby21-x64/bin
  - SPEC CACHE DIRECTORY: C:/Users/pgu112/.gem/specs
  - RUBYGEMS PLATFORMS:
    - ruby
    - x64-mingw32
  - GEM PATHS:
     - C:/dados/programas/Ruby21-x64/lib/ruby/gems/2.1.0
     - C:/Users/pgu112/.gem/ruby/2.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://rubygems.org"]
  - REMOTE SOURCES:
     - http://rubygems.org
  - SHELL PATH:
     - C:\dados\programas\Ruby21-x64\bin
     - C:\dados\programas\Vim\vim74
     - C:\dados\programas\Python27\
     - C:\dados\programas\Python27\Scripts
     - C:\windows\system32
     - C:\windows
     - C:\dados\programas\curl-7.40.0-devel-mingw64\bin
     - C:\dados\programas\DevKit-mingw64-64-4.7.2-20130224-1432\mingw\bin

When I'm trying to install byebug with gem install byebug, I get the following error:

>gem install byebug
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing byebug:
    ERROR: Failed to build gem native extension.

    C:/dados/programas/Ruby21-x64/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
generating byebug-x64-mingw32.def
compiling breakpoint.c
In file included from c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby.h:33:0,
                 from ./byebug.h:4,
                 from breakpoint.c:1:
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:109:14: error: size of array 'ruby_check_sizeof_voidp' is negative
In file included from c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby.h:33:0,
                 from ./byebug.h:4,
                 from breakpoint.c:1:
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_wb_unprotect':
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1234:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1235:6: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1238:2: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_written':
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1253:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_num2char_inline':
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1324:35: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1324:35: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1324:35: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1325:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1325:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1325:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_class_of':
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1642:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_type':
c:/dados/programas/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:1659:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'eval_expression':
breakpoint.c:21:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:21:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:21:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_enabled':
breakpoint.c:35:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_set_enabled':
breakpoint.c:50:5: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_expr':
breakpoint.c:66:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_set_expr':
breakpoint.c:82:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_hit_condition':
breakpoint.c:99:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_set_hit_condition':
breakpoint.c:130:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_hit_count':
breakpoint.c:155:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_hit_value':
breakpoint.c:171:5: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_set_hit_value':
breakpoint.c:187:5: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_id':
breakpoint.c:203:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_pos':
breakpoint.c:219:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_source':
breakpoint.c:237:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'brkpt_initialize':
breakpoint.c:261:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'filename_cmp_impl':
breakpoint.c:288:11: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:288:11: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:288:11: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:292:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:292:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:292:16: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'check_breakpoint_by_hit_condition':
breakpoint.c:340:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'check_breakpoint_by_pos':
breakpoint.c:380:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'check_breakpoint_by_method':
breakpoint.c:399:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'check_breakpoint_by_expr':
breakpoint.c:422:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'find_breakpoint_by_pos':
breakpoint.c:445:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:445:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:445:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:447:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:447:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:447:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c: In function 'find_breakpoint_by_method':
breakpoint.c:467:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:467:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
breakpoint.c:467:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
cc1.exe: all warnings being treated as errors
make: *** [breakpoint.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/dados/programas/Ruby21-x64/lib/ruby/gems/2.1.0/gems/byebug-3.5.1 for inspection.
Results logged to C:/dados/programas/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/byebug-3.5.1/gem_make.out

I've double-checked and I'm pretty sure I have the correct versions of Ruby and the DevKit.

TIA

@amalbuquerque
Copy link
Author

I've removed the DevKit and forced the installation of the DevKit with --force on both steps, and I was finally able to install it.

@deivid-rodriguez
Copy link
Owner

Happy you got that sorted out! :)

@g3aristi
Copy link

g3aristi commented Apr 3, 2015

Wait I'm having the same problem but what do you mean by removed DevKit??? like uninstall it??

@deivid-rodriguez
Copy link
Owner

@lejboua I think he means uninstall, yes. @g3aristi?

@zahidzia
Copy link

reinstalling Dev Kit didn't help for me... I think the problem is somewhere else

@amalbuquerque
Copy link
Author

Yup, I've uninstalled it and forced its installation afterwards.

On Thu, Jul 16, 2015, 00:42 zahidzia notifications@github.com wrote:

reinstalling Dev Kit didn't help for me... I think the problem is
somewhere else


Reply to this email directly or view it on GitHub
#119 (comment)
.

@ogwurujohnson
Copy link

how do I, uninstall the DevKit and force install it again, please help with the command

@APohio
Copy link

APohio commented Aug 2, 2016

I misread lejboua's comment and just used --force on the init and install commands without uninstalling and it works a charm now. Hope this helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants