Bug 6569 - perl: rebuild failed while ${CC} changed
Summary: perl: rebuild failed while ${CC} changed
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.7 M2
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-07-23 11:23 UTC by Hongxu Jia
Modified: 2014-07-29 09:41 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hongxu Jia 2014-07-23 11:23:05 UTC
Reproduce steps:

1) bitbake perl

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

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 "xdefine" exists, skipping the configure step.
("tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl5.20.0.real Makefile.PL --configure" 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'
make[2]: *** No rule to make target `config'.  Stop.
...
Comment 1 Hongxu Jia 2014-07-23 11:23:49 UTC
While ${CC} changed, the existance of 'xdefine' caused makefile
regeneration failed.
Comment 2 Hongxu Jia 2014-07-29 09:41:14 UTC
Merged into master:

commit 30ef7b2c054c2712865e6593b948c4d89f9b6309
Author: Hongxu Jia <hongxu.jia@windriver.com>
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 = " ${HOST_CC_ARCH}"
    ...
    
    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 "xdefine" exists, skipping the configure step.
    ("tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl5.20.0.real Makefile.PL --configure" 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'
    make[2]: *** No rule to make target `config'.  Stop.
    ...
    
    While ${CC} changed, the existance of 'xdefine' caused makefile
    regeneration failed.
    
    [YOCTO #6569]
    
    (From OE-Core rev: fa43d4f268bc4a6fafcf14029049f2997bc72d6c)