Bug 210

Summary: tcl: tcl installation is using the target version of tclsh, not the native
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Saul Wold <sgw>
Component: coreAssignee: Nitin Kamble <nitin.a.kamble>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: High CC: josh, ke.yu, kevin.tian, meta.mr.watcher, meta.watcher, sgw
Version: 0.9   
Target Milestone: 0.9 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Saul Wold 2010-08-13 13:32:36 UTC
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: ('function do_install failed', '/tmp/new_poky.master/tmp/work/armv7a-poky-linux-gnueabi/tcl-8.5.8-r0/temp/log.do_install.6202')
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'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: '/intel/poky/distro/meta/packages/tcltk/tcl_8.5.8.bb' failed
NOTE: package tcl-8.5.8-r0: task do_install: Started
NOTE: Task failed: ('function do_install failed', '/intel/poky/distro/build/tmp/work/i586-poky-linux/tcl-8.5.8-r0/temp/log.do_install.18758')
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
Comment 1 Nitin Kamble 2010-08-13 13:40:50 UTC
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
Comment 2 Nitin Kamble 2010-08-17 14:49:49 UTC
http://git.pokylinux.org/cgit.cgi/poky/commit/?id=a2e6b265ed66d5f274507dcfbb3b91c30cc12e3a
this commit fixes this issue.
Comment 3 Saul Wold 2010-11-03 14:46:44 UTC
tcltk installs correctly in 0.9