-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Win XP (32 bit!) report of successes and issues #52
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
Comments
https://gist.github.com/PhilipOakley/d8600c5e26de34b11952 has all the mintty clone & compile messages |
Just to say that, for the git gui error, I captured the fleeting dialog before the error message reported above (using camstudio). |
Extra clarification.. The above report is directly on completion of the install. Importantly the CMD window (the one showing the auto-rebasing) never closed, yet the mintty was open as well. On completion of all the above reports, the closure of the bash/mintty (exit) then closed them both. On restarting via the Git SDK-32 (icon) the |
@PhilipOakley thank you for that detailed report.
I would not worry about those: the "cannot change permissions" is expected because MSys2 does not mount the root directory like Cygwin does, with emulated POSIX permissions. This is most likely a bug in the
Yeah, I noticed that, too, but there were too many other issues I had to take care of first. After all, these are just warnings ;-) Jokes aside, I think that this needs to be fixed in that part of the code: Lines 398 to 403 in 521863b
The idea is that the Lines 243 to 245 in 521863b
That is worrisome, but unfortunately half-expected. We had quite a bit of hacks in our patched Just for the record, could you compare the times it takes to run
That is definitely a problem. The Line 1243 in 521863b
/mingw32/libexec/git-core/git-rev-parse.exe is a copy of the Git wrapper, but it does succeed when it is a copy of git.exe itself.
|
I boiled it down to the following Tcl code: puts [exec "c:\\git-sdk-32\\mingw32\\libexec\\git-core\\git-rev-parse.exe" --git-dir] When running this inside a shell or in The difference of these execution environments is the presence of a Win32 console, of course, so my hunch is that the Git wrapper might do something wrong with stdin/stdout/stderr when it detects that there is no console to attach to. |
I fixed the problem locally and am currently finishing up the patches (it was indeed a problem where stdin/stdout/stderr handles were not inherited). |
First start-up of the morning (after shut-down, and captured with camstudio) showed that: a) there was just the single flash window during the startup from double clicking the icon b) the initial That's all I can manage just now. More later (still to fully rebase the msvc-build as the task I want to get back to ;-) |
Yep, I saw that, and it is part of the reason why
The first time, I guess that another reason that the first run is slower is that in addition to Git's cache, Windows' own file system cache is still cold. |
@dscho Thanks for the confirmation about the slow cold index issue. |
@PhilipOakley regarding the permission issues, could you test this installer? https://github.com/git-for-windows/build-extra/releases/download/issue-52/git-sdk-32-installer-issue-52.7z.exe (the commit that hopefully works around the problem is this one: git-for-windows/build-extra@25bdd0c) |
I'll give it a go, but it will be tomorrow night. A big canoe / kayaking day tomorrow. |
It took mi browsing 3 repositories to understand how the pieces fit together (net installer vs. SDK vs. git itself) and I finally arrived at the proper destination. I'm on it. |
@weakcamel cool. Yeah, things are still a little rough on the edges. The net installer installs the SDK and clones Git and builds it. Welcome to the early days of MSys2-based Git for Windows ;-) |
Nice!
Please make sure to test |
My change has fixed some, but broken some, too - i.e. there are some new warnings in other files. I'll have to look exactly how that's related. builtin/grep.c Warnings diff: https://gist.github.com/weakcamel/7ac5f7333923ab3d46a8 BTW, the change fo far: I'm not quite sure why 32-bit mingw defines the |
@weakcamel looks already pretty good! About those A little more important seems to be this one:
It means that Another question:
Hmm, I wonder why the lines 107 and 42 of Keep up the good work! |
@dscho SUCCESS; I've tested your trial installer https://github.com/git-for-windows/build-extra/releases/download/issue-52/git-sdk-32-installer-issue-52.7z.exe
minor personal issue was that, as I'd deleted the old C:\git-sdk-32, the desktop shortcut had lost its icon, even after the install. However now that I've double clicked it, it has now recovered (something to add to 'ignore pile'). Summary - SUCCESS |
so the Perhaps on 32 bits,
that takes and re-defines all the constants. Can't say I grasp the logic of that yet. Ouch. I seem to produce more question than do actual good... |
It is not always clear to me how Windows refreshes the icon, but I think in your case only the double-click refreshed it, not the re-installation. I agree with you that we should not worry about this too much. |
Hmm, from the warning "builtin/gc.c:225:4: warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'uintmax_t *'" I would have expected that The easiest way to find out what value
Actually, I do not understand why it complains. The
The point of using
Actually,
Oh... Maybe we have to |
Thanks a lot for the explanation and tips.. I've tested with __USE_MINGW_ANSI_STDIO disabled and it worked well. Do I understand correctly:
It is I64u there:
I found a bug report for scanf on mingw... and then lost it. BTW, it should probably read in |
Does it work on
I think the constant has to be set in
Heh. There is a configure.ac, and it was used by MSys2. But the truth is that in the Git for Windows project, we already know what we want to include, and using
True. We probably need to augment these lines, too. |
@weakcamel I actually managed to silence all warnings in this branch: dscho/git@git-for-windows:master...squelch-warnings Do you still want to fix the |
(Note: I just realized I had forgotten a warning in regcomp.c... still on it.) |
Note: the |
Thanks, @weakcamel! |
This branch suppresses or resolves compile warnings noticed in #52 Signed-off-by: Johannes Schindelin <[email protected]>
@PhilipOakley would you be satisfied enough with |
Yes @dscho it's good to close. (just wanted confirmation there wasn't something else you wanted noted ;-). Closing now. |
MSys1 (built from msysgit/git/master, i.e. v2.1.0 32-bit): 0.756s |
@dscho - I've just done a fresh net install of the latest installer/builder, so here is the reports for what happens on XP. This is a courtesy note.
git status
felt to take a long time.git gui
reports 'Git directory not found' (so this one feels like a Fail)So generally a success, with #4# as a small problem.
Downloaded:
https://github.com/git-for-windows/git/releases/download/v2.3.4.windows.2/git-sdk-32-installer-dev
-preview.7z.exe
and ran - got to / past
(158/158) installing mingw-w64-i686-winstoreco... [######################] 100%
"Auto-rebasing .dll files"
mkdir: cannot change permissions of '/dev/shm': Permission denied
mkdir: cannot change permissions of '/dev/mqueue': Permission denied
'C:\WINDOWS\system32\drivers\etc\hosts' -> '/etc/hosts'
'C:\WINDOWS\system32\drivers\etc\protocol' -> '/etc/protocols'
'C:\WINDOWS\system32\drivers\etc\services' -> '/etc/services'
'C:\WINDOWS\system32\drivers\etc\networks' -> '/etc/networks'
Those permission denieds are on C:\git-sdk-32\dev which is set at 'read only'
Mintty came up, clone and compiled, with lots of warnings, generally of the sort
pack-check.c: In function 'verify_packfile':
pack-check.c:114:5: warning: unknown conversion type character 'l' in format [-W format=]
err = error("index CRC mismatch for object %s "
^
pack-check.c:114:5: warning: too many arguments for format [-Wformat-extra-args]
pack-check.c:121:4: warning: unknown conversion type character 'l' in format [-W format=]
err = error("cannot unpack %s from %s at offset %"PRIuMAX"",
^
pack-check.c:121:4: warning: too many arguments for format [-Wformat-extra-args]
[...]
Feeling of slowness... this is the second run.
Philip@PhilipOakley MINGW32 /c/msysgit195 (master)
$ git status
[...]
real 0m2.625s
user 0m0.015s
sys 0m0.109s
(this has git as a sub-module, but I'n not usually here and so it's maybe 'normal')
The text was updated successfully, but these errors were encountered: