Skip to content
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

setup-git-sdk.bat fails in Git For Windows SDK 1.0.1 installer #537

Closed
Astrophizz opened this issue Nov 20, 2015 · 8 comments
Closed

setup-git-sdk.bat fails in Git For Windows SDK 1.0.1 installer #537

Astrophizz opened this issue Nov 20, 2015 · 8 comments

Comments

@Astrophizz
Copy link

The installer fails in setup-git-sdk.bat with this written to the terminal:

:: Synchronizing package databases...
 git-for-windows         2000.0   B  1953K/s 00:00 [#####################] 100%
 mingw32                  215.3 KiB  1764K/s 00:00 [#####################] 100%
 mingw32.sig               96.0   B  0.00B/s 00:00 [#####################] 100%
      0 [main] pacman 15144 C:\git-sdk-64\usr\bin\pacman.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
   6138 [main] pacman 15144 cygwin_exception::open_stackdumpfile: Dumping stack trace to pacman.exe.stackdump
      0 [main] pacman 2500 fork: child -1 - forked process 15144 died unexpectedly, retry 0, exit code 0x100, errno 11
error: GPGME error: Invalid crypto engine
error: failed to update mingw32 (invalid or corrupted database (PGP signature))
 mingw64                  214.2 KiB  1713K/s 00:00 [#####################] 100%
 mingw64.sig               96.0   B  93.8K/s 00:00 [#####################] 100%
error: GPGME error: Invalid crypto engine
error: failed to update mingw64 (invalid or corrupted database (PGP signature))
 msys                     126.2 KiB  3.85M/s 00:00 [#####################] 100%
 msys.sig                  96.0   B  0.00B/s 00:00 [#####################] 100%
error: GPGME error: Invalid crypto engine
error: failed to update msys (invalid or corrupted database (PGP signature))
error: database 'mingw32' is not valid (invalid or corrupted database (PGP signature))
error: database 'mingw64' is not valid (invalid or corrupted database (PGP signature))
error: database 'msys' is not valid (invalid or corrupted database (PGP signature))

There was a problem accessing the MSys2 repositories
If your setup requires an HTTP proxy to access the web,
please specify it here, otherwise leave it empty.

HTTP proxy:

which would appear to come from this line:
@"%cwd%"\usr\bin\pacman -Sy --needed --force --noconfirm msys2-runtime

Here is the stack trace mentioned by the error output, if it's any use:

Stack trace:
Frame        Function    Args
00000000000  0018007198E (0018020EF9C, 0018020EE46, 00000400000, 000005FEDE0)
00000000000  00180046E22 (000005FFE48, 000006E482C, 000005FFE90, 00000002000)
00000000000  00180046E62 (00000600000, 00000800000, 00000400000, 00000600000)
00000000000  0018004705B (00000277000, 000005FFEE0, 00000000000, 001801E78C0)
00000000000  001800470AA (00000000000, 00100401000, 00000277000, 00000000000)
00000000000  0018004717E (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  001007452D1 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  00100401010 (00000000000, 00000000000, 00000000000, 00100401000)
00000000000  7FFD2EA28102 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  7FFD2EB8C264 (00000000000, 00000000000, 00000000000, 00000000000)
End of stack trace

Running the pacman command by hand after the fact appears to work fine:

C:\git-sdk-64\usr\bin>pacman -Sy --needed --force --noconfirm msys2-runtime
:: Synchronizing package databases...
 git-for-windows is up to date0   B  0.00B/s 00:00 [---------------------]   0%
 mingw32 is up to date
 mingw64 is up to date
 msys is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) msys2-runtime-2.2.1.33619.e87aaa7-1

Total Download Size:   2.27 MiB
Total Installed Size:  8.42 MiB

:: Proceed with installation? [Y/n]
warning: no /var/cache/pacman/pkg/ cache exists, creating...
:: Retrieving packages ...
 msys2-runtime-2.2.1...     2.3 MiB   542K/s 00:04 [#####################] 100%
(1/1) checking keys in keyring                     [#####################] 100%
(1/1) checking package integrity                   [#####################] 100%
(1/1) loading package files                        [#####################] 100%
(1/1) checking for file conflicts                  [#####################] 100%
(1/1) checking available disk space                [#####################] 100%
(1/1) installing msys2-runtime                     [#####################] 100%

I've reproduced this on two different machines. Both have Windows 10 x64 with the recent, large "Version 1511" November update applied.

@dscho
Copy link
Member

dscho commented Nov 20, 2015

Hmm. This is obviously 64-bit, but it looks pretty much like the 32-bit problem I worked around in git-for-windows/build-extra@918a119...

@dscho
Copy link
Member

dscho commented Nov 24, 2015

@Astrophizz could you please unpack the SDK manually, change the line 19 from

@IF MINGW32 == %MSYSTEM% @(

to

@IF MINGW64 == %MSYSTEM% @(

and then run setup-git-sdk.bat in a cmd window manually and report back whether this fixes the problem?

@dscho
Copy link
Member

dscho commented Nov 24, 2015

@Astrophizz and if it does not, could you have a look at the ticket @elieux referenced?

@Astrophizz
Copy link
Author

@dscho That worked (editing the line)! Would you like a pull request to remove the check against MINGW32?

The next thing that fails in the SDK installer is the installation of 3 packages that don't seem to be in the pacman repo (anymore?):

  • git-extra
  • mingw-w64-x86_64-git-doc-html
  • mingw-w64-x86_64-git

I've opened an issue at #548.

@dscho
Copy link
Member

dscho commented Nov 25, 2015

That worked (editing the line)! Would you like a pull request to remove the check against MINGW32?

No, this was just a work-around. The real fix is to remove the extra level testing for MINGW32. If you could open a Pull Request with that change (with a good commit message, please), that would be awesome!

@dscho dscho closed this as completed Nov 25, 2015
@Astrophizz
Copy link
Author

Right, that's what I meant. I'll try to get that ready soon.

After generating a 7z installer for #548 it occurred to me to test this fix from an installer and, sadly, it still fails in that context. Extracting the archive and running setup-git-sdk.bat does work though. I'm puzzled as to why that would make a difference.

@dscho
Copy link
Member

dscho commented Nov 26, 2015

I guess it might have something to do with the .7z self-extractor being a 32-bit executable itself. Not sure how to verify that, though (or how to work around it if that is the case).

@Astrophizz
Copy link
Author

I've made a pull request with #90.

dscho added a commit to git-for-windows/build-extra that referenced this issue Feb 16, 2016
This topic branch brings various fixes/improvements to the SDK installer
so that we can release a new SDK installer, which in turn addresses
git-for-windows/git#537 and
git-for-windows/git#630

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants