* problem with ruby
@ 2019-04-03 14:16 Clément Cherbeix
2019-04-08 18:04 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Clément Cherbeix @ 2019-04-03 14:16 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]
Hello all,
Im trying to add the MIB mechanics in my yocto project, for that I use dadi
(ruby depenedent) but I get an error when bitbake try to compile :
DEBUG: Executing shell function do_compile
ERROR: Loading command: build (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
WARNING:
/home/modem/tkh/build/tmp/work/x86_64-linux/libxml-ruby-native/2.8.0-r0/temp
/run.do_compile.567:1 exit 1 from 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"
gem build $gem'
I have tried to build the gem in an environment outside of Yocto and it was
correct but when I try to do it in Yocto, I get my error.
Did someone have an idea on what to do ?
what is the recommended way of building ruby via gem in yocto ?
Here is my build environment :
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-poky-linux"
DISTRO = "poky"
DISTRO_VERSION = "2.6.1"
TUNE_FEATURES = "m64 corei7"
Thanks in advance !
Clément C.
[-- Attachment #2: Type: text/html, Size: 4727 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with ruby
2019-04-03 14:16 problem with ruby Clément Cherbeix
@ 2019-04-08 18:04 ` Khem Raj
0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2019-04-08 18:04 UTC (permalink / raw)
To: Clément Cherbeix; +Cc: Yocto Project
On Mon, Apr 8, 2019 at 9:44 AM Clément Cherbeix
<clement.cherbeix@viveris.fr> wrote:
>
> Hello all,
>
> I’m trying to add the MIB mechanics in my yocto project, for that I use dadi (ruby depenedent) but I get an error when bitbake try to compile :
>
> DEBUG: Executing shell function do_compile
>
> ERROR: Loading command: build (LoadError)
>
> cannot load such file -- zlib
>
> ERROR: While executing gem ... (NoMethodError)
>
> undefined method `invoke_with_build_args' for nil:NilClass
>
> WARNING: /home/modem/tkh/build/tmp/work/x86_64-linux/libxml-ruby-native/2.8.0-r0/temp/run.do_compile.567:1 exit 1 from 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" gem build $gem'
>
>
>
> I have tried to build the gem in an environment outside of Yocto and it was correct but when I try to do it in Yocto, I get my error.
> Did someone have an idea on what to do ?
> what is the recommended way of building ruby via gem in yocto ?
>
>
It seems that it is using ruby-native but does not have zlib-native
and it cant find this library. Can you add zlib to DEPENDS in ruby
recipe and see if that helps.
>
> Here is my build environment :
>
> BB_VERSION = "1.40.0"
>
> BUILD_SYS = "x86_64-linux"
>
> NATIVELSBSTRING = "universal"
>
> TARGET_SYS = "x86_64-poky-linux"
>
> DISTRO = "poky"
>
> DISTRO_VERSION = "2.6.1"
>
> TUNE_FEATURES = "m64 corei7"
>
>
>
> Thanks in advance !
>
>
>
> Clément C.
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with ruby
2019-04-09 18:22 ` Khem Raj
@ 2019-04-10 14:05 ` Clement CHERBEIX
0 siblings, 0 replies; 5+ messages in thread
From: Clement CHERBEIX @ 2019-04-10 14:05 UTC (permalink / raw)
To: Khem Raj; +Cc: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 2700 bytes --]
I've try that and doesn't change anything...
I think the problem is from the gem zlib who is not build / take by Yocto so it can't be use.
When i try to use it with a simple ruby program i can't find zlib in the environment of the devshell.
________________________________
De : Khem Raj <raj.khem@gmail.com>
Envoyé : mardi 9 avril 2019 20:22:47
À : Clement CHERBEIX
Cc : Yocto Project
Objet : Re: [yocto] problem with ruby
probably it has to be added to linker flags explicitly.
On Tue, Apr 9, 2019 at 12:00 AM Clement CHERBEIX
<Clement.CHERBEIX@viveris.fr> wrote:
>
> It's done but I keep the same problem, I've add zlib in the PACKAGECONFIG too without any result...
>
>
>
> ________________________________
> De : Khem Raj <raj.khem@gmail.com>
> Envoyé : lundi 8 avril 2019 20:04
> À : Clement CHERBEIX
> Cc : Yocto Project
> Objet : Re: [yocto] problem with ruby
>
> On Mon, Apr 8, 2019 at 9:44 AM Clément Cherbeix
> <clement.cherbeix@viveris.fr> wrote:
> >
> > Hello all,
> >
> > I’m trying to add the MIB mechanics in my yocto project, for that I use dadi (ruby depenedent) but I get an error when bitbake try to compile :
> >
> > DEBUG: Executing shell function do_compile
> >
> > ERROR: Loading command: build (LoadError)
> >
> > cannot load such file -- zlib
> >
> > ERROR: While executing gem ... (NoMethodError)
> >
> > undefined method `invoke_with_build_args' for nil:NilClass
> >
> > WARNING: /home/modem/tkh/build/tmp/work/x86_64-linux/libxml-ruby-native/2.8.0-r0/temp/run.do_compile.567:1 exit 1 from 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" gem build $gem'
> >
> >
> >
> > I have tried to build the gem in an environment outside of Yocto and it was correct but when I try to do it in Yocto, I get my error.
> > Did someone have an idea on what to do ?
> > what is the recommended way of building ruby via gem in yocto ?
> >
> >
>
> It seems that it is using ruby-native but does not have zlib-native
> and it cant find this library. Can you add zlib to DEPENDS in ruby
> recipe and see if that helps.
>
> >
> > Here is my build environment :
> >
> > BB_VERSION = "1.40.0"
> >
> > BUILD_SYS = "x86_64-linux"
> >
> > NATIVELSBSTRING = "universal"
> >
> > TARGET_SYS = "x86_64-poky-linux"
> >
> > DISTRO = "poky"
> >
> > DISTRO_VERSION = "2.6.1"
> >
> > TUNE_FEATURES = "m64 corei7"
> >
> >
> >
> > Thanks in advance !
> >
> >
> >
> > Clément C.
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
[-- Attachment #2: Type: text/html, Size: 4762 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with ruby
2019-04-09 7:00 Clement CHERBEIX
@ 2019-04-09 18:22 ` Khem Raj
2019-04-10 14:05 ` Clement CHERBEIX
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2019-04-09 18:22 UTC (permalink / raw)
To: Clement CHERBEIX; +Cc: Yocto Project
probably it has to be added to linker flags explicitly.
On Tue, Apr 9, 2019 at 12:00 AM Clement CHERBEIX
<Clement.CHERBEIX@viveris.fr> wrote:
>
> It's done but I keep the same problem, I've add zlib in the PACKAGECONFIG too without any result...
>
>
>
> ________________________________
> De : Khem Raj <raj.khem@gmail.com>
> Envoyé : lundi 8 avril 2019 20:04
> À : Clement CHERBEIX
> Cc : Yocto Project
> Objet : Re: [yocto] problem with ruby
>
> On Mon, Apr 8, 2019 at 9:44 AM Clément Cherbeix
> <clement.cherbeix@viveris.fr> wrote:
> >
> > Hello all,
> >
> > I’m trying to add the MIB mechanics in my yocto project, for that I use dadi (ruby depenedent) but I get an error when bitbake try to compile :
> >
> > DEBUG: Executing shell function do_compile
> >
> > ERROR: Loading command: build (LoadError)
> >
> > cannot load such file -- zlib
> >
> > ERROR: While executing gem ... (NoMethodError)
> >
> > undefined method `invoke_with_build_args' for nil:NilClass
> >
> > WARNING: /home/modem/tkh/build/tmp/work/x86_64-linux/libxml-ruby-native/2.8.0-r0/temp/run.do_compile.567:1 exit 1 from 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" gem build $gem'
> >
> >
> >
> > I have tried to build the gem in an environment outside of Yocto and it was correct but when I try to do it in Yocto, I get my error.
> > Did someone have an idea on what to do ?
> > what is the recommended way of building ruby via gem in yocto ?
> >
> >
>
> It seems that it is using ruby-native but does not have zlib-native
> and it cant find this library. Can you add zlib to DEPENDS in ruby
> recipe and see if that helps.
>
> >
> > Here is my build environment :
> >
> > BB_VERSION = "1.40.0"
> >
> > BUILD_SYS = "x86_64-linux"
> >
> > NATIVELSBSTRING = "universal"
> >
> > TARGET_SYS = "x86_64-poky-linux"
> >
> > DISTRO = "poky"
> >
> > DISTRO_VERSION = "2.6.1"
> >
> > TUNE_FEATURES = "m64 corei7"
> >
> >
> >
> > Thanks in advance !
> >
> >
> >
> > Clément C.
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with ruby
@ 2019-04-09 7:00 Clement CHERBEIX
2019-04-09 18:22 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Clement CHERBEIX @ 2019-04-09 7:00 UTC (permalink / raw)
To: Khem Raj; +Cc: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]
It's done but I keep the same problem, I've add zlib in the PACKAGECONFIG too without any result...
________________________________
De : Khem Raj <raj.khem@gmail.com>
Envoyé : lundi 8 avril 2019 20:04
À : Clement CHERBEIX
Cc : Yocto Project
Objet : Re: [yocto] problem with ruby
On Mon, Apr 8, 2019 at 9:44 AM Clément Cherbeix
<clement.cherbeix@viveris.fr> wrote:
>
> Hello all,
>
> I’m trying to add the MIB mechanics in my yocto project, for that I use dadi (ruby depenedent) but I get an error when bitbake try to compile :
>
> DEBUG: Executing shell function do_compile
>
> ERROR: Loading command: build (LoadError)
>
> cannot load such file -- zlib
>
> ERROR: While executing gem ... (NoMethodError)
>
> undefined method `invoke_with_build_args' for nil:NilClass
>
> WARNING: /home/modem/tkh/build/tmp/work/x86_64-linux/libxml-ruby-native/2.8.0-r0/temp/run.do_compile.567:1 exit 1 from 'LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" gem build $gem'
>
>
>
> I have tried to build the gem in an environment outside of Yocto and it was correct but when I try to do it in Yocto, I get my error.
> Did someone have an idea on what to do ?
> what is the recommended way of building ruby via gem in yocto ?
>
>
It seems that it is using ruby-native but does not have zlib-native
and it cant find this library. Can you add zlib to DEPENDS in ruby
recipe and see if that helps.
>
> Here is my build environment :
>
> BB_VERSION = "1.40.0"
>
> BUILD_SYS = "x86_64-linux"
>
> NATIVELSBSTRING = "universal"
>
> TARGET_SYS = "x86_64-poky-linux"
>
> DISTRO = "poky"
>
> DISTRO_VERSION = "2.6.1"
>
> TUNE_FEATURES = "m64 corei7"
>
>
>
> Thanks in advance !
>
>
>
> Clément C.
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
[-- Attachment #2: Type: text/html, Size: 4000 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-10 19:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03 14:16 problem with ruby Clément Cherbeix
2019-04-08 18:04 ` Khem Raj
2019-04-09 7:00 Clement CHERBEIX
2019-04-09 18:22 ` Khem Raj
2019-04-10 14:05 ` Clement CHERBEIX
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.