Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56aef2768a9b01cfb30b87dc7d4dd1c58c148d9e
Ticket: 2101654fffffffffffffffffffffffffffffffff
'make install' tries to use target tclsh when crosscompiling
User & Date: chrisvirtensys on 2008-09-09 08:38:45
Changes

  1. assignee changed to: "stwo"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Host : i386
    Target: ARM9
    
    Problem behaviour:
    
    When cross-compiling 8.5.4 on i386 for Arm9, the Makefile tries to run './tclsh' as part of the "install-msgs" phase, resulting in the output:
    
      Installing libtclstub8.5.a to /path/to/build/tree/cirrus-arm-linux/edb9315A/target_filesystem/usr/local/lib/
      Installing message catalogs
      /bin/sh: ./tclsh: cannot execute binary file
    
    Expected behaviour:
    
    The Makefile should not be trying to execute the target tclsh on the build host.
    
    Solution:
    
    A variable exists (TCL_EXE) which the preceding comment block suggests may have been intended for this circumstance, but it is not used.
    
    The offending excerpt from the Makefile:
    
    install-msgs: tclsh
        @echo "Installing message catalogs"
        @LD_LIBRARY_PATH="`pwd`:$${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH; \
        TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
        ./tclsh $(TOOL_DIR)/installData.tcl \
            $(TOP_DIR)/library/msgs "$(SCRIPT_INSTALL_DIR)"/msgs
    
    Manually replacing './tclsh' with '/usr/bin/tclsh' allows the 'make install' to succeed.
    
    
  4. foundin changed to: "obsolete: 8.5.4"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "chrisvirtensys"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to:
    'make install' tries to use target tclsh when crosscompiling
    
  12. type changed to: "Bug"