This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM437x ERROR: Fetcher failure: Fetch command failed with exit code 4, no output

Hi,

Can ´ t build MACHINE=am437x-evm bitbake tisdk-rootfs-image


Description:    Ubuntu 12.04.5 LTS
Release:    12.04
ti-processor-sdk-linux-am437x-evm-02.00.00.00

gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf

WARNING: Failed to fetch URL wiki.qemu-project.org/.../qemu-2.2.0.tar.bz2, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 4, no output
ERROR: Function failed: Fetcher failure for URL: 'wiki.qemu-project.org/.../qemu-2.2.0.tar.bz2'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/mart/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.2.0-r1/temp/log.do_fetch.11189
ERROR: Task 5120 (virtual:native:/home/mart/tisdk/sources/oe-core/meta/recipes-devtools/qemu/qemu_2.2.0.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1715 tasks of which 1643 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
  virtual:native:/home/mart/tisdk/sources/oe-core/meta/recipes-devtools/qemu/qemu_2.2.0.bb, do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Fetching sources.openembedded.org/qemu-2.2.0.tar.bz2 using command '/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/mart/tisdk/downloads 'sources.openembedded.org/qemu-2.2.0.tar.bz2''

No result with mirrors either. It looks as if there is no connection to the internet.

But the internet works fine I can fetch the file from the command prompt with no problem using the same line /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/mart/tisdk/downloads 'sources.openembedded.org/qemu-2.2.0.tar.bz2'

placing the qemu-2.2.0.tar.bz2 file in the tisdk/download directory does'nt help much  it does'nt seems to know.

can anyone help me with this?



  • Hello m#rt,

    Place this file next to the qemu-2.2.0.tar.bz2 in download directory and it will work.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/qemu_2D00_2.2.0.tar.bz2.done

    Best regards,
    Kemal

  • Hello Kemal,

    Thank you for your quick respons!
    I downloaded this file by hand from wiki.qemu-project.org/.../qemu-2.2.0.tar.bz2 and copied it to /home/mart/tisdk/downloads/ because off the fetch errors.
    Copied your file to /home/mart/tisdk/downloads/qemu-2.2.0.tar.bz2.done
    I started the building steps al over again.
    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-02.00.00.00-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am437x-evm bitbake tisdk-rootfs-image
    There are some checksum errors.
    WARNING: Checksum mismatch for local file /home/mart/tisdk/downloads/qemu-2.2.0.tar.bz2
    Cleaning and trying again.
    WARNING: Renaming /home/mart/tisdk/downloads/qemu-2.2.0.tar.bz2 to /home/mart/tisdk/downloads/qemu-2.2.0.tar.bz2_bad-checksum_ed052eae852b2de281256ae9e5b3c867
    Then there's the Fetch error again.
    WARNING: Failed to fetch URL wiki.qemu-project.org/.../qemu-2.2.0.tar.bz2, attempting MIRRORS if available
    WARNING: Failed to fetch URL www.kernel.org/.../openobex-1.5.tar.gz, attempting MIRRORS if available
    There are more errors now
    WARNING: Failed to fetch URL metalab.unc.edu/.../stat-3.3.tar.gz, attempting MIRRORS if available
    WARNING: /home/mart/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/fbset-modes/0.1.0-r6/fbset-modes-0.1.0 ('S') doesn't exist, please set 'S' to a proper value
    WARNING: Failed to fetch URL home.comcast.net/.../dt-source.tar.gz, attempting MIRRORS if available
    ERROR: Checksum failure fetching home.comcast.net/.../dt-source.tar.gz
    ERROR: Function failed: Fetcher failure for URL: 'home.comcast.net/.../dt-source.tar.gz'. Checksum mismatch!
    File: '/home/mart/tisdk/downloads/dt-source.tar.gz' has md5 checksum 5776233a2d301a50b314306538257a45 when fc3373e30868698b90f02cc5fab9aabd was expected
    File: '/home/mart/tisdk/downloads/dt-source.tar.gz' has sha256 checksum 2f27fda643093e07161d128a9cc23cf30c0387f87cd911b904d84217f60a9a2a when 6a213b8da2b8907c4f1633c3b90229085ac239e4d43aa5879b0123c21f951cab was expected
    If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
    SRC_URI[md5sum] = "5776233a2d301a50b314306538257a45"
    SRC_URI[sha256sum] = "2f27fda643093e07161d128a9cc23cf30c0387f87cd911b904d84217f60a9a2a"
    Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

    ERROR: Logfile of failure stored in: /home/mart/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa9hf-vfp-neon-linux-gnueabi/dt/17.07-r0/temp/log.do_fetch.6369
    ERROR: Task 2032 (/home/mart/tisdk/sources/meta-arago/meta-arago-extras/recipes-devtools/dt/dt_17.07.bb, do_fetch) failed with exit code '1'


    Any idee what the reason is off those fetch problems? I dont use a proxy server. Could it be rights maybe? Or does'nt it download those files because of the differences with the checksums.
    I' m using this document for building
    processors.wiki.ti.com/index.php
    Maybe I should start all over again. It's getting worse.
    Any suggenstions?

    Thanks you Kemal
  • Hello Kemal,

    I made a mess of it yesterday but started all over and this gives a much better result. Its not 100 % yet and for qemu-2.2.0.tar.bz2 it looks as if it's not alowed anymore to download this file.??!!
    I looked on one of the mirrors downloads.yoctoproject.org/mirror/sources/qemu-2.2.0.tat.bz2 The file was there but there was also a file with the same name with .lock at the end. (Does is mean what I think it means?) and unable to download.
    WARNING: Failed to fetch URL wiki.qemu-project.org/.../qemu-2.2.0.tar.bz2, attempting MIRRORS if available
    ERROR: Fetcher failure: Fetch command failed with exit code 4, no output
    ERROR: Function failed: Fetcher failure for URL: 'wiki.qemu-project.org/.../qemu-2.2.0.tar.bz2'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/mart/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.2.0-r1/temp/log.do_fetch.22714
    ERROR: Task 5120 (virtual:native:/home/mart/tisdk/sources/oe-core/meta/recipes-devtools/qemu/qemu_2.2.0.bb, do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 1640 tasks of which 1614 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish:

    Summary: 1 task failed:
    virtual:native:/home/mart/tisdk/sources/oe-core/meta/recipes-devtools/qemu/qemu_2.2.0.bb, do_fetch
    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
    I was not succesful with the download of qemu-2.2.0.tar.bz2 anymore not by wiki qemu or the mirrors
    and because I started all over I lost all the files, so.
    I was able to download 2.2.1 but how am I going to use that file to solve this problem?

    Any help would be very much appreciated.

    Best regards,

    M#rt
  • Do you have all the prerequisites installed on your system processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK
  • Hello Kemal, I did follow that document yes and there where no errors and I'm not behind a proxy. I did manage to find qemu-2.2.0.tar.bz2 that worked with no errors so that's gone. But then there pops up an other one ............
    WARNING: Failed to fetch URL home.comcast.net/.../dt-source.tar.gz, attempting MIRRORS if available
    ERROR: Checksum failure fetching home.comcast.net/.../dt-source.tar.gz
    ERROR: Function failed: Fetcher failure for URL: 'home.comcast.net/.../dt-source.tar.gz'. Checksum mismatch!
    File: '/home/mart/tisdk/downloads/dt-source.tar.gz' has md5 checksum 5776233a2d301a50b314306538257a45 when fc3373e30868698b90f02cc5fab9aabd was expected
    File: '/home/mart/tisdk/downloads/dt-source.tar.gz' has sha256 checksum 2f27fda643093e07161d128a9cc23cf30c0387f87cd911b904d84217f60a9a2a when 6a213b8da2b8907c4f1633c3b90229085ac239e4d43aa5879b0123c21f951cab was expected
    If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
    SRC_URI[md5sum] = "5776233a2d301a50b314306538257a45"
    SRC_URI[sha256sum] = "2f27fda643093e07161d128a9cc23cf30c0387f87cd911b904d84217f60a9a2a"
    Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

    ERROR: Logfile of failure stored in: /home/mart/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa9hf-vfp-neon-linux-gnueabi/dt/17.07-r0/temp/log.do_fetch.7177
    ERROR: Task 2032 (/home/mart/tisdk/sources/meta-arago/meta-arago-extras/recipes-devtools/dt/dt_17.07.bb, do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 2417 tasks of which 2376 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish:

    Summary: 1 task failed:
    /home/mart/tisdk/sources/meta-arago/meta-arago-extras/recipes-devtools/dt/dt_17.07.bb, do_fetch
    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

    This is what i've done
    sudo apt-get install git build-essential diffstat texinfo gawk chrpath dos2unix wget unzip g++-multilib socat libsdl1.2-dev xterm doxygen
    sudo dpkg-reconfigure dash
    (Select "no" when prompted)
    No proxy
    wget releases.linaro.org/.../gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz
    $ tar -Jxvf gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME
    git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-02.00.00.00-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am437x-evm bitbake tisdk-rootfs-image
    no errors until the last line

    Can you point me in the right direction please

    Best regards,

    M#rt
  • That is right, the source link in dt recipe is broken and the mirror provide a different source which lead to this checksum mismatch.
    You can open the sources/meta-arago/meta-arago-extras/recipes-devtools/dt/dt_17.07.bb recipe and amend the source uri from SRC_URI = "http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/dt/dt-source.tar.gz" to SRC_URI = "http://arago-project.org/files/sources/dt-source.tar.gz" until the broken link gets fixed. Then clean the already fetched source by the mirror MACHINE=am437x-evm bitbake -c cleanall dt and build MACHINE=am437x-evm bitbake tisdk-rootfs-image