7 Replies Latest reply on Mar 23, 2015 4:59 AM by M_Sherlock

    Errors in bitbake Quark v1.1

    M_Sherlock

      Hi

      I’m going through the BSP for the Quark v1.1.
      The Errors are in Building the Kernal Using Yocto Project.
      I am Running CentOS release 6.4 (Final)



      ./setup.sh and source ./iot-devkit-init-build-env yocto_build works fine
      but the Bitbake image-full produces errors of do_fetch


      Summary: 32 tasks failed:
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/quilt/quilt-native_0.61.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/m4/m4-native_1.4.17.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/zlib/zlib_1.2.8.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/mpfr/mpfr_3.1.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/gmp/gmp_5.1.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/pkgconfig/pkgconfig_0.28.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/flex/flex_2.5.38.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/automake/automake_1.14.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/elfutils/elfutils_0.155.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/pseudo/pseudo_1.5.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/sqlite/sqlite3_3.8.3.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/libmpc/libmpc_1.0.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/gettext/gettext_0.18.3.2.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/eglibc/eglibc-initial_2.19.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/kconfig-frontends/kconfig-frontends_3.12.0.0.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/bison/bison_2.7.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/pigz/pigz_2.3.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-kernel/cryptodev/cryptodev-linux_1.6.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/bzip2/bzip2_1.0.6.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/binutils/binutils-cross_2.24.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/xz/xz_5.1.3alpha.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-connectivity/openssl/openssl_1.0.1g.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/gperf/gperf_3.0.4.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.14.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/ncurses/ncurses_5.9.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/autoconf/autoconf_2.69.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/eglibc/eglibc_2.19.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/gcc/gcc-cross-initial_4.8.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/file/file_5.16.bb, do_fetch
      Summary: There were 33 WARNING messages shown.
      Summary: There were 64 ERROF

      Waiting for 29 running tasks to finish:
      0: libtool-native-2.4.2-r6.1 do_fetch (pid 129287)
      1: automake-native-1.14-r0 do_fetch (pid 129286)
      2: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      3: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      4: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      5: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Task 1999 (/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/m4/m4-native_1.4.17.bb, do_fetch) failed with exit code '1'
      Waiting for 29 running tasks to finish:
      0: libtool-native-2.4.2-r6.1 do_fetch (pid 129287)
      1: automake-native-1.14-r0 do_fetch (pid 129286)
      2: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      3: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      4: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      5: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Fetcher failure: Fetch command failed with exit code 4, no output
      Waiting for 29 running tasks to finish:
      0: libtool-native-2.4.2-r6.1 do_fetch (pid 129287)
      1: automake-native-1.14-r0 do_fetch (pid 129286)
      2: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      3: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      4: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      5: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Function failed: Fetcher failure for URL: 'ftp://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz'. Unable to fetch URL from any source.
      Waiting for 29 running tasks to finish:
      0: libtool-native-2.4.2-r6.1 do_fetch (pid 129287)
      1: automake-native-1.14-r0 do_fetch (pid 129286)
      2: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      3: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      4: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      5: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Logfile of failure stored in: /home/mark/meta-clanton_v1.1.0-dirty/yocto_build/tmp/work/x86_64-linux/libtool-native/2.4.2-r6.1/temp/log.do_fetch.129287
      Waiting for 28 running tasks to finish:
      0: automake-native-1.14-r0 do_fetch (pid 129286)
      1: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      2: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      3: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      4: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Task 827 (/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb, do_fetch) failed with exit code '1'
      Waiting for 28 running tasks to finish:
      0: automake-native-1.14-r0 do_fetch (pid 129286)
      1: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      2: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      3: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      4: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      WARNING: Failed to fetch URL https://fedorahosted.org/releases/e/l/elfutils/0.155/elfutils-0.155.tar.bz2, attempting MIRRORS if available
      Waiting for 28 running tasks to finish:
      0: automake-native-1.14-r0 do_fetch (pid 129286)
      1: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      2: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      3: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      4: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Fetcher failure: Fetch command failed with exit code 4, no output
      Waiting for 28 running tasks to finish:
      0: automake-native-1.14-r0 do_fetch (pid 129286)
      1: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      2: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      3: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      4: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Function failed: Fetcher failure for URL: 'http://www.zlib.net/zlib-1.2.8.tar.xz'. Unable to fetch URL from any source.
      Waiting for 28 running tasks to finish:
      0: automake-native-1.14-r0 do_fetch (pid 129286)
      1: zlib-native-1.2.8-r0 do_fetch (pid 129291)
      2: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      3: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      4: mpfr-native-3.1.2-r0 do_fetch (pid 129293)
      ERROR: Logfile of failure stored in: /home/mark/meta-clanton_v1.1.0-dirty/yocto_build/tmp/work/x86_64-linux/zlib-native/1.2.8-r0/temp/log.do_fetch.129291
      Waiting for 27 running tasks to finish:
      0: automake-native-1.14-r0 do_fetch (pid 129286)
      1: gmp-native-5.1.1-r0 do_fetch (pid 129289)
      2: pkgconfig-native-0.28-r0 do_fetch (pid 129290)
      3: mpfr-native-3.1.2-r0 do_fetch (pid 129293)



      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/bzip2/bzip2_1.0.6.bb, do_fetch /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/binutils/binutils-cross_2.24.bb, do_fetch /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb, do_fetch virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/xz/xz_5.1.3alpha.bb, do_fetch virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-connectivity/openssl/openssl_1.0.1g.bb, do_fetch virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/gperf/gperf_3.0.4.bb, do_fetch /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.14.bb, do_fetch virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/ncurses/ncurses_5.9.bb, do_fetch virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/autoconf/autoconf_2.69.bb, do_fetch /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/eglibc/eglibc_2.19.bb, do_fetch /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/gcc/gcc-cross-initial_4.8.bb, do_fetch virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/file/file_5.16.bb, do_fetch Summary: There were 33 WARNING messages shown. Summary: There were 64 ERROR messages shown, returning a non-zero exit code

       

       


      Summary: 32 tasks failed:
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/quilt/quilt-native_0.61.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/m4/m4-native_1.4.17.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/zlib/zlib_1.2.8.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/mpfr/mpfr_3.1.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/gmp/gmp_5.1.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/pkgconfig/pkgconfig_0.28.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/flex/flex_2.5.38.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/automake/automake_1.14.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/elfutils/elfutils_0.155.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/pseudo/pseudo_1.5.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/sqlite/sqlite3_3.8.3.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-support/libmpc/libmpc_1.0.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/gettext/gettext_0.18.3.2.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/eglibc/eglibc-initial_2.19.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/kconfig-frontends/kconfig-frontends_3.12.0.0.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/bison/bison_2.7.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/pigz/pigz_2.3.1.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-kernel/cryptodev/cryptodev-linux_1.6.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/bzip2/bzip2_1.0.6.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/binutils/binutils-cross_2.24.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/xz/xz_5.1.3alpha.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-connectivity/openssl/openssl_1.0.1g.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-extended/gperf/gperf_3.0.4.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.14.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/ncurses/ncurses_5.9.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/autoconf/autoconf_2.69.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-core/eglibc/eglibc_2.19.bb, do_fetch
      /home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/gcc/gcc-cross-initial_4.8.bb, do_fetch
      virtual:native:/home/mark/meta-clanton_v1.1.0-dirty/meta/recipes-devtools/file/file_5.16.bb, do_fetch
      Summary: There were 33 WARNING messages shown.
      Summary: There were 64 ERROR messages shown, returning a non-zero exit code


      I am working behind a proxy and GIT has worked up to this point so i feel GIT isn't the issue

      Git is set up and think working correctly using socat

      https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy

      #!/bin/bash

      # $1 = hostname, $2 = port

      PROXY=myproxy.example.com

      exec socat STDIO SOCKS4:$PROXY:$1:$2

       

       


      Any Ideas?

        • 1. Re: Errors in bitbake Quark v1.1
          JPMontero_Intel

          Hi M_Sherlock,

           

          Since all of the errors are while trying to fetch the files, I’d say it has to be a connection issue. Also it can be due to the firewall, have you checked this already? Another thing you can try is to use git manually on one file to see if it works correctly, and then you can try with the files that failed. Also check the locations that failed with your browser to look for broken links but I’d say the problem could be with a firewall.

           

          Regards,
          JPMontero_Intel

          • 2. Re: Errors in bitbake Quark v1.1
            M_Sherlock

            im getting

            $ git fetch http://downloads.yoctoproject.org/releases/eglibc/eglibc-2.19-svnr25243.tar.bz2

            error: Empty reply from server while accessing http://downloads.yoctoproject.org/releases/eglibc/eglibc-2.19-svnr25243.tar.bz2/info/refs?service=git-upload-pack

            fatal: HTTP request failed

            i thought my GIT proxy was set correctly and done two ways to see if it was the issue

            bash-3.00$ more gitproxy

            #!/bin/sh

            exec socat stdio SOCKS:proxy.com:$1:$2

             

            then…

             

            GIT_PROXY_COMMAND=/your_pathname/gitproxy

             

             

            and i have

            export GIT_PROXY_COMMAND=$HOME/git-proxy-wrapper

            in .bashrc

             

            with git-proxy-wrapper being

            !/bin/bash

            #

            #Use socat to proxy git through a SOCKS proxy.

            #to access git repositories outside intel

            #

            #Configuration.

            _proxy=proxy.com

            _proxyport=1080

            exec socat STDIO SOCKS4:$_proxy:$1:$2,socksport=$_proxyport

             

             

            have i it set up wrong or is it over kill with having 2

            • 3. Re: Errors in bitbake Quark v1.1
              JPMontero_Intel

              Hi M_Sherlock

               

              Your configuration looks good, with one of them should work. You can also use configuration methods listed in this site. Have you tried with a fresh new build to see if it fails in the same package? If it fails again, could you provide the full log of the error? Let me know if you need further help on how to build behind a network proxy.

               

              Regards,
              JPMontero_Intel

              • 4. Re: Errors in bitbake Quark v1.1
                M_Sherlock

                The issue was Yocto,

                It wasn't going to work with CentOS since then i have gone to Debian Wheezy since it is listed in the BSP and it wasn't looking good for Debian either.
                I was then show this link https://wiki.yoctoproject.org/wiki/Distribution_Support

                 

                Since then I have moved to Ferdora and am just getting going on the BSP

                 

                Regards

                Mark

                • 5. Re: Errors in bitbake Quark v1.1
                  JPMontero_Intel

                  The Distribution support you attached is for Yocto 1.4 version but the one you are trying to build is Yocto 1.6, check this document for the corresponding Supported Linux Distributions.  But if you take a look at the BSP guide for the sources you are using  you’ll see that this release has been tested with Debian 7.0 64-bit. Additionally I’ve just build this version successfully by following the steps of this guide on CentOS 7 64-bit with the Development and Creative Workstation environment. I’d suggest you to stick with the validated versions but it might work on other distributions as well.

                   

                  Regards,
                  JPMontero_Intel

                  • 6. Re: Errors in bitbake Quark v1.1
                    JPMontero_Intel

                    Regarding your issue by using a proxy while building the image, maybe you can give it a try to the graphic user interface for Bitbake since it is really simple to configure. In case you want to test it follow these steps:

                     

                    1. Make sure you have installed all the dependencies indicated in the BSP guide.
                    2. Extract the content of meta-clanton_v1.1.0-dirty and get into the extracted directory.
                    3. Execute the setup.sh script.
                    4. Instead of using bitbake <target> type bitbake –u hob. This will display hob, the graphic interface and it looks like the image below.Hob1.png
                    5. Select a machine for the build, in this case you should select quark and you can add the layers to the build on the layer button.
                    6. Then you can select which image recipe to build, to change the image type and format in the Advance configuration button.Hob2.png
                    7. To set the proxy for the build click on the Settings tab in the upper right of the window. This will display the window below.Hob3.png
                    8. Click on the network tab and fill out the manual proxy configuration. In the setting window you can also set the number of BitBake and Make parallel threads (Build environment tab). Hob4.png
                    9. On the lower right side of the window you’ll see two buttons, on the Edit image button you can see all included recipes and select or remove packages from the build. The Build Image button starts the building process.

                     

                    This method is not the one validated in the BSP guide but you can give it a try, I tested it and it worked for me just fine. More information on the hob for Yocto 1.6 can be found here. Note that this BSP is for Quark, if you want to build BSP for the Galileo board I’d suggest you to use these BSP Sources, to follow his guide and these patches instead. I hope it helps and let me know when you are able to build the image successfully.

                     

                    Regards,
                    JPMontero_Intel

                    1 of 1 people found this helpful
                    • 7. Re: Errors in bitbake Quark v1.1
                      M_Sherlock

                      Hi,
                      I was gone too far (new OS and EDK built) to go back and try your method.

                      I got Fedora working without any major issues on BSP 1.1
                      it bitbaked perfectly first time with no errors.

                       

                      Thanks anyway for the advice

                       

                      Regards,
                      Mark