|
2024-08-19
| ||
| 17:12 | Merge [5e1a3868b75e4dbc], "Bug [76d45ec836] - mingw - tommath not copied on install", and remove win... check-in: 809cfa2040 user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE | |
|
2023-08-01
| ||
| 19:48 | • Ticket [76d45ec836] libtommath.dll.a missing for x86 status still Closed wit... artifact: 85a613f135 user: jan.nijtmans | |
| 16:35 | • Closed ticket [76d45ec836]. artifact: dc2cb64168 user: apnadkarni | |
| 13:51 | • Ticket [76d45ec836]: 3 changes artifact: d1b93fae91 user: jan.nijtmans | |
| 13:01 | Bug [76d45ec836] - mingw - tommath not copied on install check-in: 5e1a3868b7 user: apnadkarni tags: trunk, main | |
|
2023-07-31
| ||
| 20:03 | • Ticket [76d45ec836] libtommath.dll.a missing for x86 status still Open with ... artifact: 02ab913dad user: jan.nijtmans | |
| 17:29 | • Ticket [76d45ec836]: 4 changes artifact: a47aa432f0 user: apnadkarni | |
| 17:27 | • New ticket [76d45ec836]. artifact: 4b76696d23 user: apnadkarni | |
libtommath.dll.a missing for x86
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.
809cfa2040Merge [5e1a3868b75e4dbc], "Bug [76d45ec836] - mingw - tommath not copied on install", and remove win/configure. check-in2024-08-19 17:12:515e1a3868b7Bug [76d45ec836] - mingw - tommath not copied on install check-in2023-08-01 13:01:25
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
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
I saw your solution: [5e1a3868b75e4dbc], it's a good approach. Thanks!
Closing since you are ok with it.
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. 🤞