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

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?

Related

How can I solve using incompatible versions of the cygwin DLL

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

Building and installing mediapipe windows. getting error Permission denied: for opencv_world3410.dll

I am using windows 10 OS for building Mediapipe library locally.
Environment setup:
python3.10
windows 10 os
bazel version = 3.7.2
visual studio 2019
Followed the instructions from this link for building using bazel.
with some hick-ups I am able to build the specified hello world from the same above link.
With help of friend I could find building command for hands module.
command1 for building hand_tracking
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C://python_310//python.exe" mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu
command 2 for running same.
set GLOG_logtostderr=1
.\bazel-bin\mediapipe\examples\desktop\hand_tracking\hand_tracking_cpu --calculator_graph_config_file=.\mediapipe\graphs\hand_tracking\hand_tracking_desktop_live.pbtxt
This is running just like this link: press run button on top right
I need this as a library installed in my venv.
I dont want the readily available pip install mediapipe. as it is not detecting some hand moments correctly. If I build my own on my pc, it is detecting.
I tried this command below,
(mediapipe_venv) C:\dev\mediapipe_repo\mediapipe>python setup.py install
After building and when I run this setup.py install, it is failing as below.
Warning: skipping import of repository 'pybind11' because it already exists.
WARNING: C:/dev/mediapipe_repo/mediapipe/mediapipe/framework/BUILD:54:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '#com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: C:/dev/mediapipe_repo/mediapipe/mediapipe/framework/tool/BUILD:182:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '#com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe/python:_framework_bindings.so (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //mediapipe/python:_framework_bindings.so up-to-date:
bazel-bin/mediapipe/python/_framework_bindings.so
INFO: Elapsed time: 0.815s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
error: [Errno 13] Permission denied: 'build\\lib.win-amd64-3.10\\mediapipe\\python\\opencv_world3410.dll'
(mediapipe_venv) C:\dev\mediapipe_repo\mediapipe>
Highlighting error from above.
error: [Errno 13] Permission denied: 'build\lib.win-amd64-3.10\mediapipe\python\opencv_world3410.dll'
Please suggest me if I am following anything wrong.
I am new to building libs locally. and new for BAZEL.
The command line you're using does not have access to 'build\lib.win-amd64-3.10\mediapipe\python\opencv_world3410.dll'
Run the same command in a command line with administrative privileges.

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