I was trying to build grep for windows using MSYS2. Why using MSYS2 for building grep. How does MSYS2 differ from Cygwin?<https://www.msys2.org/wiki/How-does-MSYS2-differ-from-Cygwin/>
All the pre-requisites are installed. $ pacman -Q autoconf automake gettext git gperf gzip help2man m4 make pkg-config tar texinfo wget xz autoconf-wrapper 20221207-1 automake-wrapper 20221207-1 gettext 0.22-1 git 2.41.0-1 gperf 3.1-5 gzip 1.12-2 help2man 1.49.3-1 m4 1.4.19-2 make 4.4.1-1 pkgconf 1.9.4-1 tar 1.34-3 texinfo 7.0.3-3 wget 1.21.4-1 xz 5.4.3-1 while executing the command ./bootstrap it gives an error: /usr/bin/autopoint: line 505: /usr/share/gettext/archive.dir.tar.xz: No such file or directory tar: This does not look like a tar archive tar: gettext-0.18.2: Not found in archive tar: Exiting with failure status due to previous errors autopoint: *** infrastructure files for version 0.18.2 not found; this is autopoint from GNU gettext-tools 0.22 autopoint: *** Stop. ./bootstrap: could not generate auxiliary files here is the complete log of ./bootstrap: $ ./bootstrap ./bootstrap: Bootstrapping from checked-out grep sources... ./bootstrap: getting gnulib files... ./bootstrap: consider installing git-merge-changelog from gnulib ./bootstrap: getting translations into po/.reference for grep... Last-modified header missing -- time-stamps turned off. 2023-07-25 14:31:54 URL:https://translationproject.org/latest/grep/ [9247] -> "po/.reference/index.html.tmp" [1] https://translationproject.org/robots.txt: 2023-07-25 14:31:54 ERROR 404: Not Found. Last-modified header missing -- time-stamps turned off. 2023-07-25 14:31:54 URL:https://translationproject.org/latest/grep/?C=N;O=D [9247] -> "po/.reference/index.html@C=N;O=D.tmp" [1] Last-modified header missing -- time-stamps turned off. 2023-07-25 14:31:55 URL:https://translationproject.org/latest/grep/?C=M;O=A [9247] -> "po/.reference/index.html@C=M;O=A.tmp" [1] Last-modified header missing -- time-stamps turned off. 2023-07-25 14:31:55 URL:https://translationproject.org/latest/grep/?C=S;O=A [9247] -> "po/.reference/index.html@C=S;O=A.tmp" [1] Last-modified header missing -- time-stamps turned off. 2023-07-25 14:31:55 URL:https://translationproject.org/latest/grep/?C=D;O=A [9247] -> "po/.reference/index.html@C=D;O=A.tmp" [1] Last-modified header missing -- time-stamps turned off. 2023-07-25 14:31:55 URL:https://translationproject.org/latest/ [30430] -> "po/.reference/index.html.tmp" [1] FINISHED --2023-07-25 14:32:06-- Total wall clock time: 14s Downloaded: 6 files, 75K in 0.2s (337 KB/s) ./bootstrap: autopoint --force /usr/bin/autopoint: line 505: /usr/share/gettext/archive.dir.tar.xz: No such file or directory tar: This does not look like a tar archive tar: gettext-0.18.2: Not found in archive tar: Exiting with failure status due to previous errors autopoint: *** infrastructure files for version 0.18.2 not found; this is autopoint from GNU gettext-tools 0.22 autopoint: *** Stop. ./bootstrap: could not generate auxiliary files