Bug 11116

Summary: [meta-mingw] nativesdk-mingw-w64-runtime_3.1.0.bb fails in do_compile on the AB
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Joshua Lock <joshuagloe>
Component: layersAssignee: Juro Bystricky <juro.bystricky>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher
Version: 2.3   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
compilation log none

Description Joshua Lock 2017-03-02 10:52:14 UTC
The autobuilder is running a meta-mingw SDK build with:

SDKMACHINE ?= "i686-mingw32"
bitbake -k core-image-minimal -c populate_sdk

Which fails in nativesdk-mingw-w64-runtime-3.1.0-r0:do_compile as below

ERROR: nativesdk-mingw-w64-runtime-3.1.0-r0 do_compile: oe_runmake failed
ERROR: nativesdk-mingw-w64-runtime-3.1.0-r0 do_compile: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-mingw-w64-runtime/3.1.0-r0/temp/log.do_compile.18998)
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-mingw-w64-runtime/3.1.0-r0/temp/log.do_compile.18998
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common', 'common-mingw', 'i686-mingw32', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 28
| ERROR: oe_runmake failed
| echo "static int __attribute__((unused)) __mingw_libm_dummy;" > _libm_dummy.c
| make  all-am
| make[1]: Entering directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-mingw-w64-runtime/3.1.0-r0/build'
| i686-pokysdk-mingw32-gcc -E --sysroot=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-mingw-w64-runtime/3.1.0-r0/recipe-sysroot  -x c ../mingw-w64-v3.1.0/mingw-w64-crt/lib32/msvcrt.def.in -Wp,-w -I../mingw-w64-v3.1.0/mingw-w64-crt/def-include | /bin/sed 's/^#/;/' >lib32/msvcrt.def
| /bin/bash: lib32/msvcrt.def: No such file or directory
| Makefile:33851: recipe for target 'lib32/msvcrt.def' failed
| make[1]: *** [lib32/msvcrt.def] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-mingw-w64-runtime/3.1.0-r0/build'
| Makefile:5318: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-mingw-w64-runtime/3.1.0-r0/temp/log.do_compile.18998)
NOTE: recipe nativesdk-mingw-w64-runtime-3.1.0-r0: task do_compile: Failed
ERROR: Task (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta-mingw/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb:do_compile) failed with exit code '1'
Comment 1 Juro Bystricky 2017-03-02 20:38:48 UTC
I just did a fresh pull of poky/master and meta-zephyr.
With local.conf:
SDKMACHINE ?= "i686-mingw32"
I got a clean build:

Build Configuration:
BB_VERSION        = "1.33.2"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-14.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2+snapshot-20170302"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "master:ea2fd77ba5c5482dac4682381d82a76cc30391fa"
meta-mingw        = "master:2a3ae35de9c846354a07ac1a2db51382cd290c02"

Initialising tasks: 100% |###############################################################################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1973 tasks of which 10 didn't need to be rerun and all succeeded.



Can you please provide more info regarding the failed build so I can try to reproduce it?
Comment 2 Joshua Lock 2017-03-02 21:37:55 UTC
Created attachment 3641 [details]
compilation log

Apologies, I meant to add more info and got distracted.

Build was on debian-testing, you can see output here:

https://autobuilder.yocto.io/builders/nightly-qa-extras/builds/170/steps/BuildImages_3/logs/stdio

Compilation log attached. 

I have a tarball of the full nativesdk-mingw-w64-runtime directory from the failed build if there's anything else you would like me to provide.
Comment 3 Juro Bystricky 2017-03-03 00:41:34 UTC
Well, I repeated the build (using a Ubuntu 14 container), with settings same as those that failed on AB:
Build Configuration:
BB_VERSION        = "1.33.2"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-14.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2+snapshot-20170302"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "HEAD:9e9b7d1f4eb05548c5347717362431db386bc8dc"
meta-mingw        = "master:2a3ae35de9c846354a07ac1a2db51382cd290c02"

Initialising tasks: 100% |###############################################################################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1973 tasks of which 10 didn't need to be rerun and all succeeded.


I did a clean build, wiping sstate & tmp.
Is this build ran on regular base on AB?
Please keep the tarball for a while, it may come in handy.
I will try to run the build in a debian container next week.
Comment 4 Joshua Lock 2017-03-03 09:51:14 UTC
(In reply to comment #3)
> I did a clean build, wiping sstate & tmp.
> Is this build ran on regular base on AB?

It is now, yes. It's part of the nightly-qa-extras which is triggered every time a "nightly" build is run.

> Please keep the tarball for a while, it may come in handy.

Will do.

> I will try to run the build in a debian container next week.

Interesting, I wonder if it's specific to debian-testing.
Comment 5 Stephen K Jolley 2017-03-17 17:28:38 UTC
It appears the question has been answered.
Comment 6 Juro Bystricky 2017-03-17 17:53:44 UTC
I ran the build many times but I cannot reproduce the problem.
I don't want to close the bug as WORKSFORME, but I don't think the bug warrants medium+ importance. (I assume here the bug was not observed in AB again)

BTW, the attached log file is "run.do_compile" instead of the more useful "log.do_compile". But I guess the gist of compile log is in this bug report.
Comment 7 Juro Bystricky 2017-03-23 15:33:03 UTC
Cannot reproduce, tried numerous times, so closing as WORKSFORME
We can re-open if we run into this again.