Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Can't build on ruby-head #4

Closed
meh opened this Issue · 4 comments

2 participants

@meh
% gem install blockenspiel                                                        
Building native extensions.  This could take a while...
ERROR:  Error installing blockenspiel:
        ERROR: Failed to build gem native extension.

        /usr/bin/ruby-svn extconf.rb
creating Makefile

make
compiling unmixer_mri.c
unmixer_mri.c: In function ‘remove_nested_module’:
unmixer_mri.c:62:7: error: dereferencing pointer to incomplete type
unmixer_mri.c:62:40: error: dereferencing pointer to incomplete type
unmixer_mri.c:63:9: error: dereferencing pointer to incomplete type
unmixer_mri.c:63:47: error: dereferencing pointer to incomplete type
unmixer_mri.c:64:28: error: dereferencing pointer to incomplete type
unmixer_mri.c:64:49: error: dereferencing pointer to incomplete type
unmixer_mri.c:66:5: error: dereferencing pointer to incomplete type
unmixer_mri.c:66:27: error: dereferencing pointer to incomplete type
unmixer_mri.c: In function ‘do_unmix’:
unmixer_mri.c:74:19: error: dereferencing pointer to incomplete type
unmixer_mri.c:76:11: error: dereferencing pointer to incomplete type
unmixer_mri.c:76:35: error: dereferencing pointer to incomplete type
unmixer_mri.c:79:7: error: dereferencing pointer to incomplete type
unmixer_mri.c:79:29: error: dereferencing pointer to incomplete type
make: *** [unmixer_mri.o] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/svn/gems/blockenspiel-0.4.1 for inspection.
Results logged to /usr/lib/ruby/gems/svn/gems/blockenspiel-0.4.1/ext/blockenspiel/gem_make.out

Any idea of what's the problem?

@dazuma
Owner

Thanks for the heads-up on this. It looks like they've made some changes on ruby-head that broke blockenspiel. (Specifically, they made the rb_classext structure opaque, which broke the RCLASS_SUPER macro.) I'm going to have to go ask on ruby-core what's going on.

@dazuma
Owner

Bug filed on redmine: http://redmine.ruby-lang.org/issues/4803

We'll have to see what they say about it. The breakage seems to have been intentional, and it may be that they are trying to stop precisely the unmixing functionality that blockenspiel is implementing. (The mixology gem is also broken on ruby-head for the same reason.)

@dazuma
Owner

Okay, it looks like they've put in a compatibility shim for 1.9.3, but are calling it deprecated. I'll have to make a small modification to blockenspiel to properly utilize it. Will do that shortly and release a new blockenspiel version when I have the chance. I'll leave this issue open until then.

Long term, they're probably going to remove this functionality altogether, so the days of unmixing may be numbered. Probably a good thing in general, since unmixing is a semantically ill-defined and unstable operation unless done in a highly restricted and controlled manner. But... it means reverting to more conventional mechanisms of doing DSLs. I'm going to have to revisit this issue eventually, definitely before considering any kind of 1.0 release for blockenspiel.

@dazuma
Owner

Released version 0.4.3. Closing.

@dazuma dazuma closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.