GNU bug report logs -
#64879
Error: obstack.c: In function '_obstack_allocated_p':
Previous Next
Full log
View this message in rfc822 format
[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)]
[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)]
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.