<?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>6569</bug_id>
          
          <creation_ts>2014-07-23 11:23:05 +0000</creation_ts>
          <short_desc>perl: rebuild failed while ${CC} changed</short_desc>
          <delta_ts>2014-07-29 09:41:14 +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>core</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44642</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-07-23 11:23:05 +0000</bug_when>
    <thetext>Reproduce steps:

1) bitbake perl

2) vim local.conf to tweak CC, just add redundant option.
...
CC_append = &quot; ${HOST_CC_ARCH}&quot;
...

3) bitbake perl
...
./miniperl -Ilib make_ext.pl lib/auto/Time/HiRes/HiRes.so MAKE=make LIBPERL_A=libperl.so LINKTYPE=dynamic
    Making Time::HiRes (all)my $filename=
Deleting non-Cross makefile
Running Makefile.PL in cpan/Time-HiRes
Makefile.PL: The &quot;xdefine&quot; exists, skipping the configure step.
(&quot;tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl5.20.0.real Makefile.PL --configure&quot; to force the configure step)
Warning: No Makefile!
make[2]: Entering directory `tmp/work/armv5te-poky-linux-gnueabi/perl/5.20.0-r1/perl-5.20.0/cpan/Time-HiRes&apos;
make[2]: *** No rule to make target `config&apos;.  Stop.
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44643</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-07-23 11:23:49 +0000</bug_when>
    <thetext>While ${CC} changed, the existance of &apos;xdefine&apos; caused makefile
regeneration failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44801</commentid>
    <comment_count>2</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-07-29 09:41:14 +0000</bug_when>
    <thetext>Merged into master:

commit 30ef7b2c054c2712865e6593b948c4d89f9b6309
Author: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
Date:   Thu Jul 24 09:57:17 2014 +0800

    perl: fix rebuid failed while ${CC} changed
    
    Reproduce steps:
    
    1) bitbake perl
    2) vim local.conf to tweak CC, just add redundant option.
    ...
    CC_append = &quot; ${HOST_CC_ARCH}&quot;
    ...
    
    3) bitbake perl
    ...
    ./miniperl -Ilib make_ext.pl lib/auto/Time/HiRes/HiRes.so MAKE=make LIBPERL_A=libperl.so LINKTYPE=dynamic
        Making Time::HiRes (all)my $filename=
    Deleting non-Cross makefile
    Running Makefile.PL in cpan/Time-HiRes
    Makefile.PL: The &quot;xdefine&quot; exists, skipping the configure step.
    (&quot;tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl5.20.0.real Makefile.PL --configure&quot; to force the configure step)
    Warning: No Makefile!
    make[2]: Entering directory `tmp/work/armv5te-poky-linux-gnueabi/perl/5.20.0-r1/perl-5.20.0/cpan/Time-HiRes&apos;
    make[2]: *** No rule to make target `config&apos;.  Stop.
    ...
    
    While ${CC} changed, the existance of &apos;xdefine&apos; caused makefile
    regeneration failed.
    
    [YOCTO #6569]
    
    (From OE-Core rev: fa43d4f268bc4a6fafcf14029049f2997bc72d6c)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>