ruby-debug / debase

BSD 2-Clause "Simplified" License
209 stars 32 forks source link

can't compile with 2.1.5 ruby in OS X #17

Closed turbod closed 9 years ago

turbod commented 9 years ago

Hi, I can't compile debase gem. This is the log:

cat /Users/username/.rvm/gems/ruby-2.1.5/extensions/x86_64-darwin-14/2.1.0-static/debase-0.1.0/gem_make.out
/Users/norbi/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20141201-2519-da10ov.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling breakpoint.c
compiling context.c
compiling debase_internals.c
In file included from /Users/norbi/.rvm/gems/ruby-2.1.5/gems/debase-ruby_core_source-0.7.2/lib/debase/ruby_core_source/ruby-2.1.5-p273/method.h:14,
                 from /Users/norbi/.rvm/gems/ruby-2.1.5/gems/debase-ruby_core_source-0.7.2/lib/debase/ruby_core_source/ruby-2.1.5-p273/vm_core.h:24,
                 from ./hacks.h:1,
                 from debase_internals.c:2:
/Users/norbi/.rvm/gems/ruby-2.1.5/gems/debase-ruby_core_source-0.7.2/lib/debase/ruby_core_source/ruby-2.1.5-p273/internal.h:209: error: expected ';', ',' or ')' before 'x'
make: *** [debase_internals.o] Error 1

make failed, exit code 2
os97673 commented 9 years ago

the same as #12 Unfortunately the problem is not reproducible on my Mac :( If someone knows the cause please share it and I will try to address the problem.

guikubivan commented 9 years ago

Can you leave one of these tickets open so other people can see it? (btw, I'm updating xcode now, maybe it will help)

os97673 commented 9 years ago

Sure, I can.

guikubivan commented 9 years ago

I'm not sure if this is related, but I was getting this:

$ gem install debase -v '0.1.0'
Building native extensions.  This could take a while...
ERROR:  Error installing debase:
    ERROR: Failed to build gem native extension.

    /Users/pablo/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20141202-3073-1iwi49o.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-2.1.5-p273 provided with debase-ruby_core_source gem.
*******************************
$ gem install debase -v '0.1.0'
Building native extensions.  This could take a while...
ERROR:  Error installing debase:
    ERROR: Failed to build gem native extension.

    /Users/pablo/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20141202-3073-1iwi49o.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-2.1.5-p273 provided with debase-ruby_core_source gem.
*******************************

I was able to fix it by first running

rvm fetch 2.1.5
os97673 commented 9 years ago

@guikubivan nope, the problem you see is different: debase-ruby_core_source installed in the gemset doesn't have sources for 2.1.5. It can be fixed by either fetching ruby sources or updating the gem.

os97673 commented 9 years ago

it may be fixed with #18, let me know if it is not

turbod commented 9 years ago

It's works. Thx.