Bug 784

Summary: perl-native compilation failure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mark Hatle <mark.hatle>
Component: devtools / tool chainAssignee: Nitin Kamble <nitin.a.kamble>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: meta.mr.watcher, meta.watcher, sgw
Version: 1.0-alpha   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Compile log for failed compile none

Description Mark Hatle 2011-02-28 12:17:23 UTC
Created attachment 98 [details]
Compile log for failed compile

When compiling perl-native, I received the a compilation failure.  My system configuration included:

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"

My host system is Fedora 14 (Laughlin)

The do_compile log is attached.

The actual error is:

make[1]: Entering directory `/home/mhatle/git/poky/build-beagleboard/tmp/work/x86_64-linux/perl-native-5.12.2-r6/perl-5.12.2/ext/FileCache'
File/Path.pm did not return a true value at ../../lib/AutoSplit.pm line 6.
BEGIN failed--compilation aborted at ../../lib/AutoSplit.pm line 6.
Compilation failed in require at ../../lib/ExtUtils/Install.pm line 6.
BEGIN failed--compilation aborted at ../../lib/ExtUtils/Install.pm line 6.
Compilation failed in require.
BEGIN failed--compilation aborted.
make[1]: *** [pm_to_blib] Error 255
make[1]: Leaving directory `/home/mhatle/git/poky/build-beagleboard/tmp/work/x86_64-linux/perl-native-5.12.2-r6/perl-5.12.2/ext/FileCache'
Unsuccessful make(ext/FileCache): code=512 at make_ext.pl line 449.
make: *** [ext/FileCache/pm_to_blib] Error 25
make: *** Waiting for unfinished jobs....
Comment 1 Mark Hatle 2011-02-28 12:54:55 UTC
I re-ran the bitbake command and it succeeded the second time.  So this is likely a transient issue with parallel make.
Comment 2 Nitin Kamble 2011-02-28 16:11:52 UTC
Mark, which tree/commit is this. I pushed some commits from perl up-stream tree to fix the parallel build last week. Just want to make sure are you building with those or not.

Nitin
Comment 3 Mark Hatle 2011-02-28 20:28:45 UTC
Master checkout as of this morning
Comment 4 Nitin Kamble 2011-03-10 15:35:41 UTC
found couple of perl patches which suppose to fix this issue. Working on re-basing the patches to our recipe.

Nitin
Comment 5 Nitin Kamble 2011-03-11 10:16:07 UTC
sent a fix for this to the poky & oe mailing list.
Comment 6 Nitin Kamble 2011-03-14 15:35:59 UTC
Closed with this commit. please try to reproduce again.

commit a33a2cc024f9c9147c92c5da70d8fbb631b968f9
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Fri Mar 11 10:08:01 2011 -0800

    perl: another set of parallel build fixes
    
    [YOCTO #784]
    
    Imported more commits from the perl upstream tree
    
    (From OE-Core rev: c3b74b0c3833541ab5e89a7f9597f1ef8a413a70)
    
    Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>