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
cross build error for NetBSD/arm #5860
Comments
Show us the error messages. |
|
I don't know if this is correct, but how about replacing the library by calling MRuby::CrossBuild.new("netbsd") do |conf|
conf.toolchain "gcc"
conf.gem core: "mruby-bin-mirb" do |spec|
spec.linker.libraries = %w(edit termcap)
end
conf.gembox "default"
end
mruby/mrbgems/mruby-bin-mirb/mrbgem.rake Lines 21 to 24 in 1bec339
Some improvement is needed, but I have no ideas. |
This replacing workaround is fine on my environment. |
Same problem on this case. https://qiita.com/yamori813/items/5153efb2ec0a23bfa7fb I think good that is RUBY_PLATFORM set "NetBSD" at build_config. And use is value in mrbgem.rake. But RUBY_PLATFORM is confuse host and target now. |
Probably, we need to distinguish host and target during the build (and use target info instead of RUBY_PLATFORM). |
The How about introducing methods for "feature check" (such as Example?: # mygem/mrbgem.rake
MRuby::Gem::Specification.new("mygem") do |spec|
....
spec.before_compile do
case
when spec.have_library "edit"
....
when spec.have_library "readline"
....
else
....
end
end
end |
I use conf.gembox 'default' on cross build on FreeBSD/amd64 for NetBSD/arm.
I have error no libreadline and no libncurses.
I seem cause of mrbgems/mruby-bin-mirb/mrbgem.rake.
I want use libedit.
Also NetBSD 9.99 libedit need libtermcap.
If you have advice, please let me know.
Thanks
The text was updated successfully, but these errors were encountered: