From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8139BE007DA; Tue, 28 Jun 2016 07:48: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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (raj.khem[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.171 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 16918E0077E for ; Tue, 28 Jun 2016 07:48:29 -0700 (PDT) Received: by mail-qk0-f171.google.com with SMTP id t127so33258912qkf.1 for ; Tue, 28 Jun 2016 07:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=aOkvQA0iRkwQBzel7dVh7VXrSojAUprgD7OX3rUv7io=; b=HeaJ5GmDCEMYswyBf+l4MMrLJgWVqC3ANi6andy2CtzdTFk3ITBWZNR4cqnXLeLAy9 A/Qe456/+aaD4pPxWOssaGF0kVT1hVYin5hhAgwWS6rKnRvFg+gV1UfTs19qTwNNcjmE 9/YiGY5LLmhLjW7uwC/ofn1TdfOeinikoGKhYMwK+PyXByqiVth9KoUx47qU/+ofAnqz r6adu86OTit+ev25igOgkxda3vZgr+Z0NtUT20tyCdbYSgqHd/DPeWX2Zt7GXmtBCkCs M/rR9sP/adC3h3LZVnL5XopFr5FjvRRz+dI3IlLg4BgZOOqdUGWelS2/vaVRKpJlsxEP iBqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=aOkvQA0iRkwQBzel7dVh7VXrSojAUprgD7OX3rUv7io=; b=GabFjsc8EzC42LUFogzUSViX68vctOPkM00FaRFVPkRJvziI2QVaBjDMz1Oc7LLF2H mgNzrUgyT/L+imiIVi5QmIKuNZfOhOHoCAQGh6Km+iPOJmpYeVRc57eIGQ6fQHoa61uk sBi9/n22ZIC83+ikrZHFInT074iIHfGU2V7cN+09i0gwH/6rrt9qw3tkopqWu0ndvzjb sBlpTObWnTakerhwEUR8lzRfnHF5oIt80jgcRCE5D6yF+okMTS+TgvNSBI0rF+2COtP6 GAq6oMaibPSHT8LBFxJfqLZMqY7+TUKjWYpzF/PrDC6chCSaaz8kAMxYxXVHDCaNzUeM sCEQ== X-Gm-Message-State: ALyK8tIIH6vJ8bkUmfEGfHbMUz8jlOEb/qu5ze3QbFL5elHOKhDzTjM6tvjFqxxiVcpyt//9OTOKez1j/kZFyw== MIME-Version: 1.0 X-Received: by 10.55.141.134 with SMTP id p128mr2401054qkd.102.1467125309094; Tue, 28 Jun 2016 07:48:29 -0700 (PDT) Received: by 10.55.214.83 with HTTP; Tue, 28 Jun 2016 07:48:28 -0700 (PDT) Received: by 10.55.214.83 with HTTP; Tue, 28 Jun 2016 07:48:28 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Jun 2016 07:48:28 -0700 Message-ID: From: Khem Raj To: Zhenhua Luo Cc: yocto@yoctoproject.org Subject: Re: Failed to cross compile kernel with Yocto toolchain 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, 28 Jun 2016 14:48:31 -0000 Content-Type: multipart/alternative; boundary=94eb2c081fe4e3c202053657ba64 --94eb2c081fe4e3c202053657ba64 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable /usr/lib64/ccache is unusual why do you have it in path and if you really need it add it after all other paths. Check your env first On Jun 27, 2016 10:56 PM, "Zhenhua Luo" wrote: Hello Khem, > -----Original Message----- > From: Khem Raj [mailto:raj.khem@gmail.com] > Sent: Tuesday, June 28, 2016 12:36 AM > To: Zhenhua Luo > Cc: yocto@yoctoproject.org > Subject: Re: [yocto] Failed to cross compile kernel with Yocto toolchain > > On Mon, Jun 27, 2016 at 1:16 AM, Zhenhua Luo > wrote: > > Hello all, > > > > > > > > I generate the Yocto toolchain by =E2=80=9Cbitbake meta-toolchain=E2=80= =9D, and use > > this toolchain to cross-compile kernel, I met the following error. Is > > this a bug or I missed something? My host Linux is Fedora 22. > > its better to start using bitbake -cpopulate_sdk to generate > SDKs. > > > > > > > > > > $ source /opt/poky/2.1+snapshot/environment-setup-ppce500mc-poky- > linux > > > > $ cd linux/ > > > > $ make corenet32_smp_defconfig > > > > HOSTCC scripts/kconfig/conf.o > > > > ccache: error: Could not find compiler "gcc" in PATH > > did you see if gcc is in your path after sourcing SDK env script? [Luo Zhenhua-B19537] gcc can't be found after sourcing the SDK env script. but the /usr/bin is in the PATH env variable. $ source /opt/poky/2.1+snapshot/environment-setup-ppce500mc-poky-linux $ echo $PATH /opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin:/opt/poky/2.1+= snapshot/sysroots/x86_64-pokysdk-linux/usr/sbin:/opt/poky/2.1+snapshot/sysr= oots/x86_64-pokysdk-linux/bin:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysd= k-linux/sbin:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/.= ./x86_64-pokysdk-linux/bin:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-l= inux/usr/bin/powerpc-poky-linux:/opt/poky/2.1+snapshot/sysroots/x86_64-poky= sdk-linux/usr/bin/powerpc-poky-linux-uclibc:/opt/poky/2.1+snapshot/sysroots= /x86_64-pokysdk-linux/usr/bin/powerpc-poky-linux-musl:/usr/lib64/qt-3.3/bin= :/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/= bjsimics/.local/bin:/home/bjsimics/bin $ echo $CCACHE_PATH /opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin:/opt/poky/2.1+= snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/../x86_64-pokysdk-linux/bin:= /opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/powerpc-poky-l= inux:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/powerpc-p= oky-linux-uclibc:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/b= in/powerpc-poky-linux-musl: $ which gcc /usr/lib64/ccache/gcc $ gcc -v ccache: error: Could not find compiler "gcc" in PATH Best Regards, Zhenhua > > scripts/Makefile.host:108: recipe for target 'scripts/kconfig/conf.o' > > failed > > > > make[1]: *** [scripts/kconfig/conf.o] Error 1 > > > > Makefile:541: recipe for target 'corenet32_smp_defconfig' failed > > > > make: *** [corenet32_smp_defconfig] Error 2 > > > > > > > > > > > > Best Regards, > > > > > > > > Zhenhua > > > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > --94eb2c081fe4e3c202053657ba64 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

/usr/lib64/ccache is unusual why do you have it in path and = if you really need it add it after all other paths. Check your env first


On Jun 27, 2016 1= 0:56 PM, "Zhenhua Luo" <zhenhua.luo@nxp.com> wrote:
Hello Khem,

> -----Original Message-----
> From: Khem Raj [mailto:raj.khem@= gmail.com]
> Sent: Tuesday, June 28, 2016 12:36 AM
> To: Zhenhua Luo <zhenhua.luo= @nxp.com>
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Failed to cross compile kernel with Yocto toolcha= in
>
> On Mon, Jun 27, 2016 at 1:16 AM, Zhenhua Luo <
zhenhua.luo@nxp.com>
> wrote:
> > Hello all,
> >
> >
> >
> > I generate the Yocto toolchain by =E2=80=9Cbitbake meta-toolchain= =E2=80=9D, and use
> > this toolchain to cross-compile kernel, I met the following error= . Is
> > this a bug or I missed something? My host Linux is Fedora 22.
>
> its better to start using bitbake -cpopulate_sdk <image name> to= generate
> SDKs.
>
>
> >
> >
> >
> > $ source /opt/poky/2.1+snapshot/environment-setup-ppce500mc-poky-=
> linux
> >
> > $ cd linux/
> >
> > $ make corenet32_smp_defconfig
> >
> >=C2=A0 =C2=A0HOSTCC=C2=A0 scripts/kconfig/conf.o
> >
> > ccache: error: Could not find compiler "gcc" in PATH >
> did you see if gcc is in your path after sourcing SDK env script?
[Luo Zhenhua-B19537] gcc can't be found after sourcing the SDK en= v script. but the /usr/bin is in the PATH env variable.
$ source /opt/poky/2.1+snapshot/environment-setup-ppce500mc-poky-linux
$ echo $PATH
/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin:/opt/poky/2.1+= snapshot/sysroots/x86_64-pokysdk-linux/usr/sbin:/opt/poky/2.1+snapshot/sysr= oots/x86_64-pokysdk-linux/bin:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysd= k-linux/sbin:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/.= ./x86_64-pokysdk-linux/bin:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-l= inux/usr/bin/powerpc-poky-linux:/opt/poky/2.1+snapshot/sysroots/x86_64-poky= sdk-linux/usr/bin/powerpc-poky-linux-uclibc:/opt/poky/2.1+snapshot/sysroots= /x86_64-pokysdk-linux/usr/bin/powerpc-poky-linux-musl:/usr/lib64/qt-3.3/bin= :/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/= bjsimics/.local/bin:/home/bjsimics/bin
$ echo $CCACHE_PATH
/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin:/opt/poky/2.1+= snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/../x86_64-pokysdk-linux/bin:= /opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/powerpc-poky-l= inux:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/powerpc-p= oky-linux-uclibc:/opt/poky/2.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/b= in/powerpc-poky-linux-musl:
$ which gcc
/usr/lib64/ccache/gcc
$ gcc -v
ccache: error: Could not find compiler "gcc= " in PATH


Best Regards,

Zhenhua

> > scripts/Makefile.host:108: recipe for target 'scripts/kconfig= /conf.o'
> > failed
> >
> > make[1]: *** [scripts/kconfig/conf.o] Error 1
> >
> > Makefile:541: recipe for target 'corenet32_smp_defconfig'= failed
> >
> > make: *** [corenet32_smp_defconfig] Error 2
> >
> >
> >
> >
> >
> > Best Regards,
> >
> >
> >
> > Zhenhua
> >
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org<= /a>
> >
https://lists.yoctoproject.org/listinfo/yocto=
> >

--94eb2c081fe4e3c202053657ba64--