Discussion:
Problem running git submodule init: "error while loading shared libraries: ?"
j***@gmail.com
2014-01-29 21:35:46 UTC
Permalink
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.
Marco Atzeri
2014-01-29 21:46:40 UTC
Permalink
Post by j***@gmail.com
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)
$ git submodule init
?: cannot open shared object file: No such file or directory
Cygwin in general and other git commands (including 'git submodule
update') succeed without errors.
try
strace -o /tmp/git.strace git submodule init
Post by j***@gmail.com
Any ideas?
Thanks!
Noam
Marco
Kal Sze
2014-01-30 01:24:11 UTC
Permalink
Post by Marco Atzeri
Post by j***@gmail.com
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)
$ git submodule init
?: cannot open shared object file: No such file or directory
Cygwin in general and other git commands (including 'git submodule
update') succeed without errors.
try
strace -o /tmp/git.strace git submodule init
Post by j***@gmail.com
Any ideas?
Thanks!
Noam
Marco
--
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
Is that possibly the same gettext problem that I bumped into a few
months ago? Basically gettext should be a dependency but is not marked
as such. So you need to manually install gettext to make that error go
away.

I don't use Cygwin 32-bit anymore, so I can't confirm.

Kal
jones.noamle
2014-01-30 02:26:10 UTC
Permalink
I will try gettext - but I would also like to see how this can be debugged. I ran strace (as mentioned in the original post) but didn't know exactly what to look for.

What exactly does cygwin do to load shared libs? How can I spot this in strace's output?
Post by Kal Sze
Post by Marco Atzeri
Post by j***@gmail.com
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)
$ git submodule init
?: cannot open shared object file: No such file or directory
Cygwin in general and other git commands (including 'git submodule
update') succeed without errors.
try
strace -o /tmp/git.strace git submodule init
Post by j***@gmail.com
Any ideas?
Thanks!
Noam
Marco
--
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
Is that possibly the same gettext problem that I bumped into a few
months ago? Basically gettext should be a dependency but is not marked
as such. So you need to manually install gettext to make that error go
away.
I don't use Cygwin 32-bit anymore, so I can't confirm.
Kal
--
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
jones.noamle
2014-01-30 18:51:28 UTC
Permalink
Fixed by installing gettext.

Why doesn't it print out the name of the missing library?
Post by Kal Sze
Post by Marco Atzeri
Post by j***@gmail.com
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)
$ git submodule init
?: cannot open shared object file: No such file or directory
Cygwin in general and other git commands (including 'git submodule
update') succeed without errors.
try
strace -o /tmp/git.strace git submodule init
Post by j***@gmail.com
Any ideas?
Thanks!
Noam
Marco
--
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
Is that possibly the same gettext problem that I bumped into a few
months ago? Basically gettext should be a dependency but is not marked
as such. So you need to manually install gettext to make that error go
away.
I don't use Cygwin 32-bit anymore, so I can't confirm.
Kal
--
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
Marco Atzeri
2014-01-30 19:49:58 UTC
Permalink
Post by jones.noamle
Fixed by installing gettext.
Why doesn't it print out the name of the missing library?
MS bug
Christopher Faylor
2014-01-30 20:19:33 UTC
Permalink
Post by Marco Atzeri
Post by jones.noamle
Fixed by installing gettext.
Why doesn't it print out the name of the missing library?
MS bug
Not really. There just is no way that I'm aware of to get the name of a
shared library from a failing dlopen(). It isn't a bug, really. We're
just, as usual, trying to do something that Microsoft apparently didn't
anticipate anyone needing.

cgf
Adam Dinwoodie
2014-02-02 16:25:33 UTC
Permalink
Post by jones.noamle
Post by Kal Sze
Is that possibly the same gettext problem that I bumped into a few
months ago? Basically gettext should be a dependency but is not marked
as such. So you need to manually install gettext to make that error go
away.
Fixed by installing gettext.
On the offchance anyone's interested, Git v1.8.5.2 doesn't seem to
require gettext, at least for the commands Noam encountered it in -- I
was able to use `git submodule init` quite happily on my build.

Loading...