From unknown Wed Aug 20 06:40:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51457 <51457@debbugs.gnu.org> To: bug#51457 <51457@debbugs.gnu.org> Subject: Status: grep - fails to compile after following steps in README-hacking Reply-To: bug#51457 <51457@debbugs.gnu.org> Date: Wed, 20 Aug 2025 13:40:40 +0000 retitle 51457 grep - fails to compile after following steps in README-hacki= ng reassign 51457 grep submitter 51457 Duncan Roe severity 51457 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 28 04:19:45 2021 Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 08:19:45 +0000 Received: from localhost ([127.0.0.1]:51281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg0dU-000411-Tf for submit@debbugs.gnu.org; Thu, 28 Oct 2021 04:19:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:53130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfzck-00021g-Rx for submit@debbugs.gnu.org; Thu, 28 Oct 2021 03:14:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfzck-00011L-NQ for bug-grep@gnu.org; Thu, 28 Oct 2021 03:14:54 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:46783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfzch-0000Pj-MZ for bug-grep@gnu.org; Thu, 28 Oct 2021 03:14:54 -0400 Received: by mail-pj1-x102b.google.com with SMTP id lx5-20020a17090b4b0500b001a262880e99so3944977pjb.5 for ; Thu, 28 Oct 2021 00:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:date:to:cc:subject:message-id:mime-version :content-disposition; bh=e5m7TU6M6wDroW5BJM4fNWDhsS6gRpwi1mAfdNn1Uqw=; b=kSAeCZvJBmvq7BYO0ca8MOc5IH7r7TWaJJQH+FJQk1ZCda05UoPUhSAmavTCUCgY1S PThcv0Z4XQMcS7xsEpnu78k5RthvLC34RaF+7Uotu2wYPlNY07TsZvG+WgtAbxSZdaK7 WlSOaRVURFFQ6BRgdclgOFDlmx29UB8Pf+KB/oCAIp8fj0KpyI0HrmZ2Ja2/3FkF+3ts r+3jP32Oq8E/QIiJjVUXKnIIG1rb92GVT4fXxWmzjIGkqIyIvzaJ5ig7R30MsBYvvUkU 9tJk2iymvkZOyk8zpv79kvrM5TVCPLgMX1tjRy7GmjRHsficFY/Tx/GXk1vD8Wn1EuKh xOYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :mime-version:content-disposition; bh=e5m7TU6M6wDroW5BJM4fNWDhsS6gRpwi1mAfdNn1Uqw=; b=rk1g6TMPX16/I9gBJdBWoJsbuNB8PSpAysNeme8Ts+S0PSG5orthoPL2fNkwtHOzwd rwhXtudwx/ArBtri34rRWqoKWqMpX++7FBM4xlYVyGEDGRYWWevjUg4DokfZkPvy/txG mejO2MfcIQ0nnzsaQ8wShhTmxM4VFjN6BqLuoz+pPrVtwVJCNNpeKLobwqW2FkRJFi2h tFpI1Orsjftl+ifjCqqOQHuy1orCX70yaJTDZvAFqOfBn2xgtuk43MUReTL/w1I5dJHU VHOkPddXvW9hg6PDrRxUlkoSQ2B29AcJ1RkwwRwQldnW/w89o86DiayeSH+2EFmH41lI H8qw== X-Gm-Message-State: AOAM531B+eOrZRr/7WN2F16cFClEyQxtj9FQzEICmkHKA7ispVDtjo1A wMlQf4EJq5M4nFCZwlUuCjUjeGjwpkU= X-Google-Smtp-Source: ABdhPJwEcW63scXQBFd2Qh/WNKXwDyE/OqL3mgnV4Yr803Ryg6neqJFcmnAimm8Xib4kiEBkcD+oYw== X-Received: by 2002:a17:90b:314c:: with SMTP id ip12mr2737199pjb.23.1635405289315; Thu, 28 Oct 2021 00:14:49 -0700 (PDT) Received: from slk1.local.net (n110-23-108-30.sun3.vic.optusnet.com.au. [110.23.108.30]) by smtp.gmail.com with ESMTPSA id l21sm2204077pfu.213.2021.10.28.00.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 00:14:48 -0700 (PDT) From: Duncan Roe X-Google-Original-From: Duncan Roe Date: Thu, 28 Oct 2021 18:14:44 +1100 To: bug-grep@gnu.org Subject: grep - fails to compile after following steps in README-hacking Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=duncan.roe2@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 28 Oct 2021 04:19:43 -0400 Cc: Duncan Roe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) Hi, I downloaded grep commit f0d97db2. Bypassed export GNULIB_SRCDIR. Did ./bootstrap, git submodule..., git commit...., ./configure and make -j17. Got this error: > CC dirname-lgpl.o > In file included from basename-lgpl.c:25: > ./string.h:624:5: error: token "@" is not valid in preprocessor expressions > 624 | #if @GNULIB_FREE_POSIX@ Also: > make[3]: *** Waiting for unfinished jobs.... > In file included from ./localeinfo.h:24, > from localeinfo.c:24: > ./wchar.h:687:5: error: token "@" is not valid in preprocessor expressions > 687 | #if @GNULIB_FREE_POSIX@ s/@GNULIB_FREE_POSIX@/1/ in string.h and wchar.h. Now: > CC malloc/dynarray_at_failure.o > In file included from basename-lgpl.c:25: > ./string.h:625:7: error: token "@" is not valid in preprocessor expressions > 625 | # if (@REPLACE_FREE@ && !defined free \ Also: > In file included from ./localeinfo.h:24, > from localeinfo.c:24: > ./wchar.h:688:7: error: token "@" is not valid in preprocessor expressions > 688 | # if (@REPLACE_FREE@ && !defined free \ s/@REPLACE_FREE@/0/ in string.h and wchar.h. Now grep builds. I went back to the clone and tried ./bootstrap &c. but without updating gnulib. That builds. Ran `git bisect` in gnulib. The problem starts with commit a4a2d039: > Author: Paul Eggert > Date: Tue Sep 7 17:51:39 2021 -0700 > > string, wchar: avoid some namespace pollution > > * lib/string.in.h, lib/wchar.in.h: > (free): Declare by hand instead of including stdlib.h. > This avoids some namespace pollution. It should also avoid some > nested-include problems described by Lucy Phipps in: > https://lists.gnu.org/r/bug-gnulib/2021-09/msg00018.html > * modules/string, modules/wchar: > (Depends-on): Add stdlib, so that REPLACE_FREE has the right value. > (Makefile.am): Replace @REPLACE_FREE@ when creating the include file. Diffed with previous version but my grasp of autotools is inadequate to figure out what needs to be done. Over to you, Cheers ... Duncan. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 28 13:49:06 2021 Received: (at 51457) by debbugs.gnu.org; 28 Oct 2021 17:49:06 +0000 Received: from localhost ([127.0.0.1]:53093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg9WS-0007nY-J0 for submit@debbugs.gnu.org; Thu, 28 Oct 2021 13:49:06 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg9WB-0007ml-HA for 51457@debbugs.gnu.org; Thu, 28 Oct 2021 13:49:02 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9CF111600D3; Thu, 28 Oct 2021 10:48:40 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id EwW8AP82IItM; Thu, 28 Oct 2021 10:48:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EB94A1600EA; Thu, 28 Oct 2021 10:48:39 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id A8L6_JpvjgUf; Thu, 28 Oct 2021 10:48:39 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B52851600D3; Thu, 28 Oct 2021 10:48:39 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------AiL07G0Nsy1zysrGRC2G19ZO" Message-ID: <7887ff22-f66c-1c21-2fe5-588df456de1d@cs.ucla.edu> Date: Thu, 28 Oct 2021 10:48:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: bug#51457: grep - fails to compile after following steps in README-hacking Content-Language: en-US To: Duncan Roe References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 51457 Cc: 51457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) This is a multi-part message in MIME format. --------------AiL07G0Nsy1zysrGRC2G19ZO Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for reporting the problem. I updated the grep master on savannah to use the latest Gnulib, which has fixes in this area, by installing the attached patch. Please give it a try and let us know how it goes. You may need to run './bootstrap' from a fresh checkout (no caches from the previous build). --------------AiL07G0Nsy1zysrGRC2G19ZO Content-Type: text/x-patch; charset=UTF-8; name="0001-build-update-gnulib-submodule-to-latest.patch" Content-Disposition: attachment; filename="0001-build-update-gnulib-submodule-to-latest.patch" Content-Transfer-Encoding: base64 RnJvbSBlYmQ3MzBhODA3N2IyNWJjZTIyNzRmOTY2ZTA2YTgzYTkxZjI5OWVkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUaHUsIDI4IE9jdCAyMDIxIDEwOjQ1OjMwIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gYnVpbGQ6IHVwZGF0ZSBnbnVsaWIgc3VibW9kdWxlIHRvIGxhdGVzdAoKLS0tCiBnbnVs aWIgfCAyICstCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRpb24oKyksIDEgZGVsZXRpb24o LSkKCmRpZmYgLS1naXQgYS9nbnVsaWIgYi9nbnVsaWIKaW5kZXggNDUyZThhOC4uY2M5MTE2 MCAxNjAwMDAKLS0tIGEvZ251bGliCisrKyBiL2dudWxpYgpAQCAtMSArMSBAQAotU3VicHJv amVjdCBjb21taXQgNDUyZThhOGY3YjA3YTc5NGIxZGUzODEzMDYyYTk5MjUwOWY1YzBjOQor U3VicHJvamVjdCBjb21taXQgY2M5MTE2MGExZWE1ZTE4ZmNiMmNjYWRiMzJlODU3ZDM2NTU4 MWY1MwotLSAKMi4zMi4wCgo= --------------AiL07G0Nsy1zysrGRC2G19ZO-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 16:27:34 2021 Received: (at 51457) by debbugs.gnu.org; 29 Oct 2021 20:27:34 +0000 Received: from localhost ([127.0.0.1]:56064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgYTO-0004FE-LP for submit@debbugs.gnu.org; Fri, 29 Oct 2021 16:27:34 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgYTL-0004Ex-BX for 51457@debbugs.gnu.org; Fri, 29 Oct 2021 16:27:33 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2330B160071; Fri, 29 Oct 2021 13:27:25 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ei10pgLbFZcA; Fri, 29 Oct 2021 13:27:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8DE9F1600B8; Fri, 29 Oct 2021 13:27:23 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Of0Sza-y95Em; Fri, 29 Oct 2021 13:27:23 -0700 (PDT) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6FF3A160071; Fri, 29 Oct 2021 13:27:23 -0700 (PDT) Message-ID: <1a9b59fc-8294-bea8-3577-3ced3d6b202d@cs.ucla.edu> Date: Fri, 29 Oct 2021 13:27:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: bug#51457: grep - fails to compile after following steps in README-hacking Content-Language: en-US To: Duncan Roe References: <7887ff22-f66c-1c21-2fe5-588df456de1d@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 51457 Cc: 51457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 10/28/21 23:32, Duncan Roe wrote: > I can't believe those changes were done on purpose. Would it be helpful if I > submitted a bug report? That file is taken verbatim from texinfo, so the proper place to file a bug report is bug-texinfo@gnu.org. I suggest using "git format-patch" to format your patch. Although I reported this problem earlier and got rebuffed: https://lists.gnu.org/archive/html/bug-texinfo/2012-02/msg00061.html ... Karl Berry is no longer actively maintaining this file so perhaps the current texinfo maintainers would be open to removing the trailing whitespace of this particular file, if they knew how much trouble it was causing downstream. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 23 21:41:24 2021 Received: (at 51457-done) by debbugs.gnu.org; 24 Nov 2021 02:41:24 +0000 Received: from localhost ([127.0.0.1]:52624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpiDr-0000GC-Sv for submit@debbugs.gnu.org; Tue, 23 Nov 2021 21:41:24 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpiDq-0000G0-JB for 51457-done@debbugs.gnu.org; Tue, 23 Nov 2021 21:41:22 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 29B101600BC; Tue, 23 Nov 2021 18:41:17 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Tej_w22UX8gs; Tue, 23 Nov 2021 18:41:16 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 79E461600D3; Tue, 23 Nov 2021 18:41:16 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vLyNWlwivRR1; Tue, 23 Nov 2021 18:41:16 -0800 (PST) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5E5E01600BC; Tue, 23 Nov 2021 18:41:16 -0800 (PST) Message-ID: <26006e0c-f969-accd-cbe1-7881f95b46b7@cs.ucla.edu> Date: Tue, 23 Nov 2021 18:41:12 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: bug#51457: grep - fails to compile after following steps in README-hacking Content-Language: en-US From: Paul Eggert To: Duncan Roe References: <7887ff22-f66c-1c21-2fe5-588df456de1d@cs.ucla.edu> <1a9b59fc-8294-bea8-3577-3ced3d6b202d@cs.ucla.edu> Organization: UCLA Computer Science Department In-Reply-To: <1a9b59fc-8294-bea8-3577-3ced3d6b202d@cs.ucla.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 51457-done Cc: 51457-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) The original bug reported in 51457 seems to have been fixed, so I'm closing the bug report. From unknown Wed Aug 20 06:40:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Dec 2021 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator