GNU bug report logs -
#64887
grep build for windows `grep.exe` not working.
Previous Next
To reply to this bug, email your comments to 64887 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-grep <at> gnu.org
:
bug#64887
; Package
grep
.
(Thu, 27 Jul 2023 04:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sajjad Ali <a.sajjad.72 <at> outlook.com>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Thu, 27 Jul 2023 04:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[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)]
Information forwarded
to
bug-grep <at> gnu.org
:
bug#64887
; Package
grep
.
(Thu, 27 Jul 2023 13:55:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 64887 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-grep <at> gnu.org
:
bug#64887
; Package
grep
.
(Thu, 27 Jul 2023 14:37:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 64887 <at> debbugs.gnu.org (full text, mbox):
[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)]
This bug report was last modified 1 year and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.