Overview
| Artifact ID: | e37c6555a713351c8221cd9ab5ef12ceef1d72e3 |
|---|---|
| Ticket: | 448ba5cbfda349b1e71b5193a50f746c84641410
MINGW build fails for 32bit on 64bit system |
| User & Date: | anonymous on 2015-07-10 08:16:41 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
I am building Tcl using MSYS2 and the TDM-GCC compiler. This works for 64 bit, if additionally --enable-64bit is passed, or for the static build. With this gcc version, it is also possible to build 32 bit by passing CFLAGS="-m32" LDFLAGS="-m32" to the configure script, but it fails for two reasons. 1. Linking to the precompiled zlib does not work This can be circumvented by hacking the configure script to always build zlib (ZLIB_OBJ instead of ZLIB_DLL) 2. the resource compiler creates 64bit objects. This can be solved by passing --output-format=coff --target=pe-i386 to windres. But the configure script or Makefile doesn't honour RCFLAGS, so it is impossible to do that without hacking the Makefile SUggested solution: 1. Always build the zlib objects. Why does the build system try to link with precompiled binaries? That would solve both zlib issues. 2. Insert RCFLAGS into configure.in and Makefile.in
- foundin changed to: "8.6.4"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "2caf797de13248fb0c6ec498502ae2197d48be0f"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "53. Configure and Build Tools"
- title changed to: "MINGW build fails for 32bit on 64bit system"
- type changed to: "Bug"