|
2022-04-18
| ||
| 17:10 | • Closed ticket [b5ced5865b]: 8.6.3 rC1 build fails with Mingw_w64 gcc 4.8.1 p... artifact: 1af5daed5b user: jan.nijtmans | |
|
2015-07-10
| ||
| 08:56 | • Ticket [448ba5cbfd] MINGW build fails for 32bit on 64bit system status still... artifact: bccecf7ecd user: jan.nijtmans | |
|
2014-12-14
| ||
| 12:26 | • Ticket [a0303e0720] TCL ver. 8.6.3 does not compile with Msys MinGW-W64 stat... artifact: 0eb812235e user: jan.nijtmans | |
|
2014-11-06
| ||
| 17:31 | • Ticket [b5ced5865b] 8.6.3 rC1 build fails with Mingw_w64 gcc 4.8.1 status st... artifact: 356446e2a3 user: apnadkarni | |
|
2014-11-04
| ||
| 16:06 | • Ticket [b5ced5865b]: 3 changes artifact: b65c656dd4 user: jan.nijtmans | |
| 16:05 | Proposed workaround for [b5ced5865b]: newer MinGW compilers can link directory to the zlib dll, hope... closed check-in: f4b66e37c7 user: jan.nijtmans tags: bug-b5ced5865b | |
| 14:27 | • Ticket [b5ced5865b] 8.6.3 rC1 build fails with Mingw_w64 gcc 4.8.1 status st... artifact: 87e8ad5db0 user: apnadkarni | |
|
2014-10-31
| ||
| 16:06 | • Ticket [b5ced5865b]: 3 changes artifact: 01faf2f2a5 user: jan.nijtmans | |
| 16:05 | • Ticket [b5ced5865b]: 3 changes artifact: f7531d4182 user: jan.nijtmans | |
| 15:47 | • New ticket [b5ced5865b]. artifact: bc5f523063 user: apnadkarni | |
8.6.3 rC1 build fails with Mingw_w64 gcc 4.8.1
Closed / Fixedb5ced5865bceef02e3e9fe0207a3d1e9bf230f2aCreated 12 years agoUpdated 5 years ago
Descriptionplain2014-10-31 15:47:20
Tried a Windows Tcl build using mingw_w64 / gcc 4.8.1 on Tcl 8.6.3RC1. Build fails with following errors: tclZlib.o:tclZlib.c:(.text+0x3d): undefined reference to `inflateEnd' tclZlib.o:tclZlib.c:(.text+0xb3): undefined reference to `deflateEnd' tclZlib.o:tclZlib.c:(.text+0x439): undefined reference to `zError' tclZlib.o:tclZlib.c:(.text+0x548): undefined reference to `deflateSetDictionary' .... whole bunch more undefined zlib syms The build line tries to link /c/src/tcl-tk/863rc1/tcl/compat/zlib/win32/zdll.lib The 64-bit build (enabled with --enable-64bit builds fine. But that links with compat/zlib/win64/libz.dll.a, not zdll.lib Not familiar with autoconf at all so someone else needs to look at it. /Ashok
Referenced by3
bccecf7ecdTicket [448ba5cbfd] MINGW build fails for 32bit on 64bit system status still Open with 5 other changes ticket2015-07-10 08:56:340eb812235eTicket [a0303e0720] TCL ver. 8.6.3 does not compile with Msys MinGW-W64 status still Open with 4 other changes ticket2014-12-14 12:26:58f4b66e37c7Proposed workaround for [b5ced5865b]: newer MinGW compilers can link directory to the zlib dll, hopefully older MinGW's which cannot do that are obsolete now. For now, leave 64-bit as-is. check-in2014-11-04 16:05:02
jan.nijtmansplain2014-10-31 16:05:29
My MinGW-w64 (32-bit) works fine, and it links with zdll.lib as just fine:
i686-w64-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32 /Localdata/workspace/tcl8.6/compat/zlib/win32/zdll.lib \
tclsh.res.o -o tclsh86.exe -mconsole -pipe -static-libgcc -municode
No problem. Actually zdll.lib is constructed using VS2012, the binutils supplied with MinGW-w64 can link with this just fine (at least mine does). Therefore I didn't bother supplying a 32-bit libz.dll.a (for 64-bit that's different....)
Actually, I'm using gcc 4.8.3 (but I don't believe that makes any difference)
$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
jan.nijtmans Ticket [b5ced5865b]: 3 changes
[History diff]2014-10-31 16:06:05
apnadkarniplain2014-11-04 14:27:55
My binutils (nm and friends) do not seem to understand zdll.lib though my Mingw_w64 build is quite recent (downloaded within few weeks). This is not really an issue for me personally since I rarely use mingw anyways and was only trying to verify the 863 rc1 build for Windows. Logged the issue as I was encouraged to do so on the chat in case there are bigger issues involved.
jan.nijtmanswiki2014-11-04 16:06:15
Does f4b66e37c7 work for you?
Explanation: Newer MinGW versions should be able to link directly to zlib1.dll, that could be an alternative if some binutils versions are built without MS format support. For now 64-bit MinGW is left as-is, maybe that should switch as well.
apnadkarniplain2014-11-06 17:31:04
OK, with your patch, .../configure --prefix=blah blan make works which it did not before and produces a 64-bit binary. I could not verify 32-bit builds as my installation seems to be missing 32-bit libraries. /Ashok
jan.nijtmansplain2022-04-18 17:10:28
Closing, since the build now works with x86, x86-64 and also arm64
Log in (anonymous is fine) to add a comment.