cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
4,652 Views
Registered: ‎02-12-2018

petalinux-build - why do I get failed to fetch file errors?

Jump to solution


- Vivado, SDK: 2017.4
- Device:      Zynq-7000


hello,

I am noticing some problems with my petalinux build. I am using a reVISION platform provided from the manufacturer of the board I am working with.
I am getting lots of fetch errors after running

petalinux-build



INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 3257 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:01
Parsing of 2473 .bb files complete (2428 cached, 45 parsed). 3266 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:04
Checking sstate mirror object availability: 100% |###############| Time: 0:01:35
NOTE: Executing SetScene Tasks
WARNING: gobject-introspection-1.48.0-r0 do_package_qa_setscene: Failed to fetch URL file://f0/sstate:gobject-introspection:cortexa9hf-neon-xilinx-linux-gnueabi:1.48.0:r0:cortexa9hf-neon:3:f0bddb7b64b8b6b8464032de5fb888f3_package_qa.tgz;downloadfilename=f0/sstate:gobject-introspection:cortexa9hf-neon-xilinx-linux-gnueabi:1.48.0:r0:cortexa9hf-neon:3:f0bddb7b64b8b6b8464032de5fb888f3_package_qa.tgz, attempting MIRRORS if available
ERROR: gobject-introspection-1.48.0-r0 do_package_qa_setscene: Fetcher failure: Unable to find file file://f0/sstate:gobject-introspection:cortexa9hf-neon-xilinx-linux-gnueabi:1.48.0:r0:cortexa9hf-neon:3:f0bddb7b64b8b6b8464032de5fb888f3_package_qa.tgz;downloadfilename=f0/sstate:gobject-introspection:cortexa9hf-neon-xilinx-linux-gnueabi:1.48.0:r0:cortexa9hf-neon:3:f0bddb7b64b8b6b8464032de5fb888f3_package_qa.tgz anywhere. The paths that were searched were:
    /home/user/SDSoC-Zybo-Z7-20/linux/Zybo-Z7-20/build/sstate-cache
    /home/user/SDSoC-Zybo-Z7-20/linux/Zybo-Z7-20/build/sstate-cache
ERROR: gobject-introspection-1.48.0-r0 do_package_qa_setscene: No suitable staging package found
WARNING: Logfile for failed setscene task is /home/user/SDSoC-Zybo-Z7-20/linux/Zybo-Z7-20/build/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/gobject-introspection/1.48.0-r0/temp/log.do_package_qa_setscene.26532
WARNING: Setscene task (/opt/pkg/petalinux/components/yocto/source/arm/layers/core/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb:do_package_qa_setscene) failed with exit code '1' - real task will be run instead
WARNING: libusb-compat-1_0.1.5-r0 do_package_qa_setscene: Failed to fetch URL file://43/sstate:libusb-compat:cortexa9hf-neon-xilinx-linux-gnueabi:0.1.5:r0:cortexa9hf-neon:3:43b1875a02abaf580308530f64665b87_package_qa.tgz;downloadfilename=43/sstate:libusb-compat:cortexa9hf-neon-xilinx-linux-gnueabi:0.1.5:r0:cortexa9hf-neon:3:43b1875a02abaf580308530f64665b87_package_qa.tgz, attempting MIRRORS if available
ERROR: libusb-compat-1_0.1.5-r0 do_package_qa_setscene: Fetcher failure: Unable to find file file://43/sstate:libusb-compat:cortexa9hf-neon-xilinx-linux-gnueabi:0.1.5:r0:cortexa9hf-neon:3:43b1875a02abaf580308530f64665b87_package_qa.tgz;downloadfilename=43/sstate:libusb-compat:cortexa9hf-neon-xilinx-linux-gnueabi:0.1.5:r0:cortexa9hf-neon:3:43b1875a02abaf580308530f64665b87_package_qa.tgz anywhere. The paths that were searched were:
    /home/user/SDSoC-Zybo-Z7-20/linux/Zybo-Z7-20/build/sstate-cache
    /home/user/SDSoC-Zybo-Z7-20/linux/Zybo-Z7-20/build/sstate-cache
ERROR: libusb-compat-1_0.1.5-r0 do_package_qa_setscene: No suitable staging package found


I am connected to the Internet, wired connection, no proxies.

When I reach the point to build the kernel, I always get these fetch errors. I am observing this with several petalinux platforms in general.

- WARNING: Failed to fetch URL ..., attempting MIRRORS if available
- ERROR: Fetcher failure: Unable to find file...
- ERROR: No suitable staging package found

kernel compilation ends with "successfully build project", if I run the command "petalinux-build" again there are no fetcher warnings.

If I build the project from source or run "petalinux-build -x mrproper" these messages reappear again. The number of fetcher failures are different every time, as well as the packages that fail to fetch.


To test this, I was building, cleaning and building the project again, these are 9 build results:

Summary: There were 8 WARNING messages shown.
Summary: There were 13 ERROR messages shown, returning a non-zero exit code.

Summary: There were 13 WARNING messages shown.
Summary: There were 22 ERROR messages shown, returning a non-zero exit code.

Summary: There were 9 WARNING messages shown.
Summary: There were 14 ERROR messages shown, returning a non-zero exit code.

Summary: There were 3 WARNING messages shown.
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.

Summary: There were 17 WARNING messages shown.
Summary: There were 28 ERROR messages shown, returning a non-zero exit code.

Summary: There were 7 WARNING messages shown.
Summary: There were 12 ERROR messages shown, returning a non-zero exit code.

Summary: There were 20 WARNING messages shown.
Summary: There were 31 ERROR messages shown, returning a non-zero exit code.

Summary: There were 12 WARNING messages shown.
Summary: There were 19 ERROR messages shown, returning a non-zero exit code.

Summary: There were 12 WARNING messages shown.
Summary: There were 19 ERROR messages shown, returning a non-zero exit code.

The list of packages failed to fetch is endless, it is different every time. Here are some examples:

- file-5.28-r0
- v4l-utils-1.10.1-r0
- gnu-config-20150728+gitAUTOINC+b576fa87c1-r0
- libwebp-0.5.1-r0
- cairo-1.14.6-r0
- freetype-native-2.6.5-r0
- libxcb-native-1.12-r0
- gdb-linaro-7.8-r2014.09
- libwebp-0.5.1-r0
- mesa-2_12.0.1-r0

I have some questions about this:

- I don't know how to look at this, is this related to yocto, petalinux, kernel compilation, some libraries? I could not find any information about these packages, where can they be found?
- despite the errors, it always finishes build successfully. If I build again, it builds with no errors nor warnings. It also shows no sign of fetching anything in the second build. May I ignore these errors?

- many errors like this can be found on the internet. Appearently, these can be fixed by setting SRCREV and SRCREV_machine to AUTOREV - how is this done?


Can someone give me further hints on solving this issue, thank you.

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
4,939 Views
Registered: ‎02-12-2018

Solved by manually deleting folders "components" and "meta-plnx-generated".

View solution in original post

0 Kudos
6 Replies
Highlighted
Observer
Observer
4,635 Views
Registered: ‎07-14-2017

I had similar problem. But project didn't compile. Petalinux 2018.1. Host machine with Ubuntu 16.04.4. Not virtual machine.

I reinstalled gcc-multilib library and moved my project directory from disk with ntfs to disk with ext4. And copied git repo with stages, kernel and u-boot files to local directory. And now I have no problem.

0 Kudos
Highlighted
Moderator
Moderator
4,621 Views
Registered: ‎09-12-2007

Can you check your proxy settings? 

0 Kudos
Highlighted
4,614 Views
Registered: ‎02-12-2018

Proxy network method is set to none.

 

I'm on a Linux host, too (native). All my file systems are ext4. I am working on that "offline" mode, assigning a custom path for my downloads and sstate-cache folders.

0 Kudos
Highlighted
4,607 Views
Registered: ‎02-12-2018

I am cloning the project from a git repository. It's not a petalinux BSP it's a petalinux project.

0 Kudos
Highlighted
4,940 Views
Registered: ‎02-12-2018

Solved by manually deleting folders "components" and "meta-plnx-generated".

View solution in original post

0 Kudos
Highlighted
Moderator
Moderator
4,489 Views
Registered: ‎04-24-2017

Hi @theultimatesource,

 

You are not supposed to delete meta-plnx-generated. Here is what you need to do in 2017.4 release.

 

$ petalinux-build -x mrproper
$ rm -rf components/plnx_workspace/*
$ petalinux-build

In 2018.1 petalinux-build -x mrproper will remove the components directories as well.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------