This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem running git submodule init: "error while loading shared libraries: ?"


Intro: If you don't know/have time to solve it, I'd still appreciate a
few pointers on how to debug this issue (is a library really missing?
what library is missing?)

Just did a fresh install of cygwin-x86, added the packages: git,
openssh, ca-certificates, libsasl2. This is on Windows Server 2008 R2
(see attached cygcheck.out)

I get the following error when running git submodule init:

    $ git submodule init
    /usr/lib/git-core/git.exe: error while loading shared libraries:
?: cannot open shared object file: No such file or directory

Cygwin in general and other git commands (including 'git submodule
update') succeed without errors.

Running cygcheck on the git executable did NOT find any missing libs:

    $ cygcheck git
    Found: C:\cygwin\bin\git.exe
    Found: C:\cygwin\bin\git.exe
    C:\cygwin\bin\git.exe
      C:\cygwin\bin\cygcrypto-0.9.8.dll
        C:\cygwin\bin\cygwin1.dll
          C:\Windows\system32\KERNEL32.dll
 C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll
            C:\Windows\system32\ntdll.dll
            C:\Windows\system32\KERNELBASE.dll
 C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-File-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-IO-L1-1-0.dll
 C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll
 C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll
 C:\Windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll
 C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll
 C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Util-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Security-Base-L1-1-0.dll
        C:\cygwin\bin\cygz.dll
          C:\cygwin\bin\cyggcc_s-1.dll
      C:\cygwin\bin\cygiconv-2.dll
      C:\cygwin\bin\cygintl-8.dll

I ran cygcheck on ALL executables in /usr/lib/git-core and none of
them reporting missing libraries.

Here's a more verbose output of 'git submodule init' using
GIT_TRACE=1. It looks like 'git-sh-i18n--envsubst' is the last thing
to be run by git before failing (it succeeds, I tried it manually).

    $ GIT_TRACE=1 git submodule init
    trace: exec: 'git-submodule' 'init'
    trace: run_command: 'git-submodule' 'init'
    trace: built-in: git 'rev-parse' '--git-dir'
    trace: built-in: git 'rev-parse' '--show-cdup'
    trace: built-in: git 'rev-parse' '-q' '--git-dir'
    trace: built-in: git 'ls-files' '--error-unmatch' '--stage' '--'
    trace: built-in: git 'config' '-f' '.gitmodules' '--get-regexp'
'^submodule\..*\.path$'
    trace: built-in: git 'config' 'submodule.submodules/components.url'
    trace: built-in: git 'config' '-f' '.gitmodules'
'submodule.submodules/components.update'
    trace: exec: 'git-sh-i18n--envsubst' '--variables' 'Submodule
'\''$name'\'' ($url) registered for path '\''$path'\'''
    trace: run_command: 'git-sh-i18n--envsubst' '--variables'
'Submodule '\''$name'\'' ($url) registered for path '\''$path'\'''
    /usr/lib/git-core/git.exe: error while loading shared libraries:
?: cannot open shared object file: No such file or directory

I've run strace but couldn't figure out what's wrong from reading it.

A few more details about the git package installed:

    $ cygcheck -c git
    Cygwin Package Information
    Package              Version        Status
    git                  1.7.9-1        OK


Any ideas?

Thanks!
Noam

P.S. I tried sending the message multiple times, never got any bounce
response or anything. This time I'm removing one of the attachments,
in the hope that it will now go thorugh.

Attachment: cygcheck.out
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]