Package: grep;
Reported by: Sajjad Ali <a.sajjad.72 <at> outlook.com>
Date: 2023年7月27日 04:35:02 UTC
Severity: normal
To reply to this bug, email your comments to 64887 AT debbugs.gnu.org.
the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
bug-grep <at> gnu.org:bug#64887; Package grep.
(2023年7月27日 04:35:02 GMT) Full text and rfc822 format available.Sajjad Ali <a.sajjad.72 <at> outlook.com>:bug-grep <at> gnu.org.
(2023年7月27日 04:35:02 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Sajjad Ali <a.sajjad.72 <at> outlook.com> To: "bug-grep <at> gnu.org" <bug-grep <at> gnu.org> Subject: grep build for windows `grep.exe` not working. Date: 2023年7月27日 01:28:02 +0000
[Message part 1 (text/plain, inline)]
successfully build grep for windows on MSYS2. no errors. but it shows nothing for "grep.exe -h", "grep --version" or any other supplied argument. here is what i tried PS D:\CodePlayground\grep\src> ls Directory: D:\CodePlayground\grep\src -a---- 7/27/2023 5:25 AM 20 .gitignore -a---- 7/27/2023 5:25 AM 19731 dfasearch.c -a---- 7/27/2023 6:08 AM 32415 dfasearch.o -a---- 7/27/2023 5:25 AM 1120 die.h -a---- 7/27/2023 6:08 AM 102 egrep -a---- 7/27/2023 5:25 AM 118 egrep.sh -a---- 7/27/2023 6:08 AM 102 fgrep -a---- 7/27/2023 5:33 AM 93542 grep.c -a---- 7/27/2023 6:08 AM 2278983 grep.exe -a---- 7/27/2023 5:25 AM 1197 grep.h -a---- 7/27/2023 6:08 AM 147973 grep.o -a---- 7/27/2023 5:25 AM 7597 kwsearch.c -a---- 7/27/2023 6:08 AM 12404 kwsearch.o -a---- 7/27/2023 5:25 AM 28408 kwset.c -a---- 7/27/2023 5:25 AM 1516 kwset.h -a---- 7/27/2023 6:08 AM 136007 kwset.o -a---- 7/27/2023 6:05 AM 63715 Makefile -a---- 7/27/2023 5:33 AM 2433 Makefile.am -a---- 7/27/2023 5:58 AM 84739 Makefile.in -a---- 7/27/2023 5:33 AM 13713 pcresearch.c -a---- 7/27/2023 5:33 AM 3736 search.h -a---- 7/27/2023 5:33 AM 6919 searchutils.c -a---- 7/27/2023 6:08 AM 16344 searchutils.o -a---- 7/27/2023 5:25 AM 3998 system.h PS D:\CodePlayground\grep\src> .\grep.exe --version PS D:\CodePlayground\grep\src> .\grep.exe --help PS D:\CodePlayground\grep\src> .\grep.exe 'grep' .\grep.c PS D:\CodePlayground\grep\src> here are the logs [https://res-h3.public.cdn.office.net/assets/mail/file-icon/png/txt_16x16.png]logs 1.txt<https://1drv.ms/t/s!Ak1RUL7i7AyEhCm6ntKVRcx90QMS> Is there a different way to build GNU softwares for windows. because i also build "GNU make" but it's also same as "GNU grep". if there's a better way which you guys recommend you can share it with me.
[Message part 2 (text/html, inline)]
bug-grep <at> gnu.org:bug#64887; Package grep.
(2023年7月27日 13:55:02 GMT) Full text and rfc822 format available.Message #8 received at 64887 <at> debbugs.gnu.org (full text, mbox):
From: Paul Eggert <eggert <at> cs.ucla.edu> To: Sajjad Ali <a.sajjad.72 <at> outlook.com>, 64887 <at> debbugs.gnu.org Subject: Re: bug#64887: grep build for windows `grep.exe` not working. Date: 2023年7月27日 06:54:12 -0700
On 2023年07月26日 18:28, Sajjad Ali wrote: > Is there a different way to build GNU softwares for windows. WSL 2 should be much less painful. With MSYS2 you have several options and could try some of the other options. Again, I'm the wrong person to ask about this. You'll need some expertise in these systems to use any of them.
bug-grep <at> gnu.org:bug#64887; Package grep.
(2023年7月27日 14:37:02 GMT) Full text and rfc822 format available.Message #11 received at 64887 <at> debbugs.gnu.org (full text, mbox):
From: Dimitry Andric <dimitry <at> andric.com> To: Sajjad Ali <a.sajjad.72 <at> outlook.com> Cc: 64887 <at> debbugs.gnu.org Subject: Re: bug#64887: grep build for windows `grep.exe` not working. Date: 2023年7月27日 16:35:51 +0200
[Message part 1 (text/plain, inline)]
On 27 Jul 2023, at 03:28, Sajjad Ali <a.sajjad.72 <at> outlook.com> wrote: > > successfully build grep for windows on MSYS2. no errors. > > but it shows nothing for "grep.exe -h", "grep --version" or any other supplied argument. Can you run grep.exe in the Visual Studio debugger? Then you should be able to see what is happening more clearly. For example, does it go into main()?, does it parse command line arguments?, etc. Another obvious thing to check first is whether a simple "hello world" program shows any output. If that is not working, there is something wrong with your MSYS development environment. -Dimitry
[signature.asc (application/pgp-signature, attachment)]
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.