UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
3,211 Views
Registered: ‎10-14-2015

petalinux v2017.1 kernel menuconfig ccache error

Jump to solution

I have just installed petalinux v2017.1, I have created a new project, imported the hardware description file, configure rootfs, but when I try to configure the kernel through

 

petalinux-config -c kernel

 

I receive this error :

 HOSTCC  scripts/basic/fixdep
ccache: error: Could not find compiler "gcc" in PATH

 

and there is no menuconfig

 

what could be the cause of the problem?

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
5,723 Views
Registered: ‎10-14-2015

Re: petalinux v2017.1 kernel menuconfig ccache error

Jump to solution

finally I have found the solution

 

with previous version of petalinux and SDK I have to add to the settings.sh script :

unset GNOME_DESKTOP_SESSION_ID

 

otherwise SDK would have crashed.

 

I don't need it anymore with v2017.1

View solution in original post

0 Kudos
5 Replies
Explorer
Explorer
3,207 Views
Registered: ‎10-14-2015

Re: petalinux v2017.1 kernel menuconfig ccache error

Jump to solution

 

in file <$PETALINUX_DIR>/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi

I have found the settings for PATH and CCACHE_PATH but they are pointing to a non-existing folder tmp/sysroots/x86_64-linux/ :

 

export PATH=/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/sbin:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/bin:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/sbin:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/../x86_64-petalinux-linux/bin:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-uclibc:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-musl:$PATH
export CCACHE_PATH=/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/../x86_64-petalinux-linux/bin:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-uclibc:/opt/Xilinx2017.1/petalinux-v2017.1-final/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-musl:$CCACHE_PATH

0 Kudos
Explorer
Explorer
3,190 Views
Registered: ‎10-14-2015

Re: petalinux v2017.1 kernel menuconfig ccache error

Jump to solution

more,

in my <project-dir>/project-spec/meta-user/ folder, there is no recipes-kernel

0 Kudos
Explorer
Explorer
3,180 Views
Registered: ‎11-09-2015

Re: petalinux v2017.1 kernel menuconfig ccache error

Jump to solution

hi,

have you download sstate cache   form xilinx:https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

 and config this configure:  YOCTO_LOCAL_SSTATE_FEEDS_URL。

using petaconfig  to config it:

Location: 
-> Yocto Settings  
      -> Local sstate feeds settings

 

BRs,

 

 

 

 

0 Kudos
Explorer
Explorer
3,165 Views
Registered: ‎10-14-2015

Re: petalinux v2017.1 kernel menuconfig ccache error

Jump to solution

yes I did.

 

I get the error when do_menuconfig is called. I wonder why ccache is looking for "gcc" as in PATH from settings.sh all the compiler in /tools/linux-i386 have been exported. shouldn't be look for "gcc-arm-linux-gnueabi"?

 

there is no error if I issue the command

petalinux-config -c kernel --defconfig xilinx_zynq_defconfig

 

but still no menuconfig is open

0 Kudos
Explorer
Explorer
5,724 Views
Registered: ‎10-14-2015

Re: petalinux v2017.1 kernel menuconfig ccache error

Jump to solution

finally I have found the solution

 

with previous version of petalinux and SDK I have to add to the settings.sh script :

unset GNOME_DESKTOP_SESSION_ID

 

otherwise SDK would have crashed.

 

I don't need it anymore with v2017.1

View solution in original post

0 Kudos