How can I solve using incompatible versions of the cygwin DLL - cygwin

I want to extract DEM from SLC data. But I get this error in Snaphu unwrapping because of Cygwin unmatching. Can anyone tell me any solution please
the error is
snaphu v2.0.4
27 parameters input from file snaphu.conf (84 lines total)
Logging run-time parameters to file snaphu.log
Creating temporary directory snaphu_tiles_2046
0 [main] snaphu (4156) C:\Users\Hi-Tech.snap\auxdata\snaphu-v2.0.4_win64\bin\snaphu.exe: *** fatal error - cygheap base mismatch detected - 0xFDB408/0x1BDB408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version should
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
1 [main] snaphu 2046 dofork: child -1 - forked process 4156 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
Error while forking
Abort
Process exited with value 2304

Related

Making a go program with CGO code under Windows reports an error

I want to compile a golang program containing CGO code into a program running under Linux under windows, and I encountered the following error at the beginning
fatal error: Windows.h: No such file or directory
After that I copied the content under mingw64\x86_64-w64-mingw32\include to the x86_64-linux-musl\x86_64-linux-musl\include directory
I am using GCC under x86_64-linux-musl to build the program, the version is
Proceed to build with error #error Only Win32 target is supported!
I've been searching for a long time and haven't found a solution

Mysys2 error: Execution failed (Unexpected exit code: 254): "C\msys64\usr\bin\bash.exe --login -c exit"

I was installing Mysys2 then a textbox popped up. I did some research and realize I didn't have cygwin on my computer. So I installed cygwin. But that did not fix anything.
Textbox popped up while installing Mysys2
I also try to run that code in bash then an error appeared:
0 [main] bash (19644) C:\cygwin64\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1156408/0x1106408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
0 [main] bash 696 dofork: child -1 - forked process 19644 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: Resource temporarily unavailable
0 [main] bash (9136) C:\cygwin64\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1156408/0x11D6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
1122281 [main] bash 696 dofork: child -1 - forked process 9136 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: Resource temporarily unavailable
0 [main] bash (13760) C:\cygwin64\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1156408/0x11D6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
3238823 [main] bash 696 dofork: child -1 - forked process 13760 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: Resource temporarily unavailable
0 [main] bash (19628) C:\cygwin64\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1156408/0x10F6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
7359054 [main] bash 696 dofork: child -1 - forked process 19628 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: Resource temporarily unavailable
0 [main] bash (19868) C:\cygwin64\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1156408/0x11B6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
15473267 [main] bash 696 dofork: child -1 - forked process 19868 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: Resource temporarily unavailable
But I did install cygwin and there is cygwin1.dll in C:\cygwin64\bin
How do I solve this problem?

How to avoid 'invalid command' error when building Linux kernel on Fedora 28?

I'm building a Linux kernel on Fedora 28, but always run into the same error such as:
CC init/main.o
init/main.o: warning: objtool: elf_begin: invalid command
make[1]: *** [scripts/Makefile.build:277: init/main.o] Error 1
make[1]: *** Deleting file 'init/main.o'
make: *** [Makefile:1067: init] Error 2
make: *** Waiting for unfinished jobs....
I tried "linux-5.0.16.tar.gz" and "linux-5.0.21.tar.gz" downloaded from kernel.org
, and also tried to follow the instruction on Fedora wiki
But there is no way to avoid this 'invalid command' error. "elfutils-libelf-devel" and "elfutils-libelf" are installed. In the fedora way, 'fedpkg cone -a kernel' was successful, so all dependences are installed. Does anyone know what is missing?
Further progress:
The same procedure works on a different machine installed with Fedora 30.
However, after upgrading the original machine to Fedora 30, the error persists.
The machine with the 'invalid command' problem had an old version of libelf.so installed under /user/local. After removing the old libelf, objtool is linked to the current libelf library, and is able to run during compilation of the linux kernel.
A comment is found in the linux source code /tools/perf/util/symbols.h:
/*
* libelf 0.8.x and earlier do not support ELF_C_READ_MMAP;
* for newer versions we can use mmap to reduce memory usage:
*/
This comment led me to look for an out-dated version of libelf.

Why does rm not work in my Makefile? Using cygwin and git

I have cygwin and git installed on Windows 7 (32-bit). Trying to execute a Makefile. When I just use make it works.
But when I add rm into my Makefile, in fclean, for example, that happens:
C:\Users\SSS\libft>make fclean
rm -f *.o
3 [main] rm (324) C:\Program Files\Git\usr\bin\rm.exe: *** fatal error - cygheap base mismatch detected - 0x612C3410/0x612BF410.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
make: *** [Makefile:25: clean] Segmentation fault
Rebooting didn't help.

tcl8.5.10 make fail error, Network Simulator2 v2.35 (Cygwin v1.7.32) in Windows 8

during installation of NS2 v2.35 (Cygwin v1.7.32) in Windows 8 i keep getting this error message:
Package gcc4 is not present on your system.
Please install it using Cygwin's setup.exe
before trying to install the ns-2 distribution.
I tried downloading the gcc4 package from the setup but it does not show that it has a gcc4 package. So, i downloaded it from internet but the file was empty!!! If i ignore the warning for gcc4 and continue with the installation then i got the following error.
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld: final l ink failed: Invalid operation
collect2: error: ld returned 1 exit status
Makefile:569: recipe for target `tclsh.exe' failed
make: *** [tclsh.exe] Error 1
tcl8.5.10 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
Somebody please help me!!!
Latest gcc ,i.e., 4.8 not compatible, Go for older versions of gcc like 4.7

Resources