GNU bug report logs - #64879
Error: obstack.c: In function '_obstack_allocated_p':

Previous Next

Package: grep;

Reported by: Sajjad Ali <a.sajjad.72 <at> outlook.com>

Date: Wed, 26 Jul 2023 18:31:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64879 in the body.
You can then email your comments to 64879 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#64879; Package grep. (Wed, 26 Jul 2023 18:31: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. (Wed, 26 Jul 2023 18:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sajjad Ali <a.sajjad.72 <at> outlook.com>
To: "bug-grep <at> gnu.org" <bug-grep <at> gnu.org>
Subject: Error: obstack.c: In function '_obstack_allocated_p':
Date: Wed, 26 Jul 2023 18:15:08 +0000
[Message part 1 (text/plain, inline)]
I am trying to build grep for windows on MSYS2.

here are the packages which i had installed (development and end user packages) :
```
$ pacman -Q 'libiconv' 'libintl' 'libpcre' 'sh' 'texinfo' 'gettext-devel' 'libiconv-devel' 'pcre-devel' 'autotools' 'gcc' 'automake' 'gettext' 'git' 'gperf' 'gzip' 'help2man' 'm4' 'make' 'pkg-config' 'tar' 'wget' 'xz'
libiconv 1.17-1
libintl 0.22-1
libpcre 8.45-3
bash 5.2.015-1
texinfo 7.0.3-3
gettext-devel 0.22-1
libiconv-devel 1.17-1
pcre-devel 8.45-3
autotools 2022.01.16-2
gcc 11.3.0-4
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
wget 1.21.4-1
xz 5.4.3-1
```

no error while ./bootstrap​ and ./configure​. when running make​ after a while it throws error:

​```
obstack.c: In function '_obstack_allocated_p':
obstack.c:240:1: error: function might be candidate for attribute 'pure' if it is known to return normally [-Werror=suggest-attribute=pure]
  240 | _obstack_allocated_p (struct obstack *h, void *obj)
      | ^~~~~~~~~~~~~~~~~~~~
obstack.c: In function '_obstack_memory_used':
obstack.c:291:1: error: function might be candidate for attribute 'pure' if it is known to return normally [-Werror=suggest-attribute=pure]
  291 | _obstack_memory_used (struct obstack *h)
      | ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
```

here are the complete logs from ./bootstrap​ to make​.
[https://res-h3.public.cdn.office.net/assets/mail/file-icon/png/txt_16x16.png]logs.txt<https://1drv.ms/t/s!Ak1RUL7i7AyEhChY_Y3q2L1tqKkK>
[Message part 2 (text/html, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Wed, 26 Jul 2023 23:21:02 GMT) Full text and rfc822 format available.

Notification sent to Sajjad Ali <a.sajjad.72 <at> outlook.com>:
bug acknowledged by developer. (Wed, 26 Jul 2023 23:21:02 GMT) Full text and rfc822 format available.

Message #10 received at 64879-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Sajjad Ali <a.sajjad.72 <at> outlook.com>
Cc: 64879-done <at> debbugs.gnu.org
Subject: Re: bug#64879: Error: obstack.c: In function '_obstack_allocated_p':
Date: Wed, 26 Jul 2023 16:20:11 -0700
On 2023-07-26 11:15, Sajjad Ali wrote:

> no error while ./bootstrap​ and ./configure​. when running make​ after a while it throws error:

Try './configure --disable-gcc-warnings', since you're getting false alarms.

PS. ./bootstrap requires some expertise. If you use it you need to know 
the quirks of your system pretty well - in this case, that you have a 
compiler that cries wolf.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 Aug 2023 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.