-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cannot build for RubyInstaller version of Ruby #162
Comments
Thanks for posting the issue @NuriYuri!
In the meantime, I should mention this in the readme so that’s more clear. LMK how it goes! |
Ok, thanks for the info :) I tried with:
And got:
Also tried (just in case)
And got:
Note: I did remove the other package before installing the other one. |
Hi, I tried to build several crates depending on bindgen (such as libsqlite3-sys or rust-sdl2) and they all succeed. The only one that fails is rb-sys, for some reason inside bindgen it's getting confused about I tried to check what's wrong with rb-sys but so far no clues putting aside it doesn't have a build.rs file next to its Cargo.toml file. |
Bindgen can be used from the command line as well as a library, I have a script here: https://gist.github.com/matsadler/2c563f170e07fd802872086f6f45d65b that is roughly equivalent to what rb-sys does (at least as far as invoking bindgen). Maybe giving that a try would help track down if it's a bindgen + Ruby problem or an rb-sys problem? |
@goyox86 said he could boot up his i686 box to take a look as well |
Thanks for your reply. I installed bindgen this way: cargo install bindgen-cli --target i686-pc-windows-gnu The sh scripts printed this:
And generated the following file: https://gist.github.com/NuriYuri/54e933215d1a7b8e517273be54f03363 I'm not sure what to do with that but I guess it's a little progress ^^ |
I could solve the build issue after digging around. It looks like the build script are not good at handling different target than the one you got from installing Rust. I did install mingw-w64-i686-rust and it fixed the issue (using: I guess for every different build tool chain you need the specific rust install for it. |
Hello,
I've seen that rb-sys is going to be integrated with Rutie (which should probably improve Rutie a bit), regarless I have a little issue with rb-sys on my end (and also the end of all people that depends on the work of my community). I cannot build for
i686-pc-windows-gnu
.This requirement comes from two factor:
Here's the log I got for attempting to build (I ran the
ridk enable
command which works for rake-compile or building current version of rutie or any rust lib using rutie ^^):From what I get it's trying to build with clang, which isn't the right tool because it might not be able to link with the symbol of Ruby since it was built using gcc (two different gcc version aren't even compatible between them so I don't really imagine what would happen when trying to link gcc stuff using clang).
The text was updated successfully, but these errors were encountered: