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]

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


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 /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)

$ ldd /usr/local/bin/make (gnu make 4.0)
        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)

$ ldd /usr/bin/true (just a sample executable that does work)
        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)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x4d500000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x50ab0000)

Expected behavior:
$ /usr/bin/make
make: *** No targets specified and no makefile found. Stop.

Actual behavior:
$ /usr/bin/make

$ echo $?
127

Steps to reproduce: Unknown.  I don't have this problem on any other
installation of cygwin that I have access to.

Attachment: cygcheck.out
Description: Binary data

--
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]