7,901 questions
Advice
0
votes
2
replies
59
views
How do I upgrade the cygwin package
I have cygwin 3-0-0 version and wish to keep all packages under the cygwin and only upgrade 3 packages, but i am confused on what to select. I need to upgrade them for CVE fix( xz utils and gawk)
I ...
0
votes
0
answers
60
views
How to escape the backward \ in sed -i to insert to top of file [duplicate]
I have a file that I'm trying to put a spool command and the dos path as the first line:
To get the dos path from bash I use:
CWDDOS=$(pwd | sed 's/\//\\/g' | sed 's/\\c/C:/g')
and it gives me this:
...
2
votes
2
answers
103
views
Is there a difference between `_P_NOWAIT` and `_P_NOWAITO`
Is there a difference in using _P_NOWAIT and _P_NOWAITO, with the [_][w]spawn* family of functions (with MSVC or cygwin gcc (I think the latter does the same thing just returns pid_t aka int instead ...
0
votes
0
answers
40
views
What is '_tob' that is used in alias command?
I am using MobaXterm for a long time. I understand MobaXterm uses Cygwin.
When in MobaXterm, I checked the aliases that were used, I saw something like this:
alias vim='_tob vim'
What is this _tob ...
0
votes
1
answer
80
views
Installing GTKWave at Cygwin fails because of missing libbz2 headers
I have installed Cygwin at my Win11 system.
Afterwards I downloaded the source code of GTKWave (gtkwave-gtk3-3.3.114).
When I try to compile GTKWave by calling the commands "configure" and ...
-4
votes
2
answers
140
views
Installing par-packer under Cygwin: Perl version mismatch woes
I am trying to get par-packer running under Cygwin and having problems with Perl version mismatch. After installing and trying to run, I get this error:
bin > pp -o ehive_decode.exe myscript.pl
...
1
vote
1
answer
107
views
STOP RUN wmissing-newline. Can somebody explain this COBOL error?
I've recently picked up on COBOL coding and have been following Derek Banas tutorial video on it. I decided to test out the IF/ELSE coding on my own, but every time I create a new file and compile it ...
0
votes
1
answer
51
views
m4: cannot open `gcc': No such file or directory
I am trying to build GMP on Windows, using Cygwin64. I run ./configure with no troubles, but make prints some nonsense:
C:/cygwin64/bin/sh.exe ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4=&...
0
votes
1
answer
81
views
Is there a Cygwin Bash command or script capability to convert a hex string to packed binary?
For work, I'm writing a Cygwin Bash script that must convert a hex string to packed binary format. At the present, I'm doing this with a C# program. But I would really like to do it inside the script, ...
-1
votes
3
answers
381
views
why do i have this compile error installing numpy in venv on cygwin?
I am running python 3.9 in cygwin on Windows 10. The python is cygwin's python. I tried "pip install numpy" from a newly created venv. However it was not able to find a compatible wheel and ...
1
vote
1
answer
91
views
Is rsync to Windows supported by GitHub actions?
I'm trying to deploy a .Net Core application via GitHub actions from an ubuntu runner to a Windows Server 2022 machine using rsync (not ideal, I'm aware), and it's been giving me quite a bit of ...
0
votes
0
answers
30
views
Why a long line printed by python in gitbash or cygwin become broken (multiple) lines when being copy and pasted?
I have a python program that prints some examples so that users can copy and paste to run. The examples are all long lines.
I noticed that when python printed a long line in gitbash, and then I copy ...
1
vote
0
answers
52
views
Why am I getting a segmentation fault in my assembly code after adding everything I subtracted from stack?
basically my code is trying to read from an input.txt file and creates a new RECORD based on that data. I had someone look over my initial draft and they said that I did not allocate enough space in ...
1
vote
1
answer
82
views
Program Fails to Run After Adding OpenSSL Code (SSL_library_init)
I compile for WIndows10, using gcc for Cygwin64
openssl is installed through cygwin's installer
Add SSL_library_init();
Before and after the code and compile and run results compared:
test.c
#include &...
0
votes
0
answers
76
views
Redefinition of timeval
I'm developing a pintools that makes use of the winsock2 lib. I'm working on Windows, so to perform the compilation via make command I installed cygwin.
When compiling I get the following error:
C:\...
0
votes
0
answers
15
views
How to fix cygwin with jpeg support to make it run? [duplicate]
I run cygwin with jpeg support on windows 10.
I copied
{mypath}\cygwin64\usr\share\doc\libjpeg-turbo\example.c
to a local folder and ran in that local folder
{mypath}\cygwin64\bin\gcc.exe example.c -...
1
vote
0
answers
280
views
Cygwin's git ssh problem - no matching host key type found
After updating cygwin packages the cygwin's git is no longer able to access the repository.
Everything was working perfectly before the update.
$ git pull
Unable to negotiate with xxx.xxx.xxx.xx port ...
0
votes
0
answers
56
views
make: *** No rule to make target '/usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/iostream', needed by 'bitmap.o'. Stop
I'm trying to use G++ (cygwin) with a makefile to compile my project.
I get the following error in this context:
wilso@LAPTOP-xxx /cygdrive/c/Users/wilso/cs_os_project_11_hw/cs_os_project_11_hw/code/...
0
votes
1
answer
177
views
Failure trying to pip install in Cygwin: "UserWarning: unprocessed git archival found (no export subst applied)"
I'm trying to install some Python packages on Cygwin, on an X86_64 machine running Windows 10.
I've just updated my Cygwin distribution, and installed python. Now, using pip, some packages install ...
1
vote
0
answers
90
views
How to define weak functions with Cygwin C compiler?
I'm trying to compile C code on Windows 10 using cygwin gcc-g++ 11.3.0-1 that compiles perfectly fine using a gcc-arm-none-eabi cross-compiler.
lib.h:
typedef enum
{
SYSUTILS_RET_OK = 0,
...
0
votes
3
answers
124
views
Can you improve on this command line perl script for finding all perl installations on a system?
#/usr/bin/env perl
# Last modified: Sat Aug 24 2024 10:48:44 PM -04:00 [EDT]
#
use File::Which;
use File::Basename;
use File::stat;
use Digest::MD5;
# use Data::Dump qw/dump/;
use warnings;
=head1 ...
1
vote
1
answer
94
views
Powershell 5 and 7 processes double quotes in different way when running Cygwin
I need to run bash commands under Powershell using Cygwin's bash.
I faced the issue that Powershell 5 and 7 processes double quotes in different way.
I'd like to have bash script working in both. Can ...
0
votes
0
answers
28
views
Call to printf missing _img__ references
I have installed CygWin in a fairly minimal installation that has gcc. When I write a program
#include <cstdio>
int main()
{
printf("asdf");
return 0;
}
and compile it via gcc a....
1
vote
0
answers
117
views
what locale does grep use if no environment variable explicitly sets it?
In case this is relevant: I'm using Git Bash for Windows but NOT the usual mintty launcher (I'm running bash directly), so I have fewer environment variables set than "normal". In ...
0
votes
0
answers
190
views
Rsync --compare-dest with remote directory giving errors
On local Win11 machine, I'm using rsync v3.3 through Cygwin v3.5.3 and on my remote ubuntu 22.04 machine, I'm using rsync v3.2.7.
I have a source directory in my local machine whilst compare and ...