<?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>836</bug_id>
          
          <creation_ts>2011-03-09 21:18:53 +0000</creation_ts>
          <short_desc>perl compilation error when using sstate cache</short_desc>
          <delta_ts>2011-08-29 19:59:27 +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.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Tian">kevin.tian</reporter>
          <assigned_to name="Wenzong.Fan">wenzong.fan</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12430</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2011-03-09 21:18:53 +0000</bug_when>
    <thetext>this is similar to Bug 829 with same error message, but from a different reason:

| ./miniperl -Ilib make_ext.pl cpan/Archive-Extract/pm_to_blib MAKE=make LIBPERL_A=libperl.so
| 	Making Archive::Extract (all)
| 
| Creating Makefile.PL in cpan/Archive-Extract for Archive::Extract
| 
| Running Makefile.PL in cpan/Archive-Extract
| ../../miniperl Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.so
| Writing Makefile for Archive::Extract
| make[2]: Entering directory `/media/builds-0/demo-0309/tmp/work/core2-poky-linux/perl-5.12.2-r2/perl-5.12.2/cpan/Archive-Extract&apos;
| Can&apos;t locate File/Glob.pm in @INC (@INC contains: ../../lib ../../lib ../../cpan/AutoLoader/lib ../../cpan/Cwd ../../cpan/Cwd/lib ../../cpan/ExtUtils-Command/lib ../../dist/ExtUtils-Install/lib ../../cpan/ExtUtils-MakeMaker/lib ../../cpan/ExtUtils-Manifest/lib ../../cpan/File-Path/lib ../../lib /media/builds/master/demo-qemux86-0223/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.2 /media/builds/master/demo-qemux86-0223/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.2 /media/builds/master/demo-qemux86-0223/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.2 .) at ../../cpan/ExtUtils-Command/lib/ExtUtils/Command.pm line 90.
| BEGIN failed--compilation aborted at ../../cpan/ExtUtils-Command/lib/ExtUtils/Command.pm line 90.

miniperl is used which is linked to hostperl which is further linked to sysroot/perl5.12.2. Currently we only provide wrapper to the perl binary, instead of perl5.12.2. Here there&apos;re two potential issues to be solved:

a) perl5.12.2 is actually exactly same as perl. I&apos;m not sure why there&apos;s such a separate binary with version number. Is a symbol link enough? Or else we need a seperate wrapper script for perl5.12.2 too.

b) don&apos;t create hostperl symbol link within perl source directory, which breaks the wrapper script. The wrapper script assumes that the wrapper and the real binary are in same sysroot directory (see &quot;dirname $0&quot; in the wrapper script). However when hostperl is created within perl source directory, the real binary can&apos;t be found then. Actually perl-native already creates a hostperl link in sysroot. So we don&apos;t need another duplication in target perl recipe.

Again you have to remove the build directory which generates sstate packages to expose this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15482</commentid>
    <comment_count>1</comment_count>
    <who name="Wenzong.Fan">wenzong.fan</who>
    <bug_when>2011-08-16 01:36:23 +0000</bug_when>
    <thetext>Currently the perl version is 5.12.3 and this defect can&apos;t be reproduced again on master branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15612</commentid>
    <comment_count>2</comment_count>
    <who name="Wenzong.Fan">wenzong.fan</who>
    <bug_when>2011-08-20 01:58:30 +0000</bug_when>
    <thetext>Can&apos;t be reproduced now, might be fixed after the perl upgraded to 5.12.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15857</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-08-29 19:59:27 +0000</bug_when>
    <thetext>With latest master branch (git info: 6c2b7beac3cd23ed44bd3e195c6360a0932876bf), this issue can&apos;t be reproduced.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>