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]

Re: make exits with error 127 to shell, 0xc0000022 in gdb.


Il 11/20/2013 5:48 PM, Brian Minton ha scritto:
make (/usr/bin/make.exe) is not working.  It immediately exits with a
shell return value of 127.  If I run it under gdb, it gives:
Reading symbols from /usr/bin/make...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/make
[New Thread 283768.0x26228]
During startup program exited with code 0xc0000022.

I downloaded the source for gnu make 4.0 and compiled it, and get the
same error.
Reading symbols from /usr/local/bin/make...done.
(gdb) run
Starting program: /usr/local/bin/make
[New Thread 4044.0x4512c]
During startup program exited with code 0xc0000022.


The interesting thing is that both the existing /usr/bin/make and the
new make that I built from source don't list cygwin DLLs in their
dependencies with ldd.

ldd will not show missing dll's, it is a know deficiency


$ ldd /usr/bin/make (the one that came with cygwin)
         ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x771a0000)
         kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x759b0000)
         KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll
(0x754d0000)


use instead
  cygcheck  /usr/bin/make

you can also use http://www.dependencywalker.com/
in some nasty case were dll's are all there but in the wrong version and missing some function calls

Regards
MArco


Regards
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


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