<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5884</bug_id>
          
          <creation_ts>2014-02-26 14:47:51 +0000</creation_ts>
          <short_desc>Python3 fails to compile intermittently</short_desc>
          <delta_ts>2014-07-31 09:59:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.5.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40701</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-02-26 14:47:51 +0000</bug_when>
    <thetext>Python3 seems to be failing intermittently on the autobuilder - some kind of race condition?


| i586-poky-linux-gcc  -m32 -march=i586 -DNDEBUG -fno-inline --sysroot=/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86 -c -Wno-unused-result -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types  -O2 -pipe -g -feliminate-unused-debug-types   -I. -IInclude -I./Include   -fPIC -DPy_BUILD_CORE -o Python/getargs.o Python/getargs.c
| In file included from Python/bltinmodule.c:10:0:
| Include/ast.h:7:1: warning: parameter names (without types) in function declaration [enabled by default]
|  PyAPI_FUNC(int) PyAST_Validate(mod_ty);
|  ^
| In file included from Include/Python.h:50:0,
|                  from Python/bltinmodule.c:3:
| Include/ast.h:8:12: error: unknown type name &apos;mod_ty&apos;
|  PyAPI_FUNC(mod_ty) PyAST_FromNode(
|             ^
| Include/pyport.h:777:34: note: in definition of macro &apos;PyAPI_FUNC&apos;
|  #       define PyAPI_FUNC(RTYPE) RTYPE
|                                   ^
| Python/bltinmodule.c: In function &apos;builtin_compile&apos;:
| Python/bltinmodule.c:641:13: error: unknown type name &apos;mod_ty&apos;
|              mod_ty mod;
|              ^
| Python/bltinmodule.c:647:21: warning: comparison between pointer and integer [enabled by default]
|              if (mod == NULL) {
|                      ^
| Python/bltinmodule.c:656:49: warning: passing argument 1 of &apos;PyAST_CompileEx&apos; makes pointer from integer without a cast [enabled by default]
|                                                  &amp;cf, optimize, arena);
|                                                  ^
| In file included from Include/Python.h:122:0,
|                  from Python/bltinmodule.c:3:
| Include/compile.h:33:28: note: expected &apos;struct _mod *&apos; but argument is of type &apos;int&apos;
|  PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(
|                             ^
| i586-poky-linux-gcc  -m32 -march=i586 -DNDEBUG -fno-inline --sysroot=/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86 -c -Wno-unused-result -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types  -O2 -pipe -g -feliminate-unused-debug-types   -I. -IInclude -I./Include   -fPIC -DPy_BUILD_CORE -o Python/getcompiler.o Python/getcompiler.c
| make: *** [Python/bltinmodule.o] Error 1
| make: *** Waiting for unfinished jobs....
| i586-poky-linux-gcc  -m32 -march=i586 -DNDEBUG -fno-inline --sysroot=/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86 -c -Wno-unused-result -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types  -O2 -pipe -g -feliminate-unused-debug-types   -I. -IInclude -I./Include   -fPIC -DPy_BUILD_CORE -o Parser/printgrammar.o Parser/printgrammar.c
| i586-poky-linux-gcc  -m32 -march=i586 -DNDEBUG -fno-inline --sysroot=/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86 -c -Wno-unused-result -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types  -O2 -pipe -g -feliminate-unused-debug-types   -I. -IInclude -I./Include   -fPIC -DPy_BUILD_CORE -o Parser/parsetok_pgen.o Parser/parsetok_pgen.c
| i586-poky-linux-gcc  -m32 -march=i586 -DNDEBUG -fno-inline --sysroot=/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86 -c -Wno-unused-result -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types  -O2 -pipe -g -feliminate-unused-debug-types   -I. -IInclude -I./Include   -fPIC -DPy_BUILD_CORE -o Parser/pgenmain.o Parser/pgenmain.c
| i586-poky-linux-gcc  -m32 -march=i586 -DNDEBUG -fno-inline --sysroot=/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86 -O2 -pipe -g -feliminate-unused-debug-types -L. -L/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86/usr/lib -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects/obmalloc.o Python/dynamic_annotations.o Python/mysnprintf.o Python/pyctype.o Parser/tokenizer_pgen.o Parser/printgrammar.o Parser/parsetok_pgen.o Parser/pgenmain.o -lpthread -ldl  -lpthread -lutil -o Parser/pgen
| make[1]: Leaving directory `/home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/python3/3.3.3-r0.0/Python-3.3.3&apos;
| /home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/python3-native/pgen ./Grammar/Grammar Include/graminit.h Python/graminit.c
| ERROR: oe_runmake failed
| WARNING: /home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/python3/3.3.3-r0.0/temp/run.do_compile.31892:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder-dev/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/python3/3.3.3-r0.0/temp/log.do_compile.31892)
NOTE: recipe python3-3.3.3-r0.0: task do_compile: Failed


Original log:
http://autobuilder.yoctoproject.org/main/builders/nightly-world/builds/52/steps/BuildImages/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40715</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-02-26 20:53:26 +0000</bug_when>
    <thetext>I have sent a patch for review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42626</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-04-13 20:37:13 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8a33c5dd3be1a0f1697cf27291947bc91550050e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44849</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-07-31 09:59:17 +0000</bug_when>
    <thetext>the issue has been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>