'make install' tries to use target tclsh when crosscompiling
Closed / Fixed2101654fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 14 years ago
Descriptionplain2008-09-09 08:38:45
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.
stwoplain2012-09-29 11:51:40
allow_comments - 1 No longer a problem in trunk and 8.5. See commits 824cd1843c, 16b5a30bf0, 226a993973 and 238d0cb630.
Log in (anonymous is fine) to add a comment.