<?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>2237</bug_id>
          
          <creation_ts>2012-04-04 01:13:49 +0000</creation_ts>
          <short_desc>ncurses build failure</short_desc>
          <delta_ts>2012-05-04 21:53:59 +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.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</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.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="michael fox">415fox</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>scott.a.garman</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>19843</commentid>
    <comment_count>0</comment_count>
    <who name="michael fox">415fox</who>
    <bug_when>2012-04-04 01:13:49 +0000</bug_when>
    <thetext>So this is my first day playing with yocto project. I downloaded poky-edison-6.0.1 on my up-to-date Ubuntu 11.10 machine and just tried to build core-image-minimal for qemu following the tutorial. I did not get very far ...

The build was failing on ncurses-native. I traced it back to the file:
./meta/recipes-core/ncurses/ncurses.inc

Around line 128 it tries to steal some terminfo files from my build system:
        for x in console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86

Actually, the original line has the terminal &quot;ansi&quot; listed and removing it is what fixes the problem.

Ubuntu doesn&apos;t presently provide &quot;ansi&quot; in /usr/share/terminfo/a although they do provide like 200 other terminals starting with the letter a. I don&apos;t know why they got rid of that one, the arbitrary bastards.

Anyway, I think the larger issue here is that ncurses should be built one of two ways:

1. Use the perfectly good ncurses that I have installed on my build system. This failure takes place when bitbake is still working on the toolchain, so if you want to use stuff on my system, like ncurses, that&apos;s fine with me.
2. Build ncurses from scratch and provide all of the sources including the terminfo files like Ubuntu does in their ncurses-term package.

What&apos;s not okay is to build ncurses from source but also try to steal a few supporting files off my system. Because maybe they&apos;re not there.

Another point I&apos;d like to address was that this was really hard to trace back. I mean, this is my first day working with yocto but come on. I&apos;m getting python tracebacks on screen, I&apos;m getting logs from make, but the bug is in this ncurses.inc file and there&apos;s no indication of that in any of the output. 

Really I&apos;d be fine if no one ever fixed the ncurses build issue and just found a way to let me know which line of which script it was trying to do when it borked. Then I could fix it myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20750</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-04-20 00:52:08 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; So this is my first day playing with yocto project. I downloaded
Welcome to the Yocto Project, sorry it took a while to respond to this, we have been in release mode trying to tackle some issues.

&gt; poky-edison-6.0.1 on my up-to-date Ubuntu 11.10 machine and just tried to build
&gt; core-image-minimal for qemu following the tutorial. I did not get very far ...
&gt; 
&gt; The build was failing on ncurses-native. I traced it back to the file:
&gt; ./meta/recipes-core/ncurses/ncurses.inc
&gt; 
&gt; Around line 128 it tries to steal some terminfo files from my build system:
&gt;         for x in console dumb linux rxvt screen sun vt{52,100,102,200,220}
&gt; xterm-color xterm-xfree86
&gt; 

If I am understanding you, you are looking at the &quot;do_install()&quot; function in the ncurses.inc file, you will notice that it&apos;s finding files and install all relative to ${D}, which is the local root in the build area, it&apos;s not taking anything from your system directly.

&gt; Actually, the original line has the terminal &quot;ansi&quot; listed and removing it is
&gt; what fixes the problem.
&gt; 
&gt; Ubuntu doesn&apos;t presently provide &quot;ansi&quot; in /usr/share/terminfo/a although they
&gt; do provide like 200 other terminals starting with the letter a. I don&apos;t know
&gt; why they got rid of that one, the arbitrary bastards.
&gt; 
BTW: On my machine, I have NO files in /usr/share/terminfo and have no issues building ncurses-native 

&gt; Anyway, I think the larger issue here is that ncurses should be built one of
&gt; two ways:
&gt; 
&gt; 1. Use the perfectly good ncurses that I have installed on my build system.
&gt; This failure takes place when bitbake is still working on the toolchain, so if
&gt; you want to use stuff on my system, like ncurses, that&apos;s fine with me.
We build a known version of ncurses in order to be sure we have a tested and known working build.

&gt; 2. Build ncurses from scratch and provide all of the sources including the
&gt; terminfo files like Ubuntu does in their ncurses-term package.
&gt;
It should be doing this; building from scratch and providing all the terminfo files directly.

&gt; What&apos;s not okay is to build ncurses from source but also try to steal a few
&gt; supporting files off my system. Because maybe they&apos;re not there.
&gt; 
&gt; Another point I&apos;d like to address was that this was really hard to trace back.
&gt; I mean, this is my first day working with yocto but come on. I&apos;m getting python
&gt; tracebacks on screen, I&apos;m getting logs from make, but the bug is in this
&gt; ncurses.inc file and there&apos;s no indication of that in any of the output. 
&gt;
It would be great to get the output logs and python tracebacks, this should all build out of the box.  If you can repeat and attach your failures that would be very helpful. We are trying hard to address some of the exception handling and traceback issues.  

I look forward to seeing some attached logs, if you still have them.
 
&gt; Really I&apos;d be fine if no one ever fixed the ncurses build issue and just found
&gt; a way to let me know which line of which script it was trying to do when it
&gt; borked. Then I could fix it myself.
I build ncurses-native all the time on a 11.10 machine, so I am not sure what you ran into.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21121</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-05-04 21:53:59 +0000</bug_when>
    <thetext>I am closing this as not a bug, If you still have this problem, please re-open this issue and attch any logs and python execptions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>