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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#64879: closed (Error: obstack.c: In function '_obstack_allocated_p':)
Date: Wed, 26 Jul 2023 23:21:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 26 Jul 2023 16:20:11 -0700
with message-id <1957bedc-f0cb-abb5-2060-a5b25d551409 <at> cs.ucla.edu>
and subject line Re: bug#64879: Error: obstack.c: In function '_obstack_allocated_p':
has caused the debbugs.gnu.org bug report #64879,
regarding Error: obstack.c: In function '_obstack_allocated_p':
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
64879: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64879
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
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.


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.