-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling issues with llvm-mingw due to strptime.c #1650
Comments
Also, dumb question, how to run/use/test it after |
I believe `strptime.c` fallback was added from BSD recently to build for
existing Windows recipes since mingw also lacks it. So currently it may be
able to plug just one leak :)
The "ifdef" for windows versions may make sense in `wincompat.h` (and make
use of it) as well as to (if not yet) tie better into config.h,
nut_stdint.h, etc.
…On Sun, Sep 4, 2022, 21:52 Numan Zaheer Ahmed ***@***.***> wrote:
Also, dumb question, how to run/use/test it after make is done.
—
Reply to this email directly, view it on GitHub
<#1650 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMPTFHUZMRKLXXOZS6TW43V4T4YZANCNFSM6AAAAAAQEOQQJU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
For tests, |
Also, as for "where are the binaries" - usually in same directories as sources if you build in-tree, or dedicated directories in similar tree structure under the build area if you build out-of-tree. With libtool involved, the binaries in the "same dir as source" (e.g. in You might be better off with e.g. |
Also note, when taming a new toolkit like you do now with In the latter case, there will probably be hundreds of instances of same "offense" so when you find once how to address it and replicate that solution, you drastically reduce the amount of errors remaining to fix. For example, you can see many pragmas to hush compiler range-check "faults" around code that does run-time sanity checks for platform-dependently sized integer variables (and/or ints that have a different signedness - and so different maximums - for use in different APIs) roughly like Given that Windows part of the codebase so far was built with variants of GCC, and that CLANG's static analysis and similar built-in goodies tends to complain more (and often rightfully), I'd expect this to be a busy adventure. The NUT The "hard" warnings are not yet solved for the main build scenarios either, see e.g. #1648 for a recent scoop. |
If it helps a bit, it was not hard to set up for cross-build from Linux (WSL2) indeed:
Then in NUT workspace (starting in a branch-off from current master) quickly hacked the use of clang for cross-build script:
(note that removing LDFLAGS or at least pointer to And ran with it:
There are several screenfulls of messages issued by compiler, most of them repetitive (same complaint, different instance). Some warnings seem reasonable (e.g. argument-less function declarations without |
For kicks, finally got around to try "standard-issue" pre-set environment "MSYS2 MinGW Clang x64" in the semi-native build environment; will follow up that thread in #1651 to keep things neatly aligned :) |
Quick update: making use of "MSYS2 MinGW Clang x64" was not a low-hanging fruit after all, so abandoning that effort on my side for now, to focus on other things. Discoveries, ideas and other details posted in #1651. |
Quick re-check with current master without hacks, just as... :
As this was a short "what if?" session, throwing the towel again - assorted fixes for other platforms did not by chance do magic for this combo. |
I tried compiling on WSL2 using llvm-mingw project.
Build failed with following error on
make
:I could make it finish without crashing with following changes:
From what I found(brotli, harfbuzz, icu4c, openxr(Khronos Group), vulkan(Khronos Group)),
uint64_t
needs to be declared only if Visual Studio C++ compiler older than version 1600(Visual Studio 2010) is used, so real fix is:I haven't made any PR because I can't test networkupstools/nut well enough. I'm new to it.
I'm not sure about
_tzset
though. Not fixing it crashed build process withThe text was updated successfully, but these errors were encountered: