Artifacts Associated With Ticket d109376adf418ce6
Ticket change [e277033a9b] (rid 197948) by niyassait on 2022-02-10 12:55:17:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Recently windows-arm64 support has been added to tcl and native compilation for win/arm64 works fine. However, it is still not possible to cross-compile for win/arm64 from a win/x64 machine using nmake. The main issue seems to be due to `nmakehlp` compiled for the target architecture rather than the host architecture and cannot be executed during the build step. It is not clear what is the best way to add support for it.
- foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "niyassait"
- priority initialized to: "5 Medium"
- private_contact initialized to: "ad7647d07ed2bae43ec6b0e27114dda751523a38"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "niyassait"
- subsystem initialized to: "69. Other"
- title initialized to: "Cross-compilation for windows-arm64"
- type initialized to: "Support"
Ticket change [3b8f016b33] (rid 197949) by jan.nijtmans on 2022-02-10 13:52:16:
- icomment:
See also this (very old) ticket: [1020445] which describes a workaroud: <pre> > What's wrong with building for Win32 first, then running the > clean target? That should remove Release\Tcl_Dynamic\*.*, > but leave nmakehlp.exe </pre> I also have no idea how to add support for it (neither to I have a windows-arm64 system around to test it), but if someone knowns: patches will be gladly accepted. Thanks for the report!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [4c5d0c6eec] (rid 197958) by niyassait on 2022-02-10 14:41:19:
- icomment:
Thanks. One workaround I can think of is to introduce a separate Host compiler option in rules.vc. See https://github.com/tcltk/tcl/pull/11 for details. And we could compile with the following command for example nmake -f makefile.vc OPTS=static MACHINE=AMD64 HOST_CC=host_cc.bat all
- login: "niyassait"
- mimetype: "text/plain"
- icomment:
Ticket change [2afce6d059] (rid 197968) by niyassait on 2022-02-11 12:47:30:
- icomment:
Another approach would be to add a new separate target for nmakehlp and an option to skip building nmakehlp during the normal build. I've prepared a PR : https://github.com/tcltk/tcl/pull/11 @jan.nijtmans: Could you help with Review please ?
- login: "niyassait"
- mimetype: "text/plain"
- icomment:
Ticket change [e7b7e29035] (rid 198032) by niyassait on 2022-02-13 20:52:58:
- closedate changed to: "2459624.37012076"
- closer changed to: "niyassait"
- icomment:
This has been fixed and updated the documentation. If you want to Cross-compile with Visual Studio (e.g. for X86 or ARM64+targets, but running on AMD64), first set up the environment for your host machine and compile nmakehlp.exe: C:\tcl_source\win\>nmake -f makefile.vc nmakehlp Then go to your cross-compile environment and run the nmake command again for whatever you want to build. - login: "niyassait"
- mimetype: "text/plain"
- status changed to: "Closed"
Ticket change [37e8c851ed] (rid 198118) by jan.nijtmans on 2022-02-14 21:46:36:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459625.40736473"
- closer changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
Ticket change [3231cc10de] (rid 198119) by niyassait on 2022-02-15 08:59:57:
- closedate changed to: "2459625.87497362"
- closer changed to: "niyassait"
- icomment:
I think we could potentially simplify the explicit nmakehlp build step for x86 target as x86 binaries works on all architecture. Here is a patch: https://github.com/tcltk/tcl/pull/12
- login: "niyassait"
- mimetype: "text/plain"
Ticket change [64327e450b] (rid 198150) by niyassait on 2022-02-16 07:36:10:
- closedate changed to: "2459626.81678442"
- icomment:
I think we need to apply the latest changes to Tk as well. Especially adding x86_64-w64-mingw32-nmakehlp.exe and changes to rules.vc to skip nmakehlp for cross-compilation.
- login: "niyassait"
- mimetype: "text/plain"