Overview
| Artifact ID: | cec4b75de2bb46507c454277cac2cab6d705b8ddd906da77b3897931913a062b |
|---|---|
| Ticket: | bc693446a90017832580f0fe6dc289fc70c346c8
win/makefile: wrong recipe to buid libtcl.a and missing dependencies |
| User & Date: | sebres on 2024-10-22 21:29:52 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The recipe for [./info?name=34bbf514a9bf2c3a9edfd2a8fc2d7a852d603bd4c1b8f0977a38a33e31d1f985&ln=498-501|${TCL_LIB_FILE}] seems to be incorrect: normally it'd be built from ${TCL_DLL_FILE}, but if something has dependency to libtcl.a only, or it get removed for some reason (but tcl.dll not), or it will be built earlier, for instance if one uses parallelized make (-jN), the libtcl.a is built incorrect, the following compilation steps may fail with: <code><pre> gcc -O2 ... tclAppInit.o libtcl86.dll.a libtclstub86.a ... \ tclsh.res.o -o tclsh86.exe -mconsole -pipe -static-libgcc -municode -Wl,--enable-auto-image-base <b style="color:red">ld: tclAppInit.o:tclAppInit.c:(.text+0xc): undefined reference to `__imp_Tcl_Init'</b> <b style="color:red">ld: tclAppInit.o:tclAppInit.c:(.text+0x18): undefined reference to `__imp_Tcl_NewStringObj'</b> <b style="color:red">ld: tclAppInit.o:tclAppInit.c:(.text+0x51): undefined reference to `__imp_Tcl_ObjSetVar2'</b> <b style="color:red">ld: tclAppInit.o:tclAppInit.c:(.text+0xc0): undefined reference to `__imp_Tcl_CreateInterp'</b> <b style="color:red">ld: tclAppInit.o:tclAppInit.c:(.text+0xd5): undefined reference to `__imp_Tcl_MainExW'</b> collect2.exe: error: ld returned 1 exit status <b style="color:red">Makefile:473: recipe for target `tclsh86.exe' failed make: *** [tclsh86.exe] Error 1</b> </pre></code> Also it seem to be missing dependency for some targets, like tclsh and tcltest... for proof: <code><pre> $ rm *.exe *.a; make -j4 tcltest ... gcc -O2 ... tclAppInit.o libtcl86.dll.a libtclstub86.a ... \ tclsh.res.o -o tclsh86.exe -mconsole -pipe -static-libgcc -municode -Wl,--enable-auto-image-base cp tclsh.exe.manifest tclreg13.dll.manifest ld: cannot find libtcl86.dll.a: No such file or directory collect2.exe: error: ld returned 1 exit status <b style="color:red">Makefile:473: recipe for target `tclsh86.exe' failed make: *** [tclsh86.exe] Error 1</b> make: *** Waiting for unfinished jobs.... gcc -O2 ... tclTest.o tclTestObj.o tclTestProcBodyObj.o tclThreadTest.o tclWinTest.o tclTestMain.o libtcl86.dll.a libtclstub86.a ... \ tclsh.res.o -o tcltest.exe -mconsole -pipe -static-libgcc -municode -Wl,--enable-auto-image-base ld: cannot find libtcl86.dll.a: No such file or directory collect2.exe: error: ld returned 1 exit status <b style="color:red">Makefile:517: recipe for target `tcltest.exe' failed make: *** [tcltest.exe] Error 1</b> </pre></code> - foundin changed to: "any"
- is_private changed to: "0"
- login: "sebres"
- priority changed to: "5 Medium"
- private_contact changed to: "50e9528765c18296566374b3fde2df942c394efd"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "sebres"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to:
win/makefile: wrong recipe to buid libtcl.a and missing dependencies
- type changed to: "Bug"