Poky build errors, help is needed
Hi,
I am new to Yocto project and try to build my first yocto project by following instructions on https://www.yoctoproject.org/docs/current/brief-yoctoprojectqs/brief-yoctoprojectqs.html. I checked out branch yocto-2.5.3, and tried to build targets, such as core-image-minimal, meta-toolchain, but always get some fetch errors or checksum errors, such as:
ERROR: libmpc-native-1.1.0-r0 do_fetch: Checksum failure fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
WARNING: quilt-native-0.65-r0 do_fetch: Failed to fetch URL http://download.savannah.gnu.org/releases/quilt/quilt-0.65.tar.gz, attempting MIRRORS if available
WARNING: m4-native-1.4.18-r0 do_fetch: Failed to fetch URL http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz, attempting MIRRORS if available
I am running Ubuntu 18.04 virtual box on Windows 7.
Chad Gong
Electrical Engineer
Trijicon, Inc.
| P.O. Box 930059
Wixom, Michigan 48393 US
________________________________
This electronic message contains information that may be confidential, privileged, proprietary, or subject to the export control laws of the United States, including the Arms Export Control Act (22 U.S.C. 2571 et seq.), the International Traffic in Arms Regulations (22 C.F.R. Part 120 et seq.), and/or the Export Administration Regulations (15 C.F.R. Part 730 et seq.). This information is intended for the use of the addressee only, and if you are not the intended recipient, any disclosure, copying, distribution, printing, or any other use of, the contents of this message is prohibited. Any transfer, retransfer, or disclosure of this data to a Foreign Person without United States Government authorization is also prohibited. If you have received this message in error, please notify the sender and destroy the original message.
Quoted 1 line · Chad Gong
WARNING: m4-native-1.4.18-r0
do_fetch: Failed to fetch URL http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz, attempting MIRRORS if available
$ wget http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz URL transformed to HTTPS due to an HSTS policy --2019-07-02 13:59:34-- https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20, 2001:470:142:3::b Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2006643 (1.9M) [application/x-gzip] Saving to: ‘m4-1.4.18.tar.gz’
m4-1.4.18.tar.gz 100%[===============================================================================>]
1.91M 1.38MB/s in 1.4s
2019-07-02 13:59:36 (1.38 MB/s) - ‘m4-1.4.18.tar.gz’ saved [2006643/2006643]
Looks like you've got networking problems inside the virtual machine. Verify using wget that you can download those files successfully.
Ross
Ross, Gabriele,
I switched to branch 2.7. Still have the same problem as shown below.
ERROR: opkg-utils-0.4.0-r0 do_fetch: Checksum failure fetching http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/snapshot/opkg-utils-0.4.0.tar.gz
When using wget, the files can be downloaded as shown below.
$ wget http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/snapshot/opkg-utils-0.4.0.tar.gz --2019-07-01 20:11:01-- http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/snapshot/opkg-utils-0.4.0.tar.gz Resolving git.yoctoproject.org (git.yoctoproject.org)... 140.211.169.56 Connecting to git.yoctoproject.org (git.yoctoproject.org)|140.211.169.56|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: ‘opkg-utils-0.4.0.tar.gz’
opkg-utils-0.4.0.tar.gz [ <=> ] 29.82K --.-KB/s in 0.005s
2019-07-01 20:11:02 (5.97 MB/s) - ‘opkg-utils-0.4.0.tar.gz’ saved [30536]
Chad Gong
Electrical Engineer
Trijicon, Inc.
| P.O. Box 930059
Wixom, Michigan 48393 US
[email protected] |
-----Original Message-----
From: Burton, Ross <[email protected]>
Sent: Tuesday, July 02, 2019 9:00 AM
To: Chad Gong <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Poky build errors, help is needed
CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders.
Quoted 3 lines · Chad Gong
WARNING: m4-native-1.4.18-r0
do_fetch: Failed to fetch URL
http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz, attempting MIRRORS if available
$ wget http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz URL transformed to HTTPS due to an HSTS policy --2019-07-02 13:59:34-- https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20, 2001:470:142:3::b Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2006643 (1.9M) [application/x-gzip] Saving to: ‘m4-1.4.18.tar.gz’
m4-1.4.18.tar.gz 100%[===============================================================================>]
1.91M 1.38MB/s in 1.4s
2019-07-02 13:59:36 (1.38 MB/s) - ‘m4-1.4.18.tar.gz’ saved [2006643/2006643]
Looks like you've got networking problems inside the virtual machine. Verify using wget that you can download those files successfully.
Ross
This electronic message contains information that may be confidential, privileged, proprietary, or subject to the export control laws of the United States, including the Arms Export Control Act (22 U.S.C. 2571 et seq.), the International Traffic in Arms Regulations (22 C.F.R. Part 120 et seq.), and/or the Export Administration Regulations (15 C.F.R. Part 730 et seq.). This information is intended for the use of the addressee only, and if you are not the intended recipient, any disclosure, copying, distribution, printing, or any other use of, the contents of this message is prohibited. Any transfer, retransfer, or disclosure of this data to a Foreign Person without United States Government authorization is also prohibited. If you have received this message in error, please notify the sender and destroy the original message.
Check that the checksum of the file you grabbed matches the recipe. There's a MD5 in the recipe that it is comparing against.
Ross
Quoted 82 lines · Chad Gong
Ross, Gabriele,
I switched to branch 2.7. Still have the same problem as shown below.
ERROR: opkg-utils-0.4.0-r0
do_fetch: Checksum failure fetching http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/snapshot/opkg-utils-0.4.0.tar.gzWhen using wget, the files can be downloaded as shown below.
$ wget http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/snapshot/opkg-utils-0.4.0.tar.gz --2019-07-01 20:11:01-- http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/snapshot/opkg-utils-0.4.0.tar.gz Resolving git.yoctoproject.org (git.yoctoproject.org)... 140.211.169.56 Connecting to git.yoctoproject.org (git.yoctoproject.org)|140.211.169.56|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: ‘opkg-utils-0.4.0.tar.gz’opkg-utils-0.4.0.tar.gz [ <=> ] 29.82K --.-KB/s in 0.005s
2019-07-01 20:11:02 (5.97 MB/s) - ‘opkg-utils-0.4.0.tar.gz’ saved [30536]Chad Gong
Electrical EngineerTrijicon, Inc.
| P.O. Box 930059
Wixom, Michigan 48393 US
[email protected] |-----Original Message-----
From: Burton, Ross <[email protected]>
Sent: Tuesday, July 02, 2019 9:00 AM
To: Chad Gong <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Poky build errors, help is neededCAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders.
Quoted 3 lines · Chad Gong
WARNING: m4-native-1.4.18-r0
do_fetch: Failed to fetch URL
http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz, attempting MIRRORS if available$ wget http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz URL transformed to HTTPS due to an HSTS policy --2019-07-02 13:59:34-- https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20, 2001:470:142:3::b Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2006643 (1.9M) [application/x-gzip] Saving to: ‘m4-1.4.18.tar.gz’m4-1.4.18.tar.gz 100%[===============================================================================>]
1.91M 1.38MB/s in 1.4s2019-07-02 13:59:36 (1.38 MB/s) - ‘m4-1.4.18.tar.gz’ saved [2006643/2006643]Looks like you've got networking problems inside the virtual machine. Verify using wget that you can download those files successfully.
Ross
This electronic message contains information that may be confidential, privileged, proprietary, or subject to the export control laws of the United States, including the Arms Export Control Act (22 U.S.C. 2571 et seq.), the International Traffic in Arms Regulations (22 C.F.R. Part 120 et seq.), and/or the Export Administration Regulations (15 C.F.R. Part 730 et seq.). This information is intended for the use of the addressee only, and if you are not the intended recipient, any disclosure, copying, distribution, printing, or any other use of, the contents of this message is prohibited. Any transfer, retransfer, or disclosure of this data to a Foreign Person without United States Government authorization is also prohibited. If you have received this message in error, please notify the sender and destroy the original message.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line · Chad Gong
Thank you for the advice. Which folder contains the recipe? Which method is used to calculate the checksum?
Please remember to ensure the list is copied.
$ find . -name opkg-util*bb ./meta/recipes-devtools/opkg-utils/opkg-utils_0.4.1.bb
You're on a different version so the filename won't be the same. For the MD5 sum, use md5sum.
Ross
Ross,
The checksum of the grabbed file matches one in the recipe, but the checksum of the file downloaded during build doesn't match.
I re-ran another build of the same configuration. This time there is no fetch error for the file that failed last time. I looks each time I build, I get different fetch error randomly. But this time the failed URL is git shown below, and I cannot even use wget to download it.
ERROR: libnsl2-native-1.2.0+gitAUTOINC+37c5ffe303-r0 do_fetch: Fetcher failure for URL: 'git://github.com/thkukuk/libnsl'. Unable to fetch URL from any source.
$ wget git://github.com/thkukuk/libnsl git://github.com/thkukuk/libnsl: Unsupported scheme ‘git’.
Regards,
Chad
Chad Gong
Electrical Engineer
Trijicon, Inc.
| P.O. Box 930059
Wixom, Michigan 48393 US
[email protected] |
-----Original Message-----
From: Burton, Ross <[email protected]>
Sent: Tuesday, July 02, 2019 2:38 PM
To: Chad Gong <[email protected]>
Cc: Yocto-mailing-list <[email protected]>
Subject: Re: [yocto] Poky build errors, help is needed
CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders.
Quoted 1 line · Chad Gong
Thank you for the advice. Which folder contains the recipe? Which method is used to calculate the checksum?
Please remember to ensure the list is copied.
$ find . -name opkg-util*bb ./meta/recipes-devtools/opkg-utils/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fopkg-utils_0.4.1.bb&c=E,1,pgoYGTCcAU8wXK0B6nO4kfaQ0DHoR1Wm33ibccBmiXhbLi9Yl3vdpRMDqCi6su-3DTVf8nO3wh4lV8cqCKsr69dG6SqrLLR2c_BOTs5D4vU,&typo=1
You're on a different version so the filename won't be the same. For the MD5 sum, use md5sum.
Ross
This electronic message contains information that may be confidential, privileged, proprietary, or subject to the export control laws of the United States, including the Arms Export Control Act (22 U.S.C. 2571 et seq.), the International Traffic in Arms Regulations (22 C.F.R. Part 120 et seq.), and/or the Export Administration Regulations (15 C.F.R. Part 730 et seq.). This information is intended for the use of the addressee only, and if you are not the intended recipient, any disclosure, copying, distribution, printing, or any other use of, the contents of this message is prohibited. Any transfer, retransfer, or disclosure of this data to a Foreign Person without United States Government authorization is also prohibited. If you have received this message in error, please notify the sender and destroy the original message.
Quoted 6 lines · Chad Gong
I re-ran another build of the same configuration. This time there is no fetch error for the file that failed last time. I looks each time I build, I get different fetch error randomly. But this time the failed URL is git shown below, and I cannot even use wget to download it.
ERROR: libnsl2-native-1.2.0+gitAUTOINC+37c5ffe303-r0
do_fetch: Fetcher failure for URL: 'git://github.com/thkukuk/libnsl'. Unable to fetch URL from any source.$ wget git://github.com/thkukuk/libnsl git://github.com/thkukuk/libnsl: Unsupported scheme ‘git’.
Yes, wget is a HTTP fetcher, not a git fetcher.
Look at the log.do_fetch for libnsl2-native (tmp/work/*/libnsl2-native/1.2.0/temp/log.do_fetch. That will tell you what is failing. Maybe you've a firewall that isn't allowing git out?
Ross
Ross,
I opened the log.do_fetch file, and it looks like a file git2_github.com.thkukuk.libnsl.tar.gz was downloaded from the mirror site http://downloads.yoctoproject.org/mirror/sources/git2_github.com.thkukuk.libnsl.tar.gz .Then an error happened with tar, as shown below:
tar -xzf /home/chad/mybuild-coreimageminimal-270-2/downloads/git2_github.com.thkukuk.libnsl.tar.gz failed with exit code 2, output:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Chad Gong
Electrical Engineer
Trijicon, Inc.
| P.O. Box 930059
Wixom, Michigan 48393 US
[email protected] |
-----Original Message-----
From: Burton, Ross <[email protected]>
Sent: Wednesday, July 03, 2019 9:55 AM
To: Chad Gong <[email protected]>
Cc: Yocto-mailing-list <[email protected]>
Subject: Re: [yocto] Poky build errors, help is needed
CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders.
Quoted 6 lines · Chad Gong
I re-ran another build of the same configuration. This time there is no fetch error for the file that failed last time. I looks each time I build, I get different fetch error randomly. But this time the failed URL is git shown below, and I cannot even use wget to download it.
ERROR: libnsl2-native-1.2.0+gitAUTOINC+37c5ffe303-r0
do_fetch: Fetcher failure for URL: 'git://github.com/thkukuk/libnsl'. Unable to fetch URL from any source.$ wget git://github.com/thkukuk/libnsl git://github.com/thkukuk/libnsl: Unsupported scheme ‘git’.
Yes, wget is a HTTP fetcher, not a git fetcher.
Look at the log.do_fetch for libnsl2-native (tmp/work/*/libnsl2-native/1.2.0/temp/log.do_fetch. That will tell you what is failing. Maybe you've a firewall that isn't allowing git out?
Ross
This electronic message contains information that may be confidential, privileged, proprietary, or subject to the export control laws of the United States, including the Arms Export Control Act (22 U.S.C. 2571 et seq.), the International Traffic in Arms Regulations (22 C.F.R. Part 120 et seq.), and/or the Export Administration Regulations (15 C.F.R. Part 730 et seq.). This information is intended for the use of the addressee only, and if you are not the intended recipient, any disclosure, copying, distribution, printing, or any other use of, the contents of this message is prohibited. Any transfer, retransfer, or disclosure of this data to a Foreign Person without United States Government authorization is also prohibited. If you have received this message in error, please notify the sender and destroy the original message.
Quoted 7 lines · Chad Gong
I opened the log.do_fetch file, and it looks like a file git2_github.com.thkukuk.libnsl.tar.gz was downloaded from the mirror site http://downloads.yoctoproject.org/mirror/sources/git2_github.com.thkukuk.libnsl.tar.gz .Then an error happened with tar, as shown below:
tar -xzf
/home/chad/mybuild-coreimageminimal-270-2/downloads/git2_github.com.thkukuk.libnsl.tar.gzfailed with exit code 2, output:gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
$ wget http://downloads.yoctoproject.org/mirror/sources/git2_github.com.thkukuk.libnsl.tar.gz ... $ file git2_github.com.thkukuk.libnsl.tar.gz git2_github.com.thkukuk.libnsl.tar.gz: gzip compressed data, last modified: Tue Jul 31 07:59:20 2018, from Unix $ tar ztvf git2_github.com.thkukuk.libnsl.tar.gz drwxr-xr-x pokybuild/users 0 2018-07-31 08:46 ./ -rw-r--r-- pokybuild/users 955 2018-07-31 08:46 ./packed-refs drwxr-xr-x pokybuild/users 0 2018-07-31 08:46 ./objects/
Can you see what happened to your local file? Still looks like you've got network issues.
Oh, and you can share DL_DIR between builds, so I'd move it out of your build directory.
Ross
Hi Chad,
why are you checking out such an old version? As the tutorial said, try:
git checkout tags/yocto-2.7 -b my-yocto-2.7
Probably some URLs are no longer available.
Gabriele
Il giorno mar 2 lug 2019 alle ore 14:53 Chad Gong <[email protected]> ha scritto:
Quoted 66 lines
Hi,
I am new to Yocto project and try to build my first yocto project by following instructions on
https://www.yoctoproject.org/docs/current/brief-yoctoprojectqs/brief-yoctoprojectqs.html.
I checked out branch yocto-2.5.3, and tried to build targets, such as core-image-minimal, meta-toolchain, but always get some fetch errors or checksum errors, such as:ERROR: libmpc-native-1.1.0-r0
do_fetch: Checksum failure fetching
https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gzWARNING: quilt-native-0.65-r0
do_fetch: Failed to fetch URL
http://download.savannah.gnu.org/releases/quilt/quilt-0.65.tar.gz,
attempting MIRRORS if availableWARNING: m4-native-1.4.18-r0
do_fetch: Failed to fetch URL
http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz, attempting MIRRORS if availableI am running Ubuntu 18.04 virtual box on Windows 7.
Chad Gong
Electrical Engineer
Trijicon, Inc.
| P.O. Box 930059
Wixom, Michigan 48393 US
------------------------------
This electronic message contains information that may be confidential, privileged, proprietary, or subject to the export control laws of the United States, including the Arms Export Control Act (22 U.S.C. 2571 et seq.), the International Traffic in Arms Regulations (22 C.F.R. Part 120 et seq.), and/or the Export Administration Regulations (15 C.F.R. Part 730 et seq.). This information is intended for the use of the addressee only, and if you are not the intended recipient, any disclosure, copying, distribution, printing, or any other use of, the contents of this message is prohibited. Any transfer, retransfer, or disclosure of this data to a Foreign Person without United States Government authorization is also prohibited. If you have received this message in error, please notify the sender and destroy the original message.--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Please, try to check trijicon.com firewall: which services are available, which are not.
Please, read the following:
https://serverfault.com/questions/309052/check-if-port-is-open-or-closed-on-a-linux-server
And also the following:
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
Please, explore and learn about CLI nmap (very powerful) command.
Hope this helps,
Zoran
_______
Quoted 45 lines · Chad Gong
Hi,
I am new to Yocto project and try to build my first yocto project by following instructions on https://www.yoctoproject.org/docs/current/brief-yoctoprojectqs/brief-yoctoprojectqs.html. I checked out branch yocto-2.5.3, and tried to build targets, such as core-image-minimal, meta-toolchain, but always get some fetch errors or checksum errors, such as:
ERROR: libmpc-native-1.1.0-r0
do_fetch: Checksum failure fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gzWARNING: quilt-native-0.65-r0
do_fetch: Failed to fetch URL http://download.savannah.gnu.org/releases/quilt/quilt-0.65.tar.gz, attempting MIRRORS if availableWARNING: m4-native-1.4.18-r0
do_fetch: Failed to fetch URL http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz, attempting MIRRORS if availableI am running Ubuntu 18.04 virtual box on Windows 7.
Chad Gong
Electrical Engineer
Trijicon, Inc.
| P.O. Box 930059
Wixom, Michigan 48393 US
________________________________
This electronic message contains information that may be confidential, privileged, proprietary, or subject to the export control laws of the United States, including the Arms Export Control Act (22 U.S.C. 2571 et seq.), the International Traffic in Arms Regulations (22 C.F.R. Part 120 et seq.), and/or the Export Administration Regulations (15 C.F.R. Part 730 et seq.). This information is intended for the use of the addressee only, and if you are not the intended recipient, any disclosure, copying, distribution, printing, or any other use of, the contents of this message is prohibited. Any transfer, retransfer, or disclosure of this data to a Foreign Person without United States Government authorization is also prohibited. If you have received this message in error, please notify the sender and destroy the original message.--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto