From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7D99FE00D24; Wed, 3 Apr 2019 07:26:27 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_00,DOS_OUTLOOK_TO_MX, HTML_MESSAGE,KHOP_DYNAMIC,RDNS_DYNAMIC autolearn=no version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.0 RDNS_DYNAMIC Delivered to internal network by host with * dynamic-looking rDNS * 1.4 KHOP_DYNAMIC Relay looks like a dynamic address * 2.8 DOS_OUTLOOK_TO_MX Delivered direct to MX with Outlook headers X-Greylist: delayed 587 seconds by postgrey-1.32 at yocto-www; Wed, 03 Apr 2019 07:26:25 PDT Received: from mailS.toulouse.viveris.com (162.206.70.37.rev.sfr.net [37.70.206.162]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B6621E00D1E for ; Wed, 3 Apr 2019 07:26:25 -0700 (PDT) From: =?iso-8859-1?Q?Cl=E9ment_Cherbeix?= To: Date: Wed, 3 Apr 2019 16:16:29 +0200 Message-ID: <000501d4ea27$d512a4e0$7f37eea0$@viveris.fr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdTqJ3rYM0AXivuHRiWSGZSejW2oJQ== X-Mailman-Approved-At: Mon, 08 Apr 2019 09:30:29 -0700 Subject: problem with ruby X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2019 14:26:27 -0000 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01D4EA38.989C1120" Content-Language: fr ------=_NextPart_000_0006_01D4EA38.989C1120 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, I=92m 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/t= emp /run.do_compile.567:1 exit 1 from 'LANG=3D"en_US.UTF-8" = LC_ALL=3D"en_US.UTF-8" gem build $gem' =20 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 ? =20 Here is my build environment : BB_VERSION =3D "1.40.0" BUILD_SYS =3D "x86_64-linux" NATIVELSBSTRING =3D "universal" TARGET_SYS =3D "x86_64-poky-linux" DISTRO =3D "poky" DISTRO_VERSION =3D "2.6.1" TUNE_FEATURES =3D "m64 corei7" =20 Thanks in advance ! =20 Cl=E9ment C. ------=_NextPart_000_0006_01D4EA38.989C1120 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

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/t= emp/run.do_compile.567:1 exit 1 from 'LANG=3D"en_US.UTF-8" = LC_ALL=3D"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 buildin= g ruby via gem in yocto ?
=

 

Here is my build environment = :

BB_VERSION       =     =3D "1.40.0"

BUILD_SYS        &nb= sp;   =3D "x86_64-linux"

NATIVELSBSTRING      =3D = "universal"

TARGET_SYS        &n= bsp;  =3D "x86_64-poky-linux"

DISTRO         =       =3D = "poky"

DISTRO_VERSION       =3D = "2.6.1"

TUNE_FEATURES        =3D = "m64 corei7"

 

Thanks in advance !

 

Cl=E9ment = C.

------=_NextPart_000_0006_01D4EA38.989C1120-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 50A46E00A54; Mon, 8 Apr 2019 11:04:31 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [209.85.160.171 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (raj.khem[at]gmail.com) * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 558B2E0097C for ; Mon, 8 Apr 2019 11:04:29 -0700 (PDT) Received: by mail-qt1-f171.google.com with SMTP id w5so16521764qtb.11 for ; Mon, 08 Apr 2019 11:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7tScza4kmc/z41k8Avqj7EapjL9N5Y1PgvC1V6FSYlU=; b=OM4a/LZePC/uUoyBq5F0mljYCUx4yVD89k4HmHLtduLXmt8tZZt/Dt8OPDrLTVVfJO AFwrUByL5V45QcZV8zjEjLu/KWgQ8O0HvZTVfkFeCTdpJkwdmGMtyMwA/jOefCCqJRTg AgQ/82sLncg4+/7qn0ywC599OLXu171OiNZ9xLXlR3XHEloJi7xSfIoG9MBmSAUe4x/l XzEMjas/KBJ5Mt+CpUSmxQTdF8VZpNERe2sRui06sS77jRoC5uU1OP4TFw0Sbj7W0+X3 z4n8Cg6bDFVvkraIszeeHc3XcioXV02b0QS2IGKdaXJ4dvuDNojAODOHO1misF0eHy8j 9BcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7tScza4kmc/z41k8Avqj7EapjL9N5Y1PgvC1V6FSYlU=; b=s5nupRdugyntcEL554uPFce1moKaC1bPXV8ULR0R+8YQzJRWlidmaEU2bdrGTZRs0Q R8IkRmSiP1srxwDpwEd84bZuNNHmS5ScvkAOL+gB96mDCL1TLBi0FhVrPYkcpenSMBie 25XwE7vOzYgTMEjWqLqjH5P3I8ndpOAUtsbM6Iq8jPwN2/KcbDMGooPMOVfBAefYpByH htXTpida6b5Lggw3JhjlZhaGhQlo8scD0seX4dddDG5f7o7Fv281OgEIollPuzBC2Rhs o4ELXPHIJt481hgetsrPakWPwzWeCDKJGNgUhgbWpbpPK179/lyb/jyPaOVGiCeCBN87 UgYA== X-Gm-Message-State: APjAAAUyrgB9edy5drLIfOxahEBHdr6bDRkEp9Y4kkxOdbiMxxaPFdc5 ipf9ES3ue5F6W7/QaBDxNfjcWekQK/8H5eAhgLQ= X-Google-Smtp-Source: APXvYqzwI/zYVHuuykC/RCCGqxXRPYTcCsBg3SuUo07ud+MDpwFNqdmzNCXZN3PgtlUPF8M7kvKiQd5RUiuH6k6TUWE= X-Received: by 2002:ac8:f86:: with SMTP id b6mr25715380qtk.330.1554746668307; Mon, 08 Apr 2019 11:04:28 -0700 (PDT) MIME-Version: 1.0 References: <000501d4ea27$d512a4e0$7f37eea0$@viveris.fr> In-Reply-To: <000501d4ea27$d512a4e0$7f37eea0$@viveris.fr> From: Khem Raj Date: Mon, 8 Apr 2019 11:04:02 -0700 Message-ID: To: =?UTF-8?Q?Cl=C3=A9ment_Cherbeix?= Cc: Yocto Project Subject: Re: problem with ruby X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Apr 2019 18:04:31 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 8, 2019 at 9:44 AM Cl=C3=A9ment Cherbeix wrote: > > Hello all, > > I=E2=80=99m 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 compil= e : > > 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=3D"en_US.UTF-8" LC_ALL= =3D"en_US.UTF-8" gem build $gem' > > > > I have tried to build the gem in an environment outside of Yocto and it w= as 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 =3D "1.40.0" > > BUILD_SYS =3D "x86_64-linux" > > NATIVELSBSTRING =3D "universal" > > TARGET_SYS =3D "x86_64-poky-linux" > > DISTRO =3D "poky" > > DISTRO_VERSION =3D "2.6.1" > > TUNE_FEATURES =3D "m64 corei7" > > > > Thanks in advance ! > > > > Cl=C3=A9ment C. > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id DAE5EE00C1E; Tue, 9 Apr 2019 11:23:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (raj.khem[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [209.85.160.171 listed in list.dnswl.org] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2DA0CE00AD5 for ; Tue, 9 Apr 2019 11:23:15 -0700 (PDT) Received: by mail-qt1-f171.google.com with SMTP id w5so20952022qtb.11 for ; Tue, 09 Apr 2019 11:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=s/JOJjtBPkVkhb5jJdCnEzhwS/mVShOddF8fV1ccXlo=; b=s8n6M7oZU84SNCO3SP32Y9d6PBHeG+H+cgtf8qJ6etbOlMsykQVYGwERJ660LW7TmN 0F7qQWfmlPE691JojlT4elaEiUJAPaf4iLx4KsEEQdq94LymGFZnofGzRzwg+R7ppmmv 221t0LnGI557zA/Nf/ovEhKYyx6IbwDPhlMYpP/u7o0wPfFaVIO1Ul4AeJ6dDLyxoDHo sshbozAt2IflVUVtPV77vsX53U7F/0GP0V2IUet85blUi6O/j+si7LKyr5CWOGpvFzde ZcAqr16UFgS/6uYmrRA3sf2hSNqRC4U4db1nqzTCfkGhHXk+R/4p6P+MZVnNao7wVlLu KvKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=s/JOJjtBPkVkhb5jJdCnEzhwS/mVShOddF8fV1ccXlo=; b=bS3jXwPVuhnte8/ZFqecFAh+LS+WLE8V3G5dAonepLWC0Ggb/L1QjsOGjTEfMIY1Od 0RqcKyeUEWBkN3vRiGg4/z8ZlaKp/LH05/KuG7+DEOjgmRftVLDHjKlEU0M78AakWQBQ KzevknN3NqFtSpdUosVCTilSON3QHNn96FsmHwMqAuvdXQEibNHACC+xMJDAyqxukl2H XHt13Ppi1cau9Gvp/KuGBMHCSWn/hQ54CHulb0p6V3ozMCIOO8HqiVH1q9IH2S56sXmv 2JLM/buNC4HPz1UF+0sZIcE73D43Rzno9+wK1JTc/ynGB2rNbDbfKVJnKvKyH03woytH yZ+A== X-Gm-Message-State: APjAAAW446zl+CPuFKBCua1wDenTTe/iEHWuB5xsQHzwwY/r3AZL0wB7 CvU57YPHwz4BgQFcSOsEeh689lBLPCcIcpzvqKc= X-Google-Smtp-Source: APXvYqyFp/ASr2Tr7c3/E+nW+Xcfkr9XfzZ1jfu74dyLU50oCbykuyrk25SaZqjfs15QpNNJngEUopWgewHX3BRGWGg= X-Received: by 2002:a0c:8027:: with SMTP id 36mr30397770qva.87.1554834194244; Tue, 09 Apr 2019 11:23:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Khem Raj Date: Tue, 9 Apr 2019 11:22:47 -0700 Message-ID: To: Clement CHERBEIX Cc: Yocto Project Subject: Re: problem with ruby X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2019 18:23:15 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable probably it has to be added to linker flags explicitly. On Tue, Apr 9, 2019 at 12:00 AM Clement CHERBEIX wrote: > > It's done but I keep the same problem, I've add zlib in the PACKAGECONFIG= too without any result... > > > > ________________________________ > De : Khem Raj > Envoy=C3=A9 : lundi 8 avril 2019 20:04 > =C3=80 : Clement CHERBEIX > Cc : Yocto Project > Objet : Re: [yocto] problem with ruby > > On Mon, Apr 8, 2019 at 9:44 AM Cl=C3=A9ment Cherbeix > wrote: > > > > Hello all, > > > > I=E2=80=99m trying to add the MIB mechanics in my yocto project, for th= at I use dadi (ruby depenedent) but I get an error when bitbake try to comp= ile : > > > > 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=3D"en_US.UTF-8" LC_AL= L=3D"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 =3D "1.40.0" > > > > BUILD_SYS =3D "x86_64-linux" > > > > NATIVELSBSTRING =3D "universal" > > > > TARGET_SYS =3D "x86_64-poky-linux" > > > > DISTRO =3D "poky" > > > > DISTRO_VERSION =3D "2.6.1" > > > > TUNE_FEATURES =3D "m64 corei7" > > > > > > > > Thanks in advance ! > > > > > > > > Cl=C3=A9ment C. > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9641AE00AD5; Tue, 9 Apr 2019 16:33:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [40.107.5.135 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid X-Greylist: delayed 28792 seconds by postgrey-1.32 at yocto-www; Tue, 09 Apr 2019 16:33:50 PDT Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50135.outbound.protection.outlook.com [40.107.5.135]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ACF3DE00A54 for ; Tue, 9 Apr 2019 16:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=viverislicensing.onmicrosoft.com; s=selector1-viveris-fr; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sBL5nIh9/QKSa4LNblTeKTaa7oWczTiuPBSC7Mx+2OM=; b=HtAqpGYZ5HMOsdsvZKKmZgIc7CkyJa5nwlkWVTaUlQNSrc6+byQMpVz97q6CeRnWyCfkysZAGQvMe2dHBSnkNCQvTrvwdoB0MZRR4toOFMk+ma8LzkT/AKeBJV7+Y0GBiFAFfohMUNbsS4aQRP73J/b2MpUK7bfsB6LEQWI8AS4= Received: from DB7PR09MB2348.eurprd09.prod.outlook.com (20.176.239.13) by DB7PR09MB2394.eurprd09.prod.outlook.com (20.176.239.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Tue, 9 Apr 2019 07:00:43 +0000 Received: from DB7PR09MB2348.eurprd09.prod.outlook.com ([fe80::e143:3be1:1fc1:3e65]) by DB7PR09MB2348.eurprd09.prod.outlook.com ([fe80::e143:3be1:1fc1:3e65%3]) with mapi id 15.20.1792.009; Tue, 9 Apr 2019 07:00:43 +0000 From: Clement CHERBEIX To: Khem Raj Thread-Topic: [yocto] problem with ruby Thread-Index: AQHU7qHzPDWqDFAK/0CogxfsVrA2+Q== Date: Tue, 9 Apr 2019 07:00:43 +0000 Message-ID: Accept-Language: fr-FR, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Clement.CHERBEIX@viveris.fr; x-originating-ip: [37.70.206.162] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4fae55ae-66dc-4bc1-0964-08d6bcb915bb x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:DB7PR09MB2394; x-ms-traffictypediagnostic: DB7PR09MB2394: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 000227DA0C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(39850400004)(136003)(346002)(396003)(366004)(199004)(51874003)(53754006)(174874002)(189003)(71200400001)(71190400001)(1015004)(229853002)(486006)(7736002)(476003)(2906002)(102836004)(6436002)(14444005)(256004)(8936002)(6506007)(53546011)(25786009)(74482002)(68736007)(186003)(26005)(33656002)(97736004)(74316002)(7696005)(81166006)(81156014)(8676002)(99286004)(86362001)(966005)(52536014)(5660300002)(478600001)(14454004)(72206003)(236005)(6246003)(316002)(6116002)(53936002)(3846002)(4326008)(66066001)(66574012)(105586002)(606006)(6916009)(6606003)(9686003)(6306002)(54896002)(106356001)(55016002)(19627405001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB7PR09MB2394; H:DB7PR09MB2348.eurprd09.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: viveris.fr does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: N0dRY0o9ROx6MgU0ERGVOMVrI+bq+w7Aro+CoGJ7JacfihWxxZE4/zMh3TLoTeO3iFSoGqGc109VDzeqUM+YmSg2DOt1x4g7DYpRoNLyGtPxop/3Dr6fVFWzEv3achcKS7ELuDrcA6CHzX37y5DNSYnU8AnyUc9A99nJAj/UZzEF6NJ+Dl3NhJldD2xNKezkLKe4mSkFJyxcY30a0/UV2Ycc3VWMq47Q/P/niQ1XAZ4n9EFO67eI/lMFhfKEbBFY9JgZXYbfLg5FWBRrbR1k9LkJ3UNyKHNzPUYSTxSLLtXIT7DvZMHPnf+2iR1golI33OAtKzBbk6YX45Uv2IypvHFWDY4dbhOEnAfmAVK6UIHvN1jSbdfmrMcuI5TqTN4eeue0hT5FAYA3YYqbL0bC86PVw96XZ4OgGDVePcNRKZw= MIME-Version: 1.0 X-OriginatorOrg: viveris.fr X-MS-Exchange-CrossTenant-Network-Message-Id: 4fae55ae-66dc-4bc1-0964-08d6bcb915bb X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2019 07:00:43.6963 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 34bab81c-945c-43f1-ad13-592b97e11b40 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR09MB2394 X-Mailman-Approved-At: Thu, 11 Apr 2019 15:05:32 -0700 Cc: Yocto Project Subject: Re: problem with ruby X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2019 23:33:52 -0000 Content-Language: fr-FR Content-Type: multipart/alternative; boundary="_000_DB7PR09MB234844C4AC1070ECD87699FEF82D0DB7PR09MB2348eurp_" --_000_DB7PR09MB234844C4AC1070ECD87699FEF82D0DB7PR09MB2348eurp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable It's done but I keep the same problem, I've add zlib in the PACKAGECONFIG t= oo without any result... ________________________________ De : Khem Raj Envoy=E9 : lundi 8 avril 2019 20:04 =C0 : Clement CHERBEIX Cc : Yocto Project Objet : Re: [yocto] problem with ruby On Mon, Apr 8, 2019 at 9:44 AM Cl=E9ment Cherbeix wrote: > > Hello all, > > I=92m 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=3D"en_US.UTF-8" LC_ALL= =3D"en_US.UTF-8" gem build $gem' > > > > I have tried to build the gem in an environment outside of Yocto and it w= as 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 =3D "1.40.0" > > BUILD_SYS =3D "x86_64-linux" > > NATIVELSBSTRING =3D "universal" > > TARGET_SYS =3D "x86_64-poky-linux" > > DISTRO =3D "poky" > > DISTRO_VERSION =3D "2.6.1" > > TUNE_FEATURES =3D "m64 corei7" > > > > Thanks in advance ! > > > > Cl=E9ment C. > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto --_000_DB7PR09MB234844C4AC1070ECD87699FEF82D0DB7PR09MB2348eurp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

It's done but I keep the same pro= blem, I've add zlib in the PACKAGECONFIG too without any result...




De : Khem Raj <raj.khem@= gmail.com>
Envoy=E9 : lundi 8 avril 2019 20:04
=C0 : Clement CHERBEIX
Cc : Yocto Project
Objet : Re: [yocto] problem with ruby
 
On Mon, Apr 8, 2019 at 9:44 AM Cl=E9ment Cherbeix<= br> <clement.cherbeix@viveris.fr> wrote:
>
> Hello all,
>
> I=92m 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-nativ= e/2.8.0-r0/temp/run.do_compile.567:1 exit 1 from 'LANG=3D"en_US.UTF-8&= quot; LC_ALL=3D"en_US.UTF-8" gem build $gem'
>
>
>
> I have tried to build the gem in an environment outside of Yocto and i= t 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          = =3D "1.40.0"
>
> BUILD_SYS          &= nbsp; =3D "x86_64-linux"
>
> NATIVELSBSTRING      =3D "universal"= ;
>
> TARGET_SYS          = =3D "x86_64-poky-linux"
>
> DISTRO          &nbs= p;    =3D "poky"
>
> DISTRO_VERSION       =3D "2.6.1&quo= t;
>
> TUNE_FEATURES        =3D "m64 = corei7"
>
>
>
> Thanks in advance !
>
>
>
> Cl=E9ment C.
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--_000_DB7PR09MB234844C4AC1070ECD87699FEF82D0DB7PR09MB2348eurp_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 13C07E00B5C; Wed, 10 Apr 2019 12:40:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [40.107.15.90 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid X-Greylist: delayed 97570 seconds by postgrey-1.32 at yocto-www; Wed, 10 Apr 2019 12:39:48 PDT Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150090.outbound.protection.outlook.com [40.107.15.90]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 81325E00950 for ; Wed, 10 Apr 2019 12:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=viverislicensing.onmicrosoft.com; s=selector1-viveris-fr; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nbX7L1iad0o6p6YI/wWtanH8nbrzy/C0cOsikphcLqY=; b=KLpF9j+k8E6Ca8Y9tKxDLm4CSxYuVIkFGuCFx/4WF5Q3lFLPY6uFVIk2nYJ64AfDltMsiSL0dvNOwz00aMZMW/tirov7GvpK8+3YuPuZC/kuEhF4w1ONXT457e2wH7v6ZishDLvl40NhKkzZbzPHNxQ9Nhu8/MDJN3zPfAEuDAA= Received: from DB7PR09MB2348.eurprd09.prod.outlook.com (20.176.239.13) by DB7PR09MB2635.eurprd09.prod.outlook.com (20.177.121.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.15; Wed, 10 Apr 2019 14:05:55 +0000 Received: from DB7PR09MB2348.eurprd09.prod.outlook.com ([fe80::e143:3be1:1fc1:3e65]) by DB7PR09MB2348.eurprd09.prod.outlook.com ([fe80::e143:3be1:1fc1:3e65%3]) with mapi id 15.20.1792.009; Wed, 10 Apr 2019 14:05:55 +0000 From: Clement CHERBEIX To: Khem Raj Thread-Topic: [yocto] problem with ruby Thread-Index: AQHU7qHzPDWqDFAK/0CogxfsVrA2+aY0JTKAgAFJtI0= Date: Wed, 10 Apr 2019 14:05:55 +0000 Message-ID: References: , In-Reply-To: Accept-Language: fr-FR, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Clement.CHERBEIX@viveris.fr; x-originating-ip: [37.70.206.162] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e58e7a90-bfe0-45be-9859-08d6bdbda652 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:DB7PR09MB2635; x-ms-traffictypediagnostic: DB7PR09MB2635: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 00032065B2 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(396003)(366004)(346002)(376002)(39840400004)(53754006)(189003)(199004)(51874003)(174874002)(71200400001)(74316002)(6606003)(52536014)(9686003)(74482002)(229853002)(14454004)(54896002)(6306002)(6916009)(6436002)(86362001)(5660300002)(66066001)(72206003)(99286004)(316002)(19627405001)(7696005)(55016002)(71190400001)(76176011)(966005)(81166006)(53546011)(8676002)(478600001)(6506007)(7736002)(81156014)(66574012)(256004)(26005)(8936002)(102836004)(3846002)(236005)(486006)(476003)(14444005)(6116002)(186003)(11346002)(68736007)(606006)(446003)(25786009)(53936002)(33656002)(105586002)(6246003)(97736004)(4326008)(2906002)(106356001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB7PR09MB2635; H:DB7PR09MB2348.eurprd09.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: viveris.fr does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 0c79UvEDlvqRw2bw5NwIGLuvn4PKA4kCoUIZHSDbShPV729Hi9Agqh5xgkmwUhuHwJy3loEDLWY1lzUvvH83HitQsPK9SHdDn+xYqZGmmSrEzIi9fyATxIxVDqXZgYQeBhwg3DtEOte8VPiknOfOazUvxbAsEH9mwme5jnKWcHIoA8Dz312zvpwN4APCnRRJeSgetKjwzkkD+fX/yN/aT+Q4dFvk+Fxx7hculj7e/cx608dF2xi8VyuMFnls7vOJ3fGYY4Q48awS/A1AG91wkOoEPrN7HatoEMoAb1T1mSHHO54VhGiU7OuwjuLMtWylq1uigqC0xL/Ns980iLC7t9In86Zr/7WOzFS8+mX+nZZoyniUIif+VXFYB5tXkcHLnA5FuGoqT1J5p1NBfEPfQr36vBr8vjs1gaTOlWW7FqQ= MIME-Version: 1.0 X-OriginatorOrg: viveris.fr X-MS-Exchange-CrossTenant-Network-Message-Id: e58e7a90-bfe0-45be-9859-08d6bdbda652 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 14:05:55.4271 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 34bab81c-945c-43f1-ad13-592b97e11b40 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR09MB2635 X-Mailman-Approved-At: Thu, 11 Apr 2019 15:05:32 -0700 Cc: Yocto Project Subject: Re: problem with ruby X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2019 19:40:04 -0000 Content-Language: fr-FR Content-Type: multipart/alternative; boundary="_000_DB7PR09MB234833B9392FFF7E1F7DBB03F82E0DB7PR09MB2348eurp_" --_000_DB7PR09MB234833B9392FFF7E1F7DBB03F82E0DB7PR09MB2348eurp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable 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 s= o it can't be use. When i try to use it with a simple ruby program i can't find zlib in the en= vironment of the devshell. ________________________________ De : Khem Raj Envoy=E9 : mardi 9 avril 2019 20:22:47 =C0 : 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 wrote: > > It's done but I keep the same problem, I've add zlib in the PACKAGECONFIG= too without any result... > > > > ________________________________ > De : Khem Raj > Envoy=E9 : lundi 8 avril 2019 20:04 > =C0 : Clement CHERBEIX > Cc : Yocto Project > Objet : Re: [yocto] problem with ruby > > On Mon, Apr 8, 2019 at 9:44 AM Cl=E9ment Cherbeix > wrote: > > > > Hello all, > > > > I=92m trying to add the MIB mechanics in my yocto project, for that I u= se 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=3D"en_US.UTF-8" LC_AL= L=3D"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 =3D "1.40.0" > > > > BUILD_SYS =3D "x86_64-linux" > > > > NATIVELSBSTRING =3D "universal" > > > > TARGET_SYS =3D "x86_64-poky-linux" > > > > DISTRO =3D "poky" > > > > DISTRO_VERSION =3D "2.6.1" > > > > TUNE_FEATURES =3D "m64 corei7" > > > > > > > > Thanks in advance ! > > > > > > > > Cl=E9ment C. > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto --_000_DB7PR09MB234833B9392FFF7E1F7DBB03F82E0DB7PR09MB2348eurp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

I've try that and doesn't change = anything...
I think the problem is from the gem zlib who is not build / take by Yo= cto 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=E9 : mardi 9 avril 2019 20:22:47
=C0 : Clement CHERBEIX
Cc : Yocto Project
Objet : Re: [yocto] problem with ruby
 
probably it has to be added to linker flags explic= itly.

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 PACKAGECON= FIG too without any result...
>
>
>
> ________________________________
> De : Khem Raj <raj.khem@gmail.com>
> Envoy=E9 : lundi 8 avril 2019 20:04
> =C0 : Clement CHERBEIX
> Cc : Yocto Project
> Objet : Re: [yocto] problem with ruby
>
> On Mon, Apr 8, 2019 at 9:44 AM Cl=E9ment Cherbeix
> <clement.cherbeix@viveris.fr> wrote:
> >
> > Hello all,
> >
> > I=92m trying to add the MIB mechanics in my yocto project, for th= at I use dadi (ruby depenedent) but I get an error when bitbake try to comp= ile :
> >
> > 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=3D"en_US.U= TF-8" LC_ALL=3D"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         &= nbsp; =3D "1.40.0"
> >
> > BUILD_SYS         &n= bsp;  =3D "x86_64-linux"
> >
> > NATIVELSBSTRING      =3D "universal= "
> >
> > TARGET_SYS         &= nbsp; =3D "x86_64-poky-linux"
> >
> > DISTRO          = ;     =3D "poky"
> >
> > DISTRO_VERSION       =3D "2.6.= 1"
> >
> > TUNE_FEATURES        =3D "= ;m64 corei7"
> >
> >
> >
> > Thanks in advance !
> >
> >
> >
> > Cl=E9ment C.
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https:/= /lists.yoctoproject.org/listinfo/yocto
--_000_DB7PR09MB234833B9392FFF7E1F7DBB03F82E0DB7PR09MB2348eurp_--