Bug 7934

Summary: Builds failed due to fetcher failure on AB
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mihail Stanciu <stanciux.mihail>
Component: coreAssignee: Ross Burton <ross.burton>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: High CC: meta.mr.watcher, meta.watcher
Version: 1.9   
Target Milestone: 1.9 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 8176    
Attachments:
Description Flags
first build log file
none
second build log file none

Description Mihail Stanciu 2015-06-30 12:06:28 UTC
Created attachment 2570 [details]
first build log file

Found 2 builds failed due to similar errors while testing 1.9 M1 rc1 on our Fedora AB machine. 

Logfiles attached.

Build Configuration:
BB_VERSION        = "1.27.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-20"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.8+snapshot-20150626"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:18e902b2dc17746af453869bcc1fba4dbae7c94f"
meta-qt3          = "master:3016129d90b7ac8517a5227d819f10ad417b5b45"

Log data follows:
| DEBUG: Executing python function do_unpack
| DEBUG: Executing python function base_do_unpack
| DEBUG: Running export PATH="/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/bin/texinfo-dummy-native:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/scripts:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-pokymllib64-linux:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-pokymllib64-linux/crossscripts:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/bin:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/sbin:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/bin:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/scripts:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/bitbake/bin:/home/autobuilder/yocto-autobuilder/bin:/home/autobuilder/yocto-autobuilder/yocto-autobuilder/scripts:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/autobuilder/.local/bin:/home/autobuilder/bin"; export HOME="/home/autobuilder"; git -c core.fsyncobjectfiles=0 clone -s -n /home/autobuilder/yocto-autobuilder/downloads/git2/sourceware.org.git.binutils-gdb.git/ /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/x86_64-pokymllib64-linux/lib64-binutils-cross-x86_64/2.25-r0/git/
| 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: destination path '/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/x86_64-pokymllib64-linux/lib64-binutils-cross-x86_64/2.25-r0/git' already exists and is not an empty directory.
| 
NOTE: recipe lib64-binutils-cross-x86_64-2.25-r0: task do_unpack: Failed
ERROR: Task 1396 (virtual:multilib:lib64:/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-multilib/build/meta/recipes-devtools/binutils/binutils-cross_2.25.bb, do_unpack) failed with exit code '1'
Comment 1 Mihail Stanciu 2015-06-30 12:09:14 UTC
Created attachment 2571 [details]
second build log file

same error as first build, but for "lib32-binutils-cross-i586" instead of "lib64-binutils-cross-x86_64"
Comment 2 Ross Burton 2015-07-02 16:53:19 UTC
From the logs, package_qa runs after fetch and in parallel with unpack.  That shouldn't happen and it's possible that package_qa whilst attempting to run (with no packages...) is creating or touching ${S}, thus breaking unpack.  package_qa doesn't need to run and should be removed in the cross class.

I actually had a fix for this from *February* but somehow neglected to submit it.  It's on the list now, and may fix this sort of thing.
Comment 3 Ross Burton 2015-07-03 09:32:40 UTC
Merged in oe-core 24a6590e85c941a73ea852b91939db8c0835d683.
Comment 4 Mihail Stanciu 2015-08-24 15:15:34 UTC
Verified while testing 1.9 M2 RC2: c75cefe8a382a63f625123c156137782db118f64