1 2 Previous Next 19 Replies Latest reply on Jun 11, 2014 8:19 AM by MarcIII

    Yocto Clanton full: Build error for x264 package

    Simba

      Hi,

      I am facing a build error while compiling the Yocto clanton package for Galileo. I followed the method described in the sergey's link to enable full build instead of tiny.

       

      Error is there while building x264 package. Any Idea on how to fix this issue.

       

      I built the clanton tiny package, it build fine, It had no issues compiling the x264 package.

       

      I am using Galileo for data acquisition hence multimedia packages are not required.

      I tried disabling this by deleting the "x264_git.bb", but it is required by dependent package opencv.

       

      :~/Galileo/meta-clanton_v1.0.0/yocto_build$ bitbake image-sdk

      Loading cache: 100% |####################################################################################################################################################| ETA:  00:00:00

      Loaded 1616 entries from dependency cache.

       

      Build Configuration:

      BB_VERSION        = "1.18.0"

      BUILD_SYS         = "x86_64-linux"

      NATIVELSBSTRING   = "Ubuntu-12.04"

      TARGET_SYS        = "i586-poky-linux"

      MACHINE           = "clanton"

      DISTRO            = "clanton-full"

      DISTRO_VERSION    = "1.4.2"

      TUNE_FEATURES     = "m32 i586"

      TARGET_FPU        = ""

      meta            

      meta-yocto      

      meta-yocto-bsp    = "clanton:d734ab491a30078d43dee5440c03acce2d251425"

      meta-intel        = "clanton:048def7bae8e3e1a11c91f5071f99bdcf8e6dd16"

      meta-oe           = "clanton:13ae5105ee30410136beeae66ec41ee4a8a2e2b0"

      meta-clanton-distro

      meta-clanton-bsp  = "<unknown>:<unknown>"

       

      NOTE: Resolving any missing task queue dependencies

      NOTE: multiple providers are available for jpeg (jpeg, libjpeg-turbo)

      NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg

      NOTE: multiple providers are available for jpeg-native (jpeg-native, libjpeg-turbo-native)

      NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg-native

      NOTE: Preparing runqueue

      NOTE: Executing SetScene Tasks

      NOTE: Executing RunQueue Tasks

      ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:

      fatal: reference is not a tree: 1cffe9f406cc54f4759fc9eeb85598fb8cae66c7

       

      ERROR: Logfile of failure stored in: /home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/work/i586-poky-linux/x264/r2230+git-r1/temp/log.do_unpack.6326

      Log data follows:

      | DEBUG: Executing python function do_unpack

      | DEBUG: Executing python function base_do_unpack

      | DEBUG: Running export SSH_AGENT_PID="2058"; export SSH_AUTH_SOCK="/tmp/keyring-snuvkI/ssh"; export PATH="/home/vikram/Galileo/meta-clanton_v1.0.0/poky/scripts:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/clanton/usr/bin/crossscripts:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/sbin:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/sbin:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux//bin:/home/vikram/Galileo/meta-clanton_v1.0.0/poky/scripts:/home/vikram/Galileo/meta-clanton_v1.0.0/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"; export HOME="/home/vikram"; git clone -s -n /home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/downloads/git2/git.videolan.org.x264.git/ /home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/work/i586-poky-linux/x264/r2230+git-r1/git/

      | DEBUG: Running export SSH_AGENT_PID="2058"; export SSH_AUTH_SOCK="/tmp/keyring-snuvkI/ssh"; export PATH="/home/vikram/Galileo/meta-clanton_v1.0.0/poky/scripts:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/clanton/usr/bin/crossscripts:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/sbin:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/sbin:/home/vikram/Galileo/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux//bin:/home/vikram/Galileo/meta-clanton_v1.0.0/poky/scripts:/home/vikram/Galileo/meta-clanton_v1.0.0/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"; export HOME="/home/vikram"; git checkout 1cffe9f406cc54f4759fc9eeb85598fb8cae66c7

      | DEBUG: Python function base_do_unpack finished

      | DEBUG: Python function do_unpack finished

      | ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:

      | fatal: reference is not a tree: 1cffe9f406cc54f4759fc9eeb85598fb8cae66c7

      |

      ERROR: Task 4486 (/home/vikram/Galileo/meta-clanton_v1.0.0/meta-oe/meta-oe/recipes-multimedia/x264/x264_git.bb, do_unpack) failed with exit code '1'

      NOTE: Tasks Summary: Attempted 2666 tasks of which 2661 didn't need to be rerun and 1 failed.

      Waiting for 0 running tasks to finish:

       

      Summary: 1 task failed:

        /home/vikram/Galileo/meta-clanton_v1.0.0/meta-oe/meta-oe/recipes-multimedia/x264/x264_git.bb, do_unpack

      Summary: There was 1 ERROR message shown, returning a non-zero exit code.

       

      --Simba

        • 1. Re: Yocto Clanton full: Build error for x264 package
          Intel_Jesus

          Hi Simba,

           

          Sergey's blog has excellent instructions on how to built the image from the Build Support Package. The instructions are using BSP 0.7.5. You are using the BSP 1.0.0. and there might be some different steps/commands. I will try to reproduce your error message. I recommend taking a look at the  Intel® Quark™ BSP Build and Software User Guide.

           

          Regards,

          Intel_Jesus

          • 2. Re: Yocto Clanton full: Build error for x264 package
            dhylands

            I'm seeing the same error using BSP 0.7.5 under both ubuntu 12.04 (running in a vm), ubuntu 14.04 (running native) and Linux Mint 15 (running native)

            • 3. Re: Yocto Clanton full: Build error for x264 package
              dhylands

              Oops - I lied. I just saw that error using BSP 1.0.0 on my 12.04 VM. I'm going to try 0.7.5 now.

              • 4. Re: Yocto Clanton full: Build error for x264 package
                dhylands

                I get the same error on 0.7.5 (fatal: reference is not a tree: 1cffe9f406cc54f4759fc9eeb85598fb8cae66c7) under my 12.04 vm.

                • 5. Re: Yocto Clanton full: Build error for x264 package
                  Intel_Jesus

                  I am currently building the image with Sergey's instructions. So far no errors.

                  Are you using any Proxys?

                   

                  Regards,

                  Intel_Jesus

                  • 6. Re: Re: Yocto Clanton full: Build error for x264 package
                    dhylands

                    It looks like history has been rewritten in the git.videolan.org tree (so the hashes don't match up any more).

                     

                    I was able to find an x264 tree on gitorious which had the 1cffe9 commit in it:

                    Commits in gxk-media/x264:1cffe9f406cc54f4759fc9eeb85598fb8cae66c7 - Gitorious

                     

                    Based on the description, I was able to match that up with hash c6bfcec47c9d1fff0489a30215501babea29f59c in the git.videolan.org tree.

                     

                    So I edited meta-clanton_v0.7.5/meta-oe/meta-oe/recipes-multimedia/x264/x264_git.bb and changed the hash.

                     

                    Here's my patch (relative to meta-clanton_v0.7.5/meta-oe)

                    diff --git a/meta-oe/recipes-multimedia/x264/x264_git.bb b/meta-oe/recipes-multimedia/x264/x264_git.bb
                    index 5222d1d..b1b131a 100644
                    --- a/meta-oe/recipes-multimedia/x264/x264_git.bb
                    +++ b/meta-oe/recipes-multimedia/x264/x264_git.bb
                    @@ -11,7 +11,7 @@ DEPENDS = "yasm-native"
                     SRC_URI = "git://git.videolan.org/x264.git \
                         file://don-t-default-to-cortex-a9-with-neon.patch \
                     "
                    -SRCREV = "1cffe9f406cc54f4759fc9eeb85598fb8cae66c7"
                    +SRCREV = "c6bfcec47c9d1fff0489a30215501babea29f59c"
                     
                     PV = "r2230+git"
                     
                    

                    I'll see how far the build gets now.

                    • 7. Re: Yocto Clanton full: Build error for x264 package
                      Intel_Jesus

                      Hi Simba,

                       

                      I've been doing my research and came to the same conclusion as dhylands. videolan.org tree has changed and the hashes do not match.

                       

                      Regards,

                      Intel_Jesus

                      • 8. Re: Yocto Clanton full: Build error for x264 package
                        Simba

                        Thanks a lot Intel_Jesus, dhylands

                        I will try the patch with new commit, on both v0.7.5 & v1.0.0.

                         

                        Regards

                        Simba

                        • 9. Re: Yocto Clanton full: Build error for x264 package
                          dhylands

                          With the changed hash, both 0.7.5 and 1.0.0 were able to build image-full.

                          • 10. Re: Yocto Clanton full: Build error for x264 package
                            Simba

                            With the new commit for x264, v1.0.0 built fine.

                            • 11. Re: Yocto Clanton full: Build error for x264 package
                              aditya_intel

                              Hi I was getting the same error. I tried changing the hash but still I am getting the error with new hash too. Please help me out.

                               

                               

                               

                               

                               

                              ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:

                              fatal: reference is not a tree: c6bfcec47c9d1fff0489a30215501babea29f59c

                               

                              ERROR: Logfile of failure stored in: /home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/work/i586-poky-linux-uclibc/x264/r2230+git-r1/temp/log.do_unpack.16319

                              Log data follows:

                              | DEBUG: Executing python function do_unpack

                              | DEBUG: Executing python function base_do_unpack

                              | DEBUG: Running export SSH_AGENT_PID="1849"; export SSH_AUTH_SOCK="/tmp/keyring-2ursbc/ssh";

                              export PATH="/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/poky/scripts:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux-uclibc:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/clanton/usr/bin/crossscripts:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/sbin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/sbin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux//bin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/poky/scripts:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin"; export HOME="/home/ubuntu"; git clone -s -n /home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/downloads/git2/git.videolan.org.x264.git/ /home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/work/i586-poky-linux-uclibc/x264/r2230+git-r1/git/

                              | DEBUG: Running export SSH_AGENT_PID="1849"; export SSH_AUTH_SOCK="/tmp/keyring-2ursbc/ssh";  export PATH="/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/poky/scripts:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux-uclibc:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/clanton/usr/bin/crossscripts:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/sbin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/usr/bin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux/sbin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/yocto_build/tmp/sysroots/x86_64-linux//bin:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/poky/scripts:/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin"; export HOME="/home/ubuntu"; git checkout c6bfcec47c9d1fff0489a30215501babea29f59c

                              | DEBUG: Python function base_do_unpack finished

                              | DEBUG: Python function do_unpack finished

                              | ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:

                              | fatal: reference is not a tree: c6bfcec47c9d1fff0489a30215501babea29f59c

                              |

                              ERROR: Task 1880 (/home/ubuntu/Desktop/galileo/FreshStart/Board_Support_Package_Sources_for_Intel_Quark_v1.0.0/meta-clanton_v1.0.0/meta-oe/meta-oe/recipes-multimedia/x264/x264_git.bb, do_unpack) failed with exit code '1'

                              • 12. Re: Yocto Clanton full: Build error for x264 package
                                dhylands

                                Yeah - it seems to have changed yet again. The hash right now is: bfed708c5358a2b4ef65923fb0683cefa9184e6f

                                 

                                This is how I determined the correct hash, for anybody else who comes along:

                                 

                                git log --grep 'Fix possible issues with out-of-spec QP values'

                                • 13. Re: Yocto Clanton full: Build error for x264 package
                                  dhylands

                                  Bah - I missed something:

                                   

                                  git clone git://git.videolan.org/x264.git

                                  cd x264

                                  git log --grep 'Fix possible issues with out-of-spec QP values'

                                  1 of 1 people found this helpful
                                  • 14. Re: Yocto Clanton full: Build error for x264 package
                                    dhylands

                                    I talked with the guys from x264dev on IRC and they were doing some type of tree maintenance, and things have apparently stabilized now, and the bfed708c5358a2b4ef65923fb0683cefa9184e6f should be the correct hash to use moving forward.

                                     

                                    I've been in touch with the folks at openembedded and I'm preparing a patch to get merged into their trees,

                                    1 2 Previous Next