Compilation error:

159 views
Skip to first unread message

cbp123

unread,
Jul 10, 2019, 3:30:48 PM7/10/19
to git-for-windows
Hi,

I am compiling mingw-w64-git package under git-sdk-64 for the first time. Thanks Johannes Schindelin for helping out so far. I've been making progress but am hitting the following error.


/usr/src/MINGW-packages/mingw-w64-git/src/git/../cv2pdb-strip  git-credential-store.exe git-daemon.exe git-fast-import.exe git-http-backend.exe git-imap-send.exe git-sh-i18n--envsubst.exe git-shell.exe git-remote-testsvn.exe git-http-fetch.exe git-http-push.exe git-remote-http.exe git-remote-https.exe git-remote-ftp.exe git-remote-ftps.exe git.exe

D:\git-sdk-64\usr\src\MINGW-packages\mingw-w64-git\src\git\git-credential-store.pdb: cannot load PDB helper DLL


Looking around, it seems this may relate to my Visual Studio installation. I have VS2019 Community installed (running Windows 10).

What is the intention regarding this code and is there a workaround for the error?

Cheers

Johannes Schindelin

unread,
Jul 11, 2019, 5:19:43 AM7/11/19
to cbp123, git-for-windows
Hi cbp123,

On Wed, 10 Jul 2019, cbp123 wrote:

> I am compiling mingw-w64-git package under git-sdk-64 for the first
> time. Thanks Johannes Schindelin for helping out so far. I've been
> making progress but am hitting the following error.
>
>
> /usr/src/MINGW-packages/mingw-w64-git/src/git/../cv2pdb-strip
> git-credential-store.exe git-daemon.exe git-fast-import.exe
> git-http-backend.exe git-imap-send.exe git-sh-i18n--envsubst.exe
> git-shell.exe git-remote-testsvn.exe git-http-fetch.exe git-http-push.exe
> git-remote-http.exe git-remote-https.exe git-remote-ftp.exe
> git-remote-ftps.exe git.exe
>
> D:\git-sdk-64\usr\src\MINGW-packages\mingw-w64-git\src\git\git-credential-store.pdb:
> cannot load PDB helper DLL

This means that cv2pdb cannot find the DLL from Visual Studio's
installation that it requires.

> Looking around, it seems this may relate to my Visual Studio installation.
> I have VS2019 Community installed (running Windows 10).

Hmm. I thought that should work? It would then seem that cv2pdb is not
finding the Visual Studio installation.

> What is the intention regarding this code and is there a workaround for the
> error?

You probably do not even need the PDBs. So the easiest way to deal with
this would be to _not_ build the PDBs as part of the packaging. There is
currently no easy way to do that (you have to hack the `PKGBUILD` file
to do that).

I have some preliminary patch locally, but you should be able to
continue your quest by simply deleting the `-git-pdb` entry from
`pkgname` and the call to `cv2pdb-strip` in the `PKGBUILD` file.

However, I must ask why you want to bundle it? Why not simply `sdk cd
git && make -j$(nproc) install`?

Ciao,
Johannes
Reply all
Reply to author
Forward
0 new messages