-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Windows MinGW64 executables have problems #438
Comments
Probably the |
Yeah indeed, this seems brute-forced. I'm not 100% happy with this "fix", but for now it works. I'm wondering why the MinGW64 toolchain libc doesn't implement that. I'm not sure if the printf format we used is C99 or GNU99. |
It will do until a better solution is proposed. A tool / code first has to 2016-06-20 20:48 GMT+02:00 Jerry Jacobs notifications@github.com:
|
Yes I agree it has to be functional. It seems we don't use it correctly as others have the same problem: The suggestion would be just to use everywhere where possible the formatting from http://pubs.opengroup.org/onlinepubs/009695399/basedefs/inttypes.h.html I will leave this open, for now it is okay. But needs correct reworking. |
I checked that all the cases were safe to downcast to unsigned int. 2016-06-20 20:59 GMT+02:00 Jerry Jacobs notifications@github.com:
|
Related to #465, I have tested this myself and |
Can somebody with a MinGW64 environment test this properly? |
This is output for stlink-v1.5.1
Before v1.5.1, I observe issues in output of st-info. |
Could be PR 680, 695 or 704... |
Don't try to force it - things will become clearer someday. I may take a closer look, as soon as I find some time. Can you give me some advice regarding a correct MinGW setup in a Win10 VM (which appears useful anyway) besides the (outdated?) documentation? |
For compile with a certain toolchain, I usually write a simple *.bat script. Like this: set STLINKVER=git
set CMAKE=e:\test-st\cmake-3.4.0-win32-x86\bin\cmake.exe
set "CUR_DIR=%CD%"
cd %~dp0
PATH=e:\test-st\mingw64\bin;e:\test-st\cmake-3.4.0-win32-x86\bin\;%PATH%
cd %~dp0\stlink-%STLINKVER%
mkdir build-mingw64
cd .\build-mingw64
%CMAKE% -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..
%CMAKE% --build . |
@slyshykO: I have some news on this. As you can see, I have created new branches for old versions that fix the git version tag bug (introduced when the version numbering scheme was alligned for earlier versions) in each of these earlier versions, which prevented cmake from compiling. With this fix (which is nothing functional really, and did not exist in earlier days) I can compile quite a few releases with the newest cmake and MinGW-w64 going backwards. With this I find that compiling works without any warnings down to v1.4.0 (incl.). Testing
... which is very nice to see. Going back further, warnings occur in v1.3.1 and v1.3.0, but that does not prevent the compilation to conclude successfully down to the very end. The result from Looking at this I think this issue here has been finally fixed with Release v1.4.0, as all warnings are resolved since then, but as mentioned before, an easy verify should be of common interest. |
On my PC I receive appropriate output for v1.5.1-patch. Libusb was updated to 1.0.22 in this version. |
@slyshykO: Could be that a newer libusb package had accidentally been reused during my previous tests. I can hardly tell by now, but however - the key fact is that I can now somehow reproduce your observations regarding v1.5.1. This is the history of bugfixing related to this issue: With these findings we are now finally able to close this issue as resolved and verified. |
Using:
mingw-w64\x86_64-5.3.0-win32-sjlj-rt_v4-rev0
Problems:
%zu
)Log:
This is a followup of issues found in PR #434 when updating MingGW/MSYS build for windows.
The text was updated successfully, but these errors were encountered: