GNU bug report logs -
#19777
Cross compiling grep for Mingw-w64 and wildcards don't work
Previous Next
To reply to this bug, email your comments to 19777 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-grep <at> gnu.org
:
bug#19777
; Package
grep
.
(Thu, 05 Feb 2015 02:09:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Guitar Hero <guitarhero683 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Thu, 05 Feb 2015 02:09: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)]
Hello I have cross-compiled grep for Windows using the mingw-w64 32-bit
toolchain. I have some problems with it on Windows and I had some problems
building. The steps I took in Ubuntu were:
sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tool
sudo apt-get install autopoint bison libbison-dev gperf texinfo
Clone the grep repo; currently at master 846e7ee.
./bootstrap
./configure --host=i686-w64-mingw32
There were errors because Werror is enabled. I edited the lib/Makefile
directly to remove -Werror from WERROR_CFLAGS. I built again and got
warnings like "cast from function call of type 'intptr_t' to non-matching
type 'void *'". A list of the warnings is attached.
Now I have a grep.exe but wild cards aren't working from the command
prompt. And from the msys bash shell directories are bad file descriptor.
grep -r a *
grep: *: Invalid argument
From bash I get bad file descriptors for directories:
$ /c/grep -r a *
c:\grep.exe: dir: Bad file descriptor
I really would like to use grep on windows, primarily from the command
prompt. I don't know if I've done anything that is wrong or maybe there is
a bug somewhere. Unfortunately I don't think I'll be able to fix what is
happening. Can you help?
[Message part 2 (text/html, inline)]
[grep build warnings.txt (text/plain, attachment)]
Severity set to 'minor' from 'normal'
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Sat, 30 May 2015 20:08:02 GMT)
Full text and
rfc822 format available.
Merged 16444 19777.
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Sat, 30 May 2015 20:08:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.