Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 842f299e582ebc1e844a445bb32ac3ed799e6744f17ce27289bed6fb021457b4
Ticket: 0bcc43fa778517c48aaedc1f0f0dcbad97e2efa7
"make install" of tcl-8.7 trunk fails with fatal error
User & Date: anonymous on 2018-12-23 22:32:20
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    <p>While building the latest tcl 8.7 trunk on Windows 7 in a MSYS shell, "make install" fails with an error that the $PREFIX/include directory is missing.</p>
    <pre>
    scottyw@workshoppc MINGW32 /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/tcl-trunk/build-win
    $ make install
    Making directory /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/lib
    Making directory /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/bin
    Making directory /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/lib/dde1.4
    Making directory /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/lib/reg1.3
    Installing tcl90.dll to /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/bin/
    Installing zlib1.dll to /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/bin/
    Installing tclsh90.exe to /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/bin/
    Installing tclConfig.sh to /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/lib/
    Installing libtcl90.a to /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/lib/
    Installing libtclstub90.a to /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/lib/
    Installing tcldde14.dll
    Installing libtcldde14.a
    Installing tclreg13.dll
    Installing libtclreg13.a
    Making directory /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/include
    /bin/sh: line 4: /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/local-win/include: No such file or directory
    make: *** [Makefile:829: install-headers] Error 127
    
    scottyw@workshoppc MINGW32 /c/Users/scottyw/Desktop/src/tcltk/core.tcl.tk/tk-rgbmask-fix/tcl-trunk/build-win
    $
    </pre>
    <p>The failure is in the "install-headers" target. The mkdir command is missing and there is an INSTALL_DATA_DIR variable instead:</p>
    <pre>
    install-headers:
    	@for i in "$(INCLUDE_INSTALL_DIR)"; \
    	    do \
    	    if [ ! -d "$$i" ] ; then \
    		echo "Making directory $$i"; \
    		$(INSTALL_DATA_DIR) "$$i"; \
    		else true; \
    		fi; \
    	    done;
    	@echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
    </pre>
    <p>I applied the following change to win/Makefile.in and the problem was fixed. I was able to install tcl:</p>
    <pre>
    Index: win/Makefile.in
    ==================================================================
    --- win/Makefile.in
    +++ win/Makefile.in
    @@ -828,11 +828,11 @@
     install-headers:
     	@for i in "$(INCLUDE_INSTALL_DIR)"; \
     	    do \
     	    if [ ! -d "$$i" ] ; then \
     		echo "Making directory $$i"; \
    -		$(INSTALL_DATA_DIR) "$$i"; \
    +		$(MKDIR) "$$i"; \
     		else true; \
     		fi; \
     	    done;
     	@echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
     	@for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h \
    </pre>
    
  5. foundin changed to: "8.7 trunk"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8625d05874a7ef9427be006eb0815aee03c19835"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "53. Configuration and Build Tools"
  15. title changed to:
    "make install" of tcl-8.7 trunk fails with fatal error
    
  16. type changed to: "Patch"