<?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>210</bug_id>
          
          <creation_ts>2010-08-13 13:32:36 +0000</creation_ts>
          <short_desc>tcl: tcl installation is using the target version of tclsh, not the native</short_desc>
          <delta_ts>2010-12-21 06:09:39 +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>0.9</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></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>josh</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9300</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-08-13 13:32:36 +0000</bug_when>
    <thetext>From Gary Thomas:
ERROR: Task 2181 (/tmp/poky.master/meta/packages/tcltk/tcl_8.5.8.bb, do_install) failed with 256
NOTE: Task failed: (&apos;function do_install failed&apos;, &apos;/tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/temp/log.do_install.6202&apos;)
ERROR: Logfile of failure stored in: /tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/temp/log.do_install.6202
Log data follows:
| NOTE: make DESTDIR=/tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/image install
| Making directory /tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/image/usr/lib
| Making directory /tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/image/usr/bin
| Installing libtcl8.5.so to /tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/image/usr/lib/
| Installing tclsh as /tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/image/usr/bin/tclsh8.5
| Installing tclConfig.sh to /tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/image/usr/lib/
| Installing libtclstub8.5.a to /tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/image/usr/lib/
| Installing message catalogs
| /bin/sh: line 2: ./tclsh: cannot execute binary file
| make: *** [install-msgs] Error 126
| FATAL: oe_runmake failed
NOTE: package tcl-8.5.8-r0: task do_install: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Task 2181 (/tmp/poky.master/meta/packages/tcltk/tcl_8.5.8.bb, do_install) failed with 256

It looks like it&apos;s trying to run tclsh which was built for ARM

[gthomas@hermes new_poky.master]$ find tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/ -name tclsh | xargs file
tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/tcl8.5.8/unix/tclsh: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, 


From Saul Wold on an x86 build:

ERROR: Task 2 (/intel/poky/distro/meta/packages/tcltk/tcl_8.5.8.bb, do_install) failed with 256
ERROR: &apos;/intel/poky/distro/meta/packages/tcltk/tcl_8.5.8.bb&apos; failed
NOTE: package tcl-8.5.8-r0: task do_install: Started
NOTE: Task failed: (&apos;function do_install failed&apos;, &apos;/intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/temp/log.do_install.18758&apos;)
ERROR: Logfile of failure stored in: /intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/temp/log.do_install.18758
Log data follows:
| NOTE: make DESTDIR=/intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/image install
| Making directory /intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/image/usr/lib
| Making directory /intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/image/usr/bin
| Installing libtcl8.5.so to /intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/image/usr/lib/
| Installing tclsh as /intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/image/usr/bin/tclsh8.5
| Installing tclConfig.sh to /intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/image/usr/lib/
| Installing libtclstub8.5.a to /intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/image/usr/lib/
| Installing message catalogs
| ./tclsh: error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
| make: *** [install-msgs] Error 127
| FATAL: oe_runmake failed
NOTE: package tcl-8.5.8-r0: task do_install: Failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9302</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-08-13 13:40:50 +0000</bug_when>
    <thetext>worked on the bug today, a patch is sent out for fixing this. Will update here once the commit goes in the master branch.
- nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9322</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-08-17 14:49:49 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit.cgi/poky/commit/?id=a2e6b265ed66d5f274507dcfbb3b91c30cc12e3a
this commit fixes this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10833</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-11-03 14:46:44 +0000</bug_when>
    <thetext>tcltk installs correctly in 0.9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>