<?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>2523</bug_id>
          
          <creation_ts>2012-05-30 18:29:21 +0000</creation_ts>
          <short_desc>poky-tiny build fails due to perl build failure</short_desc>
          <delta_ts>2012-07-10 20:02:18 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P1)(scheduled)</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.3 M2</target_milestone>
          
          <blocked>2374</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Bogdan Marinescu">bogdan.a.marinescu</assigned_to>
          <cc>bogdan.a.marinescu</cc>
    
    <cc>dvhart</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>21754</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-05-30 18:29:21 +0000</bug_when>
    <thetext>poky-tiny core-image-minimal fails due to perl do_compile failing:

http://autobuilder.yoctoproject.org:8010/builders/nightly-tiny/builds/63/steps/shell_35/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21938</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-08 16:16:29 +0000</bug_when>
    <thetext>The relevant bit from the log:

| make[1]: *** [miniperl] Error 1
| make[1]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-tiny/build/build/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2&apos;
| make[1]: Entering directory `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-tiny/build/build/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2&apos;
| /bin/ln -s perldelta.pod pod/perl5142delta.pod
| ./miniperl -Ilib autodoc.pl
| make[1]: ./miniperl: Command not found
| make[1]: *** [pod/perlintern.pod] Error 127
| make[1]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-tiny/build/build/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2&apos;
| make: *** [perl] Error 2
| ERRO
NOTE: package perl-5.14.2-r6: task do_compile: Failed

What is miniperl?

Can someone with more experience with the perl recipes have a look at this? Nitin?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21942</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-08 19:24:32 +0000</bug_when>
    <thetext>The following patch from May 15th:

commit 76e1d4a7ac18478bb0cbb852f4a844b5e6793c0c
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Tue May 15 09:31:32 2012 -0700

    eglibc: package mtrace separately


introduced a new eglibc-mtrace package which depends on perl. For some reason this adds perl as a dependency for eglibc according to:

bitbake -u depexp -g core-image-minimal

Reverting this patch allows the poky-tiny core-image-minimal image to build as it no longer attempts to build perl. Perl should not be part of poky-tiny.

I&apos;m not sure what the right fix is, I surprised to see the perl dependency pulled in as eglibc-mtrace is not being built.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21945</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-08 20:56:27 +0000</bug_when>
    <thetext>The problem is gcvt function is not found in libc.


| i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/srv/home/nitin/builds/build-poky-tiny/tmp/sysroots/qemux86 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o miniperl \
|       gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o   \
|     miniperlmain.o opmini.o perlmini.o -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
| sv.o: In function `Perl_sv_2pv_flags&apos;:
| /srv/home/nitin/builds/build-poky-tiny/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2/sv.c:2951: undefined reference to `gcvt&apos;
| /srv/home/nitin/builds/build-poky-tiny/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2/sv.c:2762: undefined reference to `gcvt&apos;
| sv.o: In function `Perl_sv_vcatpvfn&apos;:
| /srv/home/nitin/builds/build-poky-tiny/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2/sv.c:10052: undefined reference to `gcvt&apos;
| /srv/home/nitin/builds/build-poky-tiny/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2/sv.c:10890: undefined reference to `gcvt&apos;
| locale.o: In function `Perl_set_numeric_radix&apos;:
| /srv/home/nitin/builds/build-poky-tiny/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2/locale.c:90: undefined reference to `localeconv&apos;
| locale.o: In function `Perl_init_i18nl10n&apos;:
| /srv/home/nitin/builds/build-poky-tiny/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2/locale.c:526: undefined reference to `nl_langinfo&apos;
| collect2: error: ld returned 1 exit status
| make[1]: *** [miniperl] Error 1
| make[1]: Leaving directory `/srv/home/nitin/builds/build-poky-tiny/tmp/work/i586-poky-linux/perl-5.14.2-r6/perl-5.14.2&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21946</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-08 21:12:59 +0000</bug_when>
    <thetext>That is why it doesn&apos;t build, but that isn&apos;t the problem. The poky-tiny glibc didn&apos;t have that before either. We do not want perl to be included in core-image-minimal when building for poky-tiny.

So what we need to identify is what about commit 76e1d4a7ac18478bb0cbb852f4a844b5e6793c0c forces perl to get built when eglibc-mtrace is not being built. Is it just the fact that perl was added to the package dependency which is in turn brought into the dependencies for the recipe? If so, is the answer a separate the recipe for mtrace so it&apos;s dependencies don&apos;t taint eglibc?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21956</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-08 22:53:55 +0000</bug_when>
    <thetext>I sent a fix for this to lists

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/master%2bwork&amp;id=01b0f43cacd0beed93aebd108730bfe420ab2397</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22133</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-13 14:46:16 +0000</bug_when>
    <thetext>Bogdan, 
Saul is aware of the context of this bug. So work with him to finish this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22148</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-06-13 16:51:42 +0000</bug_when>
    <thetext>
RP&apos;s suggested fix of overriding the RDEPENDS for poky-tiny works

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1a9ad7f4d72488c9aefe0c6521bac26eddbd4416</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22974</commentid>
    <comment_count>8</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-07-10 20:02:18 +0000</bug_when>
    <thetext>Verified with http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1a9ad7f4d72488c9aefe0c6521bac26eddbd4416</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>