Skip to content
Tcl Source Code History Of Ticket 76d45ec836
Login

History Of Ticket 76d45ec836

Artifacts Associated With Ticket 76d45ec836

  1. Ticket change [4b76696d23] (rid 216887) by apnadkarni on 2023-07-31 17:27:24:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      The libtommath.dll.a mingw library is in the repository for x64 and arm but not for x86. Presumably this is an oversight.
      
      The install (mingw) is also missing copying these to the target.
      
      Effect - cannot link extensions using the external libtommath.
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "libtommath.dll.a missing for x86"
    16. type initialized to: "Bug"
  2. Ticket change [a47aa432f0] (rid 216888) by apnadkarni on 2023-07-31 17:29:33:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Jan, assigned to you as you'll probably be most familiar with the libtommath builds. I can add in the install bits once the library is added to the repository. Thanks and reassign to me if you can't get to it.
      
      /Ashok
      
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
  3. Ticket change [02ab913dad] (rid 216891) by jan.nijtmans on 2023-07-31 20:03:08:

    1. icomment:
      The simplest solution is installing tommath.lib as libtommath.dll.a. On the x86 platform, the mingw linker is capable of linking both the ".lib" format and the ".dll.a" format. That's why no libtommath.dll.a was included, originally.
      
      It turns out that ".lib" capabilities were never implemented for the mingw x64 and arm64 linker, so this 'trick' doesn't work there. That's why I added the ".dll.a" files as well.
      
      Of course, if desired, I can build libtommath.dll for x86. It's a lot bigger than tommath.lib, so I don't really see the added value, knowing that "tommath.lib" works as well.
      
      Note that for zlib it's the same: in the "win32" directory there's a zdll.lib but no libz.dll.a. For x64 and arm64, there are libz.dll.a files.
      
      Hope this helps,
          Jan Nijtmans
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [d1b93fae91] (rid 216920) by jan.nijtmans on 2023-08-01 13:51:47:

    1. icomment:
      I saw your solution: [5e1a3868b75e4dbc], it's a good approach. Thanks!
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [dc2cb64168] (rid 216945) by apnadkarni on 2023-08-01 16:35:16:

    1. closedate changed to: "2460158.19116476"
    2. closer changed to: "apnadkarni"
    3. icomment: "Closing since you are ok with it."
    4. login: "apnadkarni"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  6. Ticket change [85a613f135] (rid 216946) by jan.nijtmans on 2023-08-01 19:48:50:

    1. closedate changed to: "2460158.3255826"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      The "tommath.lib" works on x86 for all known compilers, Visual Studio, mingw, MingW_w64 and clang. On x64_64 and arm64, "tommath.lib" works for Visual Studio, "libtommath.dll.a" works for all other compilers, so this is the most portable.
      
      Eventually, this all will become obsolete. Recent MingW_w64 allows to link with "libtommath.dll" (using simply "-ltommath"). It will then generate libtommath.dll.a on-the-fly and do what's expected. My hope is that once 32-bit x86 is obsolete, Microsoft will deprecate its own compiler, switching to clang (clang for Visual Studio already exists, it's just not the default and still has issues). When that happens, all platforms can be handled the same as on UNIX, no special tricks any more. 🤞
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"