Bug 5500

Summary: python is failing to build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nitin Kamble <nitin.a.kamble>
Component: devtools / tool chainAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Low CC: dvhart, meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: unspecified   
Target Milestone: 1.6   
Hardware: x86   
OS: Multiple   
Whiteboard: autobuilder
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Nitin Kamble 2013-11-07 01:32:57 UTC
| i586-poky-linux-gcc  -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/srv/home/nitin/build-test-bsps/build-common/tmp/sysroots/genericx86 -O2 -pipe -g -feliminate-unused-debug-types -L. -L/srv/home/nitin/build-test-bsps/build-common/tmp/sysroots/crownbay/usr/lib  Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects/obmalloc.o Python/mysnprintf.o Python/pyctype.o Parser/tokenizer_pgen.o Parser/printgrammar.o Parser/pgenmain.o -lpthread -ldl  -lpthread -lutil -o Parser/pgen
| /srv/home/nitin/build-test-bsps/build-common/tmp/sysroots/x86_64-linux/usr/libexec/core2-poky-linux/gcc/i586-poky-linux/4.8.1/ld: cannot find /usr/lib/libpthread_nonshared.a
| collect2: error: ld returned 1 exit status
| make: *** [Parser/pgen] Error 1
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
| WARNING: /srv/home/nitin/build-test-bsps/build-common/tmp/work/core2-poky-linux/python/2.7.3-r0.3/temp/run.do_compile.30147:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /srv/home/nitin/build-test-bsps/build-common/tmp/work/core2-poky-linux/python/2.7.3-r0.3/temp/log.do_compile.30147)
ERROR: Task 1359 (/home/nitin/build-test-bsps/poky.git/meta/recipes-devtools/python/python_2.7.3.bb, do_compile) failed with exit code '1'

Summary: 1 task failed:
  /home/nitin/build-test-bsps/poky.git/meta/recipes-devtools/python/python_2.7.3.bb, do_compile
Comment 1 Nitin Kamble 2013-11-07 01:34:54 UTC
Build Configuration:
BB_VERSION        = "1.21.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "openSUSE-project-12.3"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "crownbay"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20131106"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:d6cc7c8ed76c8b1117cf03c7bd4b0742f98f79b3"
meta-intel.git
meta-crownbay
meta-tlk          = "master:6b424623b709de34f79cbafff959e0a1222878dd"
Comment 2 Richard Purdie 2013-11-07 15:48:42 UTC
Did you switch machines half way through building python?
Comment 3 Richard Purdie 2013-11-07 15:55:50 UTC
Note:

--sysroot=/srv/home/nitin/build-test-bsps/build-common/tmp/sysroots/genericx86

and yet you say MACHINE=crownbay
Comment 4 Darren Hart 2013-11-07 15:58:04 UTC
Nitin,

Is this something you can reproduce? Did you perhaps kill a build part way through configuring python and then change the MACHINE from genericx86 to crownbay - we noticed both MACHINEs in the message.
Comment 5 Nitin Kamble 2013-11-07 19:31:49 UTC
I just double checked here, that the Log is for the correct machine. 

I did not changed the machine in between. I am building multiple BSPs in a common build directory though. I am finding that all the 32bit Intel BSPs are failing like this. While all the 64bit Intel BSPs are building fine. And the 32bit qemux86 built fine.

Failed BSPs: genericx86, crownbay, emenlow, fri2, sys940x, crownbay-noemgd, emenlow-noemgd, fri2-noemgd, sys940x-noemgd 

Succedded BSPs: genericx86-64, sugarbay, nuc, chiefriver, jasperforest
Comment 6 Saul Wold 2013-11-13 17:26:44 UTC
Is this reproducible in a clean tmp / build dir?
Comment 7 Nitin Kamble 2013-11-13 17:48:49 UTC
This issue is not happening with the newer poky commit: 4fdc3d77d4a875b7236536bf78849a4d1f6a7449