Bug 2297

Summary: fotowall parallel make race
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Richard Purdie <richard.purdie>
Component: meta-yoctoAssignee: Andrei Gherzan <andrei>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, scott.a.garman, sgw
Version: 1.2   
Target Milestone: 1.2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Richard Purdie 2012-04-14 11:45:25 UTC
| ccache powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -DNO_WORDCLOUD_APPLIANCE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../sysroots/qemuppc/usr/share/qt4/mkspecs/linux-g++ -I. -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtCore -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtNetwork -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtGui -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtXml -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtSvg -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4 -I. -I3rdparty/posterazor -I.build -I.build -o .build/CanvasViewContent.o Canvas/CanvasViewContent.cpp
| ccache powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -DNO_WORDCLOUD_APPLIANCE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../sysroots/qemuppc/usr/share/qt4/mkspecs/linux-g++ -I. -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtCore -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtNetwork -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtGui -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtXml -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtSvg -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4 -I. -I3rdparty/posterazor -I.build -I.build -o .build/Canvas.o Canvas/Canvas.cpp
| ccache powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -DNO_WORDCLOUD_APPLIANCE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../sysroots/qemuppc/usr/share/qt4/mkspecs/linux-g++ -I. -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtCore -I/home/pokybuild/yocto-autobuilder/yocto-slavERROR: Function failed: do_compile (see /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/work/ppc603e-poky-linux/fotowall-0.9-r2/temp/log.do_compile.30100 for further information)
| e/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtNetwork -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtGui -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtXml -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtSvg -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4 -I. -I3rdparty/posterazor -I.build -I.build -o .build/ContentProperties.o Canvas/ContentProperties.cpp
| ccache powerpc-poky-linux-g++  -m32 -mhard-float  -mcpu=603e --sysroot=/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -DNO_WORDCLOUD_APPLIANCE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../sysroots/qemuppc/usr/share/qt4/mkspecs/linux-g++ -I. -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtCore -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtNetwork -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtGui -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtXml -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4/QtSvg -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/sysroots/qemuppc/usr/include/qt4 -I. -I3rdparty/posterazor -I.build -I.build -o .build/CornerItem.o Canvas/CornerItem.cpp
| In file included from App/ExportWizard.cpp:25:0:
| 3rdparty/posterazor/wizard.h:31:1: error: expected class-name before '{' token
| make: *** [.build/ExportWizard.o] Error 1
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
NOTE: package fotowall-0.9-r2: task do_compile: Failed
ERROR: Task 1984 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/meta/recipes-qt/qt-apps/fotowall_0.9.bb, do_compile) failed with exit code '1'

App/ExportWizard.cpp depends on wizard.h which depends on ui_wizard.h which is auto generated. The dependency on ui_wizard.h is not expressed in the generated makefile.
Comment 1 Andrei Gherzan 2012-04-25 21:37:11 UTC
RP, i just cannot reproduce this on master. Could you please give me more info about this?
Comment 2 Richard Purdie 2012-04-26 09:45:47 UTC
This error occurred on the autobuilder and is triggered when there are high values of PARALLEL_MAKE. I got as far with debugging it as spotting the missing dependency in the makefile but couldn't figure out how to add the needed dependency.
Comment 3 Andrei Gherzan 2012-04-26 10:43:42 UTC
High values meaning more than 4? Cause at 4 nothing happens.
Comment 4 Richard Purdie 2012-04-26 11:10:12 UTC
I think the autobuilder sets something like 12 or 16.
Comment 5 Richard Purdie 2012-04-26 11:36:35 UTC
An easy way to reproduce:

Load into a devshell, "make clean", "make .build/ExportWizard.o". This fails here, due to the dependency issue.
Comment 6 Andrei Gherzan 2012-05-06 14:13:02 UTC
Bug fixed. Patch will be available soon.
Comment 7 Andrei Gherzan 2012-05-07 11:27:48 UTC
Fix:
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-May/022078.html

Please test this fix on the autobuilder.

@g