Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Build fails with: could not determine kind of name for C.mrb_ary_len #72

Open
cromega opened this issue Feb 6, 2019 · 7 comments
Open

Comments

@cromega
Copy link

cromega commented Feb 6, 2019

Hi,

Building the library fails as follows:

go-mruby git:(master) go build
# github.com/mitchellh/go-mruby
./array.go:15:13: could not determine kind of name for C.mrb_ary_len

A commit to MRuby from 2017 (67e2dddb8254fbf4a4eb81c1241ec1963bc77627) seems to have introduced the following change:

    Remove `mrb_ary_len` function. Use `RARRAY_LEN` instead.

Wondering why it hasn't caused problems for anyone else. Am I doing something stupid?

Go: 1.11.5
Mruby: 2.0.0

@cromega
Copy link
Author

cromega commented Feb 6, 2019

I actually came up with a pretty simple workaround for this issue, sadly there are other errors so I couldn't run the tests yet.

Is it a case of the code not being compatible with more recent versions of mruby and it's probably not going to work?

@erikh
Copy link
Collaborator

erikh commented Feb 6, 2019 via email

@erikh
Copy link
Collaborator

erikh commented Feb 6, 2019 via email

@erikh
Copy link
Collaborator

erikh commented Feb 7, 2019

see #66 for more information.

@wade-welles
Copy link

Still getting this for the last 6 months

@erikh
Copy link
Collaborator

erikh commented Mar 26, 2019 via email

@wade-welles
Copy link

wade-welles commented Mar 27, 2019

I apologize if I struck a nerve, I should have clarified my situation more.

I have tried in that in the past without success unfortunately. I will build a new VM and try again. Id be happy to rewrite it, I'm juggling a few things so any pointers or notes you have that could help me get started quicker would be appreciated.

I was considering implementing a lexer and parser and finishing off GoRuby so the community has something, but obviously that's not the most ideal route since it is implementing it without a VM. The quickest solution seems obviously to carry on the embedding.

I have even begun experimenting with different ways of embedding the binary so that it will directly use the executable (i.e. /usr/bin/mruby or just ruby).

But obviously without the bindings its limited use as a scripting language, which I believe is what most of us are here for.

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

No branches or pull requests

3 participants