Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 5 Feb 2015 02:08:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 04 21:08:56 2015 Received: from localhost ([127.0.0.1]:34410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YJBsF-0004FE-Ef for submit <at> debbugs.gnu.org; Wed, 04 Feb 2015 21:08:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58520) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <guitarhero683@HIDDEN>) id 1YJAFR-0001eq-5K for submit <at> debbugs.gnu.org; Wed, 04 Feb 2015 19:24:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <guitarhero683@HIDDEN>) id 1YJAFK-0007BQ-KU for submit <at> debbugs.gnu.org; Wed, 04 Feb 2015 19:24:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <guitarhero683@HIDDEN>) id 1YJAFK-0007BM-HB for submit <at> debbugs.gnu.org; Wed, 04 Feb 2015 19:24:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guitarhero683@HIDDEN>) id 1YJAFJ-0007jn-1v for bug-grep@HIDDEN; Wed, 04 Feb 2015 19:24:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <guitarhero683@HIDDEN>) id 1YJAFH-0007B8-F7 for bug-grep@HIDDEN; Wed, 04 Feb 2015 19:24:36 -0500 Received: from mail-ig0-x229.google.com ([2607:f8b0:4001:c05::229]:57587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <guitarhero683@HIDDEN>) id 1YJAFH-0007B4-8K for bug-grep@HIDDEN; Wed, 04 Feb 2015 19:24:35 -0500 Received: by mail-ig0-f169.google.com with SMTP id hl2so35080736igb.0 for <bug-grep@HIDDEN>; Wed, 04 Feb 2015 16:24:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=n15ZiA/TRd4TpcI/jsuMf2Qi+xXZP4my8L4FplD6I9Y=; b=miPkA4QOK/F9tEnZ0HY99Lgo866Dt7shakapn2OMagn0ixcwzCWVuhnntVTnVKgHTS yzMMp3w/qiOJfX6wQaRKhg5rDb5r+VBLEaAog8+dT1yjtQ3IhnTpcjF4qpI3i0zSnMmV 0CH6UE9GqMlfzfnTUIEQm5tlQy0ge3bFHW6Q5KhquzfHJl6jewBhLhctue2vlSW4eYUy g76yqrJGQJ8yp7n2xfADu1iFYw24PHRCtW78HkvW+87LWw+iCb7u+E6qWWYqkJghFl4P i0095H9TW2NyirxcoiE/peYt6esUtIeyraxFKetarl2cLCpd1xMH3uNuFTVYmTJkGjsM LVvA== MIME-Version: 1.0 X-Received: by 10.50.143.44 with SMTP id sb12mr27461618igb.3.1423095874405; Wed, 04 Feb 2015 16:24:34 -0800 (PST) Received: by 10.42.205.205 with HTTP; Wed, 4 Feb 2015 16:24:34 -0800 (PST) Date: Wed, 4 Feb 2015 19:24:34 -0500 Message-ID: <CAAf1vSzk1FADnqUdYFzig4-=XYpAmfqdTSGaeJd1XiX2hxqKqQ@HIDDEN> Subject: Cross compiling grep for Mingw-w64 and wildcards don't work From: Guitar Hero <guitarhero683@HIDDEN> To: bug-grep@HIDDEN Content-Type: multipart/mixed; boundary=001a1134be8c13cf14050e4c5455 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 04 Feb 2015 21:08:53 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.8 (---) --001a1134be8c13cf14050e4c5455 Content-Type: multipart/alternative; boundary=001a1134be8c13cf11050e4c5453 --001a1134be8c13cf11050e4c5453 Content-Type: text/plain; charset=UTF-8 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? --001a1134be8c13cf11050e4c5453 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div><div>Hello I have cross-compiled grep for W= indows using the mingw-w64 32-bit toolchain. I have some problems with it o= n Windows and I had some problems building. The steps I took in Ubuntu were= :<br><br>sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w= 64-tool<br>sudo apt-get install autopoint bison libbison-dev gperf texinfo<= br></div><br>Clone the grep repo; currently at master 846e7ee.<br><br></div= >./bootstrap<br></div>./configure --host=3Di686-w64-mingw32<br><br></div>Th= ere were errors because Werror is enabled. I edited the lib/Makefile direct= ly to remove -Werror from WERROR_CFLAGS. I built again and got warnings lik= e "cast from function call of type 'intptr_t' to non-matching = type 'void *'". A list of the warnings is attached.<br><br>Now= I have a grep.exe but wild cards aren't working from the command promp= t. And from the msys bash shell directories are bad file descriptor.<br><br= ><div><div><div><div>grep -r a *<br>grep: *: Invalid argument<br><br></div>= <div>From bash I get bad file descriptors for directories:<br><br>$ /c/grep= -r a *<br>c:\grep.exe: dir: Bad file descriptor<br><br></div><div>I really= would like to use grep on windows, primarily from the command prompt. I do= n't know if I've done anything that is wrong or maybe there is a bu= g somewhere. Unfortunately I don't think I'll be able to fix what i= s happening. Can you help?<br></div><div><br></div><div><br></div></div></d= iv></div></div> --001a1134be8c13cf11050e4c5453-- --001a1134be8c13cf14050e4c5455 Content-Type: text/plain; charset=US-ASCII; name="grep build warnings.txt" Content-Disposition: attachment; filename="grep build warnings.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i5re86xd0 ZHVwMi5jOiB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XJuaW5nOiByZXR1cm4gZGlzY2FyZHMgJ2Nv bnN0JyBxdWFsaWZpZXIgZnJvbSBwb2ludGVyIHRhcmdldCB0eXBlIFtlbmFibGVkIGJ5IGRlZmF1 bHRdDQogICAgICAgcmV0dXJuICIiOw0KICAgICAgIF4NCg0KbmxfbGFuZ2luZm8uYzoyNzk6Nzog d2FybmluZzogcmV0dXJuIGRpc2NhcmRzICdjb25zdCcgcXVhbGlmaWVyIGZyb20gcG9pbnRlciB0 YXJnZXQgdHlwZSBbZW5hYmxlZCBieSBkZWZhdWx0XQ0KICAgICAgIHJldHVybiAiXDBcMFwwXDBc MFwwXDBcMFwwXDAiOw0KICAgICAgIF4NCg0KbmxfbGFuZ2luZm8uYzozMTQ6Nzogd2FybmluZzog cmV0dXJuIGRpc2NhcmRzICdjb25zdCcgcXVhbGlmaWVyIGZyb20gcG9pbnRlciB0YXJnZXQgdHlw ZSBbZW5hYmxlZCBieSBkZWZhdWx0XQ0KICAgICAgIHJldHVybiAiXlt5WV0iOw0KICAgICAgIF4N Cg0KbmxfbGFuZ2luZm8uYzozMTY6Nzogd2FybmluZzogcmV0dXJuIGRpc2NhcmRzICdjb25zdCcg cXVhbGlmaWVyIGZyb20gcG9pbnRlciB0YXJnZXQgdHlwZSBbZW5hYmxlZCBieSBkZWZhdWx0XQ0K ICAgICAgIHJldHVybiAiXltuTl0iOw0KICAgICAgIF4NCg0KbmxfbGFuZ2luZm8uYzozMTg6Nzog d2FybmluZzogcmV0dXJuIGRpc2NhcmRzICdjb25zdCcgcXVhbGlmaWVyIGZyb20gcG9pbnRlciB0 YXJnZXQgdHlwZSBbZW5hYmxlZCBieSBkZWZhdWx0XQ0KICAgICAgIHJldHVybiAiIjsNCg== --001a1134be8c13cf14050e4c5455--
Guitar Hero <guitarhero683@HIDDEN>
:bug-grep@HIDDEN
.
Full text available.bug-grep@HIDDEN
:bug#19777
; Package grep
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.