Topics

Help with yocto poky quick start


Brendan Simon (SEPL)
 

Hi,

I'm new to Yocto and am trying to follow the quick start guide to get up and running with poky.  I'm using the latest Dunfel 3.1.2.

I'm running Debian 10 Buster in a VirtualBox VM (guest), on a Windows 10 Pro (host).

I'm having trouble with the build fetching files and getting checksum mismatch, however if I download the troublesome file with wget then the checksum is correct.

How do I fix this?

Everything seems very complex with Yocto, but maybe that's because I'm new to it.


$ time bitbake core-image-sato
Loading cache: 100% |###############################################################################| Time: 0:00:01Loaded 1312 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1.2"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "my-yocto-3.1.2:569b1f5d67c57de957e243997c53ec2f81dc8dfe"

Initialising tasks: 100% |##########################################################################| Time: 0:00:09Checking sstate mirror object availability: 100% |##################################################| Time: 0:36:41Sstate summary: Wanted 2547 Found 0 Missed 2547 Current 228 (0% match, 8% complete)
NOTE: Executing Tasks
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum failure encountered with download of https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz - will attempt other sources if available
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
ERROR: m4-native-1.4.18-r0 do_fetch: Checksum failure fetching https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
ERROR: m4-native-1.4.18-r0 do_fetch: Fetcher failure for URL: 'https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz'. Checksum mismatch!
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has md5 checksum 6a289f7da1478d63683eb4ad976c3c99 when a077779db287adf4e12a035029002d28 was expected
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has sha256 checksum 6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c when ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab 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[sha256sum] = "6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or--- Starting bitbake server pid 6121 at 2020-08-25 19:29:32.273325 ---
Started bitbake server pid 6121
DEBUG: BBCooker starting 1598398172.2817702
DEBUG: BBCooker pyinotify1 1598398172.2922668
DEBUG: BBCooker pyinotify2 1598398172.2926114
DEBUG: BBCooker pyinotify3 1598398172.2971811
DEBUG: BBCooker pyinotify complete 1598398172.2975075
DEBUG: Found bblayers.conf (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/conf/bblayers.conf)     
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-poky
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-yocto-bsp
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:755: including conf/abi_version.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:756: including conf/site.conf
DEBUG: CONF file 'conf/site.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:757: including conf/auto.conf
DEBUG: CONF file 'conf/auto.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:758: including conf/local.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:759: including conf/multiconfig/default.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:760: including conf/mach...skipping...
 otherwise unexpectedly modified.
ERROR: Logfile of failure stored in: /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_fetch.10440
ERROR: Task (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 17 tasks of which 16 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch   
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

real    37m7.174s
user    0m2.521s
sys     0m1.431s

Thanks,
Brendan.


Brendan Simon (SEPL)
 

Hi Erik,

Nope.  It's ot a HTML file.  It is (they are) archives with a files/directories for m4 sources.

$ find -name "m4*"
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616

$ find -name "m4*" | xargs file
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616: gzip compressed data, max compression, from Unix, original size 9789440

$ tar ztvf m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c | head
drwxrwxr-x 0/0               0 2016-12-31 17:37 m4-1.4.18/
-rw-rw-r-- 0/0          195907 2016-12-31 17:00 m4-1.4.18/ChangeLog-2014
-rw-rw-r-- 0/0           63687 2016-12-31 16:34 m4-1.4.18/maint.mk
-rw-rw-r-- 0/0            3912 2016-12-31 17:37 m4-1.4.18/ChangeLog
-rw-rw-r-- 0/0           69156 2016-12-31 17:25 m4-1.4.18/aclocal.m4
-rw-rw-r-- 0/0            2590 2016-12-29 15:32 m4-1.4.18/BACKLOG
drwxrwxr-x 0/0               0 2016-12-31 17:37 m4-1.4.18/tests/
-rw-rw-r-- 0/0            3126 2016-12-31 08:54 m4-1.4.18/tests/getcwd-lgpl.c
-rw-rw-r-- 0/0            6134 2016-12-31 08:54 m4-1.4.18/tests/test-dup2.c
-rw-rw-r-- 0/0            4998 2016-12-31 08:54 m4-1.4.18/tests/test-dup-safer.c

Brendan.

--


On 26/08/2020 4:22 pm, Erik Botö wrote:
Hi Brendan,

Could you inspect the file in
/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
to see if it is some kind of HTML file stating a download error?

Check the file size, if it's small it's probably an error so open it
using an editor to see if you get any hints. Many corporate networks
will require the use of a proxy server, see e.g.
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy for
hints on that.

Cheers,
Erik

On Wed, Aug 26, 2020 at 7:36 AM Brendan Simon (SEPL)
<brendan@...> wrote:
Hi,

I'm new to Yocto and am trying to follow the quick start guide to get up and running with poky.  I'm using the latest Dunfel 3.1.2.

I'm running Debian 10 Buster in a VirtualBox VM (guest), on a Windows 10 Pro (host).

I'm having trouble with the build fetching files and getting checksum mismatch, however if I download the troublesome file with wget then the checksum is correct.

How do I fix this?

Everything seems very complex with Yocto, but maybe that's because I'm new to it.


$ time bitbake core-image-sato
Loading cache: 100% |###############################################################################| Time: 0:00:01Loaded 1312 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1.2"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "my-yocto-3.1.2:569b1f5d67c57de957e243997c53ec2f81dc8dfe"

Initialising tasks: 100% |##########################################################################| Time: 0:00:09Checking sstate mirror object availability: 100% |##################################################| Time: 0:36:41Sstate summary: Wanted 2547 Found 0 Missed 2547 Current 228 (0% match, 8% complete)
NOTE: Executing Tasks
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum failure encountered with download of https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz - will attempt other sources if available
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
ERROR: m4-native-1.4.18-r0 do_fetch: Checksum failure fetching https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
ERROR: m4-native-1.4.18-r0 do_fetch: Fetcher failure for URL: 'https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz'. Checksum mismatch!
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has md5 checksum 6a289f7da1478d63683eb4ad976c3c99 when a077779db287adf4e12a035029002d28 was expected
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has sha256 checksum 6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c when ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab 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[sha256sum] = "6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or--- Starting bitbake server pid 6121 at 2020-08-25 19:29:32.273325 ---
Started bitbake server pid 6121
DEBUG: BBCooker starting 1598398172.2817702
DEBUG: BBCooker pyinotify1 1598398172.2922668
DEBUG: BBCooker pyinotify2 1598398172.2926114
DEBUG: BBCooker pyinotify3 1598398172.2971811
DEBUG: BBCooker pyinotify complete 1598398172.2975075
DEBUG: Found bblayers.conf (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/conf/bblayers.conf)
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-poky
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-yocto-bsp
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:755: including conf/abi_version.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:756: including conf/site.conf
DEBUG: CONF file 'conf/site.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:757: including conf/auto.conf
DEBUG: CONF file 'conf/auto.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:758: including conf/local.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:759: including conf/multiconfig/default.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:760: including conf/mach...skipping...
 otherwise unexpectedly modified.
ERROR: Logfile of failure stored in: /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_fetch.10440
ERROR: Task (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 17 tasks of which 16 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

real    37m7.174s
user    0m2.521s
sys     0m1.431s


Thanks,
Brendan.




Khem Raj
 

On 8/25/20 11:41 PM, Brendan Simon (SEPL) wrote:
Hi Erik,
Nope.  It's ot a HTML file.  It is (they are) archives with a files/directories for m4 sources.
$ find -name "m4*"
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616
$ find -name "m4*" | xargs file
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c:
gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c:
gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206:
gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616:
gzip compressed data, max compression, from Unix, original size 9789440
$ tar ztvf
m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
| head
drwxrwxr-x 0/0               0 2016-12-31 17:37 m4-1.4.18/
-rw-rw-r-- 0/0          195907 2016-12-31 17:00 m4-1.4.18/ChangeLog-2014
-rw-rw-r-- 0/0           63687 2016-12-31 16:34 m4-1.4.18/maint.mk
-rw-rw-r-- 0/0            3912 2016-12-31 17:37 m4-1.4.18/ChangeLog
-rw-rw-r-- 0/0           69156 2016-12-31 17:25 m4-1.4.18/aclocal.m4
-rw-rw-r-- 0/0            2590 2016-12-29 15:32 m4-1.4.18/BACKLOG
drwxrwxr-x 0/0               0 2016-12-31 17:37 m4-1.4.18/tests/
-rw-rw-r-- 0/0            3126 2016-12-31 08:54
m4-1.4.18/tests/getcwd-lgpl.c
-rw-rw-r-- 0/0            6134 2016-12-31 08:54
m4-1.4.18/tests/test-dup2.c
-rw-rw-r-- 0/0            4998 2016-12-31 08:54
m4-1.4.18/tests/test-dup-safer.c
everytime checksum is changing, thats not normal. Have you tried

bitbake -cccleanall m4 ; bitbake m4

and see if that helps ?

secondly, check for any mirrors or pre-mirror settings your distro might have which is getting this tarball from elsewhere, the checksums are correctly mentioned in recipe, it should match those of downloaded tarball.

Brendan.
--
On 26/08/2020 4:22 pm, Erik Botö wrote:
Hi Brendan,

Could you inspect the file in
/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
to see if it is some kind of HTML file stating a download error?

Check the file size, if it's small it's probably an error so open it
using an editor to see if you get any hints. Many corporate networks
will require the use of a proxy server, see e.g.
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy for
hints on that.

Cheers,
Erik

On Wed, Aug 26, 2020 at 7:36 AM Brendan Simon (SEPL)
<brendan@successful.com.au> wrote:
Hi,

I'm new to Yocto and am trying to follow the quick start guide to get up and running with poky. I'm using the latest Dunfel 3.1.2.

I'm running Debian 10 Buster in a VirtualBox VM (guest), on a Windows 10 Pro (host).

I'm having trouble with the build fetching files and getting checksum mismatch, however if I download the troublesome file with wget then the checksum is correct.

How do I fix this?

Everything seems very complex with Yocto, but maybe that's because I'm new to it.


$ time bitbake core-image-sato
Loading cache: 100% |###############################################################################| Time: 0:00:01Loaded 1312 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "3.1.2"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "my-yocto-3.1.2:569b1f5d67c57de957e243997c53ec2f81dc8dfe"

Initialising tasks: 100% |##########################################################################| Time: 0:00:09Checking sstate mirror object availability: 100% |##################################################| Time: 0:36:41Sstate summary: Wanted 2547 Found 0 Missed 2547 Current 228 (0% match, 8% complete)
NOTE: Executing Tasks
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum failure encountered with download ofhttps://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz - will attempt other sources if available
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
ERROR: m4-native-1.4.18-r0 do_fetch: Checksum failure fetchinghttps://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
ERROR: m4-native-1.4.18-r0 do_fetch: Fetcher failure for URL: 'https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz';. Checksum mismatch!
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has md5 checksum 6a289f7da1478d63683eb4ad976c3c99 when a077779db287adf4e12a035029002d28 was expected
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has sha256 checksum 6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c when ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab 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[sha256sum] = "6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or--- Starting bitbake server pid 6121 at 2020-08-25 19:29:32.273325 ---
Started bitbake server pid 6121
DEBUG: BBCooker starting 1598398172.2817702
DEBUG: BBCooker pyinotify1 1598398172.2922668
DEBUG: BBCooker pyinotify2 1598398172.2926114
DEBUG: BBCooker pyinotify3 1598398172.2971811
DEBUG: BBCooker pyinotify complete 1598398172.2975075
DEBUG: Found bblayers.conf (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/conf/bblayers.conf)
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-poky
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-yocto-bsp
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:755: including conf/abi_version.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:756: including conf/site.conf
DEBUG: CONF file 'conf/site.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:757: including conf/auto.conf
DEBUG: CONF file 'conf/auto.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:758: including conf/local.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:759: including conf/multiconfig/default.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:760: including conf/mach...skipping...
otherwise unexpectedly modified.
ERROR: Logfile of failure stored in: /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_fetch.10440
ERROR: Task (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 17 tasks of which 16 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

real 37m7.174s
user 0m2.521s
sys 0m1.431s


Thanks,
Brendan.


Josef Holzmayr
 

Howdy!

Its a long shot, but are you also using WSL2 on the Windows 10 Host?
In that case, downloads into a VirtualBox VM can be corrupted, see
https://www.virtualbox.org/ticket/19695

Greetz

Am Mi., 26. Aug. 2020 um 08:41 Uhr schrieb Brendan Simon (SEPL)
<brendan@successful.com.au>:


Hi Erik,

Nope. It's ot a HTML file. It is (they are) archives with a files/directories for m4 sources.

$ find -name "m4*"
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616

$ find -name "m4*" | xargs file
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616: gzip compressed data, max compression, from Unix, original size 9789440

$ tar ztvf m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c | head
drwxrwxr-x 0/0 0 2016-12-31 17:37 m4-1.4.18/
-rw-rw-r-- 0/0 195907 2016-12-31 17:00 m4-1.4.18/ChangeLog-2014
-rw-rw-r-- 0/0 63687 2016-12-31 16:34 m4-1.4.18/maint.mk
-rw-rw-r-- 0/0 3912 2016-12-31 17:37 m4-1.4.18/ChangeLog
-rw-rw-r-- 0/0 69156 2016-12-31 17:25 m4-1.4.18/aclocal.m4
-rw-rw-r-- 0/0 2590 2016-12-29 15:32 m4-1.4.18/BACKLOG
drwxrwxr-x 0/0 0 2016-12-31 17:37 m4-1.4.18/tests/
-rw-rw-r-- 0/0 3126 2016-12-31 08:54 m4-1.4.18/tests/getcwd-lgpl.c
-rw-rw-r-- 0/0 6134 2016-12-31 08:54 m4-1.4.18/tests/test-dup2.c
-rw-rw-r-- 0/0 4998 2016-12-31 08:54 m4-1.4.18/tests/test-dup-safer.c

Brendan.

--


On 26/08/2020 4:22 pm, Erik Botö wrote:

Hi Brendan,

Could you inspect the file in
/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
to see if it is some kind of HTML file stating a download error?

Check the file size, if it's small it's probably an error so open it
using an editor to see if you get any hints. Many corporate networks
will require the use of a proxy server, see e.g.
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy for
hints on that.

Cheers,
Erik

On Wed, Aug 26, 2020 at 7:36 AM Brendan Simon (SEPL)
<brendan@successful.com.au> wrote:

Hi,

I'm new to Yocto and am trying to follow the quick start guide to get up and running with poky. I'm using the latest Dunfel 3.1.2.

I'm running Debian 10 Buster in a VirtualBox VM (guest), on a Windows 10 Pro (host).

I'm having trouble with the build fetching files and getting checksum mismatch, however if I download the troublesome file with wget then the checksum is correct.

How do I fix this?

Everything seems very complex with Yocto, but maybe that's because I'm new to it.


$ time bitbake core-image-sato
Loading cache: 100% |###############################################################################| Time: 0:00:01Loaded 1312 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "3.1.2"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "my-yocto-3.1.2:569b1f5d67c57de957e243997c53ec2f81dc8dfe"

Initialising tasks: 100% |##########################################################################| Time: 0:00:09Checking sstate mirror object availability: 100% |##################################################| Time: 0:36:41Sstate summary: Wanted 2547 Found 0 Missed 2547 Current 228 (0% match, 8% complete)
NOTE: Executing Tasks
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum failure encountered with download of https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz - will attempt other sources if available
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
ERROR: m4-native-1.4.18-r0 do_fetch: Checksum failure fetching https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
ERROR: m4-native-1.4.18-r0 do_fetch: Fetcher failure for URL: 'https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz';. Checksum mismatch!
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has md5 checksum 6a289f7da1478d63683eb4ad976c3c99 when a077779db287adf4e12a035029002d28 was expected
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has sha256 checksum 6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c when ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab 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[sha256sum] = "6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or--- Starting bitbake server pid 6121 at 2020-08-25 19:29:32.273325 ---
Started bitbake server pid 6121
DEBUG: BBCooker starting 1598398172.2817702
DEBUG: BBCooker pyinotify1 1598398172.2922668
DEBUG: BBCooker pyinotify2 1598398172.2926114
DEBUG: BBCooker pyinotify3 1598398172.2971811
DEBUG: BBCooker pyinotify complete 1598398172.2975075
DEBUG: Found bblayers.conf (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/conf/bblayers.conf)
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-poky
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-yocto-bsp
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:755: including conf/abi_version.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:756: including conf/site.conf
DEBUG: CONF file 'conf/site.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:757: including conf/auto.conf
DEBUG: CONF file 'conf/auto.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:758: including conf/local.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:759: including conf/multiconfig/default.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:760: including conf/mach...skipping...
otherwise unexpectedly modified.
ERROR: Logfile of failure stored in: /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_fetch.10440
ERROR: Task (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 17 tasks of which 16 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

real 37m7.174s
user 0m2.521s
sys 0m1.431s


Thanks,
Brendan.




Brendan Simon (SEPL)
 

Hi Josef,

It actually might not be that much of a long shot.  I am using WSL2 on Win 10 Pro, and I have had trouble with connecting my VS Code Remote SSH to my VirtualBox VMs.  Standard ssh from the command line works, but vscode remote ssh doesn't connect (when it used to).  Also having issues upgrading an Ubuntu 20.04 VirtualBox VM.

Might try disabling disabling WSL and see if that improves things.

Brendan.

--


On 26/08/2020 4:54 pm, Josef Holzmayr-Khosh Amoz wrote:
Howdy!

Its a long shot, but are you also using WSL2 on the Windows 10 Host?
In that case, downloads into a VirtualBox VM can be corrupted, see
https://www.virtualbox.org/ticket/19695

Greetz

Am Mi., 26. Aug. 2020 um 08:41 Uhr schrieb Brendan Simon (SEPL)
<brendan@...>:
Hi Erik,

Nope.  It's ot a HTML file.  It is (they are) archives with a files/directories for m4 sources.

$ find -name "m4*"
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616

$ find -name "m4*" | xargs file
./m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_d8a6ce0c8a97f9f13af9d15d72e4e398daf24ceba4afa4c6925314c39bd81206: gzip compressed data, max compression, from Unix, original size 9789440
./m4-1.4.18.tar.gz_bad-checksum_b295109d6ddd3c387b794fb6e4b4dfe31d42991a6a537bd92b1a385c2ed3b616: gzip compressed data, max compression, from Unix, original size 9789440

$ tar ztvf m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c | head
drwxrwxr-x 0/0               0 2016-12-31 17:37 m4-1.4.18/
-rw-rw-r-- 0/0          195907 2016-12-31 17:00 m4-1.4.18/ChangeLog-2014
-rw-rw-r-- 0/0           63687 2016-12-31 16:34 m4-1.4.18/maint.mk
-rw-rw-r-- 0/0            3912 2016-12-31 17:37 m4-1.4.18/ChangeLog
-rw-rw-r-- 0/0           69156 2016-12-31 17:25 m4-1.4.18/aclocal.m4
-rw-rw-r-- 0/0            2590 2016-12-29 15:32 m4-1.4.18/BACKLOG
drwxrwxr-x 0/0               0 2016-12-31 17:37 m4-1.4.18/tests/
-rw-rw-r-- 0/0            3126 2016-12-31 08:54 m4-1.4.18/tests/getcwd-lgpl.c
-rw-rw-r-- 0/0            6134 2016-12-31 08:54 m4-1.4.18/tests/test-dup2.c
-rw-rw-r-- 0/0            4998 2016-12-31 08:54 m4-1.4.18/tests/test-dup-safer.c

Brendan.

--


On 26/08/2020 4:22 pm, Erik Botö wrote:

Hi Brendan,

Could you inspect the file in
/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
to see if it is some kind of HTML file stating a download error?

Check the file size, if it's small it's probably an error so open it
using an editor to see if you get any hints. Many corporate networks
will require the use of a proxy server, see e.g.
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy for
hints on that.

Cheers,
Erik

On Wed, Aug 26, 2020 at 7:36 AM Brendan Simon (SEPL)
<brendan@...> wrote:

Hi,

I'm new to Yocto and am trying to follow the quick start guide to get up and running with poky.  I'm using the latest Dunfel 3.1.2.

I'm running Debian 10 Buster in a VirtualBox VM (guest), on a Windows 10 Pro (host).

I'm having trouble with the build fetching files and getting checksum mismatch, however if I download the troublesome file with wget then the checksum is correct.

How do I fix this?

Everything seems very complex with Yocto, but maybe that's because I'm new to it.


$ time bitbake core-image-sato
Loading cache: 100% |###############################################################################| Time: 0:00:01Loaded 1312 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1.2"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "my-yocto-3.1.2:569b1f5d67c57de957e243997c53ec2f81dc8dfe"

Initialising tasks: 100% |##########################################################################| Time: 0:00:09Checking sstate mirror object availability: 100% |##################################################| Time: 0:36:41Sstate summary: Wanted 2547 Found 0 Missed 2547 Current 228 (0% match, 8% complete)
NOTE: Executing Tasks
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_e64407f9097a607b4463e0c82d898c19b0a3bfd2199d30337b5464d8b416e59c
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum failure encountered with download of https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz - will attempt other sources if available
WARNING: m4-native-1.4.18-r0 do_fetch: Checksum mismatch for local file /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz
Cleaning and trying again.
WARNING: m4-native-1.4.18-r0 do_fetch: Renaming /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz to /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz_bad-checksum_6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c
ERROR: m4-native-1.4.18-r0 do_fetch: Checksum failure fetching https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
ERROR: m4-native-1.4.18-r0 do_fetch: Fetcher failure for URL: 'https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz'. Checksum mismatch!
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has md5 checksum 6a289f7da1478d63683eb4ad976c3c99 when a077779db287adf4e12a035029002d28 was expected
File: '/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/downloads/m4-1.4.18.tar.gz' has sha256 checksum 6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c when ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab 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[sha256sum] = "6a1537c79ea613aa70849d8f1f7eeb5a5dbbea3a9527d4aea33a1c8a88e80b9c"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or--- Starting bitbake server pid 6121 at 2020-08-25 19:29:32.273325 ---
Started bitbake server pid 6121
DEBUG: BBCooker starting 1598398172.2817702
DEBUG: BBCooker pyinotify1 1598398172.2922668
DEBUG: BBCooker pyinotify2 1598398172.2926114
DEBUG: BBCooker pyinotify3 1598398172.2971811
DEBUG: BBCooker pyinotify complete 1598398172.2975075
DEBUG: Found bblayers.conf (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/conf/bblayers.conf)
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-poky
DEBUG: Adding layer /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta-yocto-bsp
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:755: including conf/abi_version.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:756: including conf/site.conf
DEBUG: CONF file 'conf/site.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:757: including conf/auto.conf
DEBUG: CONF file 'conf/auto.conf' not found
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:758: including conf/local.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:759: including conf/multiconfig/default.conf
DEBUG: CONF /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/conf/bitbake.conf:760: including conf/mach...skipping...
 otherwise unexpectedly modified.
ERROR: Logfile of failure stored in: /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_fetch.10440
ERROR: Task (/home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 17 tasks of which 16 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/brendan/SEPL/Projects/Erntec/PMU/yocto_trial/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_fetch
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

real    37m7.174s
user    0m2.521s
sys     0m1.431s


Thanks,
Brendan.