public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* newlib-cygwin build fails on dumper
@ 2024-03-14 16:10 Brian Inglis
  2024-03-15  9:10 ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Inglis @ 2024-03-14 16:10 UTC (permalink / raw)
  To: Cygwin Patches

Hi folks,

During newlib-cygwin build to test patches, with latest current stable packages 
as of last weekend, and yesterday's repo main/master, get a warning, then errors 
building dumper:

...

   CC       libc/reent/libc_a-getentropyr.o
/usr/src/newlib-cygwin/newlib/libc/reent/getentropyr.c: In function ‘_getentropy_r’:
/usr/src/newlib-cygwin/newlib/libc/reent/getentropyr.c:48:14: warning: implicit 
declaration of function ‘_getentropy’; did you mean ‘getentropy’? 
[-Wimplicit-function-declaration]
    48 |   if ((ret = _getentropy (buf, buflen)) == -1 && errno != 0)
       |              ^~~~~~~~~~~
       |              getentropy

...

   CXX      dumper-dumper.o
In file included from /usr/src/newlib-cygwin/winsup/utils/dumper.cc:23:
/usr/include/bfd.h:2748:1: error: expected initializer before 
‘ATTRIBUTE_WARN_UNUSED_RESULT’
  2748 | ATTRIBUTE_WARN_UNUSED_RESULT;
       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bfd.h:2751:1: error: expected initializer before 
‘ATTRIBUTE_WARN_UNUSED_RESULT’
  2751 | ATTRIBUTE_WARN_UNUSED_RESULT;
       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bfd.h:2753:27: error: expected initializer before 
‘ATTRIBUTE_WARN_UNUSED_RESULT’
  2753 | file_ptr bfd_tell (bfd *) ATTRIBUTE_WARN_UNUSED_RESULT;
       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bfd.h:2757:37: error: expected initializer before 
‘ATTRIBUTE_WARN_UNUSED_RESULT’
  2757 | int bfd_stat (bfd *, struct stat *) ATTRIBUTE_WARN_UNUSED_RESULT;
       |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bfd.h:2759:37: error: expected initializer before 
‘ATTRIBUTE_WARN_UNUSED_RESULT’
  2759 | int bfd_seek (bfd *, file_ptr, int) ATTRIBUTE_WARN_UNUSED_RESULT;
       |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bfd.h:2770:1: error: expected initializer before 
‘ATTRIBUTE_WARN_UNUSED_RESULT’
  2770 | ATTRIBUTE_WARN_UNUSED_RESULT;
       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:782: dumper-dumper.o] Error 1
make[5]: Leaving directory '/usr/src/build64/x86_64-pc-cygwin/winsup/utils'

...

$ uname -srvmo
CYGWIN_NT-10.0-19045 3.5.1-1.x86_64 2024-02-27 11:54 UTC x86_64 Cygwin
$ cygcheck -c `sed 's!,!!g' <<< 'binutils, cygwin, libgcc1, libintl8, libzstd1, 
zlib0, autoconf, automake, cocom, cygport, dblatex, dejagnu, docbook-xml45, 
docbook-xsl, docbook2X, gcc-g++, gettext-devel, libiconv, libiconv-devel, 
libzstd-devel, make, mingw64-x86_64-gcc-g++, mingw64-x86_64-zlib, patch, perl, 
python39-lxml, python39-ply, texlive-collection-fontsrecommended, 
texlive-collection-latexrecommended, texlive-collection-pictures, xmlto, 
zlib-devel'`
Cygwin Package Information
Package                             Version     Status
autoconf                            15-2           OK
automake                            11-1           OK
binutils                            2.42-1         OK
cocom                               0.996-2        OK
cygport                             0.36.8-1       OK
cygwin                              3.5.1-1        OK
dblatex                             0.3.12-2       OK
dejagnu                             1.6.3-1        OK
docbook-xml45                       4.5-1          OK
docbook-xsl                         1.77.1-1       OK
docbook2X                           0.8.8-1        OK
gcc-g++                             11.4.0-1       OK
gettext-devel                       0.22.4-1       OK
libgcc1                             11.4.0-1       OK
libiconv                            1.17-1         OK
libiconv-devel                      1.17-1         OK
libintl8                            0.22.4-1       OK
libzstd-devel                       1.5.5-1        OK
libzstd1                            1.5.5-1        OK
make                                4.4.1-2        OK
mingw64-x86_64-gcc-g++              11.4.0-1       OK
mingw64-x86_64-zlib                 1.3.1-1        OK
patch                               2.7.6-17       OK
perl                                5.36.3-1       OK
python39-lxml                       4.7.1-1        OK
python39-ply                        3.11-3         OK
texlive-collection-fontsrecommended 20230313-1     OK
texlive-collection-latexrecommended 20230313-1     OK
texlive-collection-pictures         20230313-1     OK
xmlto                               0.0.28-1       OK
zlib-devel                          1.3.1-1        OK
zlib0                               1.3.1-1        OK

Any ideas what might be going wrong here or what I may be missing?

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: newlib-cygwin build fails on dumper
  2024-03-14 16:10 newlib-cygwin build fails on dumper Brian Inglis
@ 2024-03-15  9:10 ` Corinna Vinschen
  2024-03-15 16:51   ` Brian Inglis
  0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2024-03-15  9:10 UTC (permalink / raw)
  To: cygwin-patches

On Mar 14 10:10, Brian Inglis wrote:
> Hi folks,
> 
> During newlib-cygwin build to test patches, with latest current stable
> packages as of last weekend, and yesterday's repo main/master, get a
> warning, then errors building dumper:
> 
> ...
> 
>   CC       libc/reent/libc_a-getentropyr.o
> /usr/src/newlib-cygwin/newlib/libc/reent/getentropyr.c: In function ‘_getentropy_r’:
> /usr/src/newlib-cygwin/newlib/libc/reent/getentropyr.c:48:14: warning:
> implicit declaration of function ‘_getentropy’; did you mean ‘getentropy’?
> [-Wimplicit-function-declaration]
>    48 |   if ((ret = _getentropy (buf, buflen)) == -1 && errno != 0)
>       |              ^~~~~~~~~~~
>       |              getentropy
> 
> ...
> 
>   CXX      dumper-dumper.o
> In file included from /usr/src/newlib-cygwin/winsup/utils/dumper.cc:23:
> /usr/include/bfd.h:2748:1: error: expected initializer before
> ‘ATTRIBUTE_WARN_UNUSED_RESULT’
>  2748 | ATTRIBUTE_WARN_UNUSED_RESULT;
>       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/bfd.h:2751:1: error: expected initializer before

I'm pretty sure this isn't the latest newlib-cygwin main.

The getentropy warning has been fixed on 2023-09-25 by commit
a9e8e3d1cb82 ("newlib: Add missing prototype for _getentropy")

The ATTRIBUTE_WARN_UNUSED_RESULT error message has been fixed on
2024-02-12 by commit 10c8c1cf4f94 ("include/ansidecl.h: import from
binutils-gdb")


Corinna

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: newlib-cygwin build fails on dumper
  2024-03-15  9:10 ` Corinna Vinschen
@ 2024-03-15 16:51   ` Brian Inglis
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Inglis @ 2024-03-15 16:51 UTC (permalink / raw)
  To: cygwin-patches

On 2024-03-15 03:10, Corinna Vinschen wrote:
> On Mar 14 10:10, Brian Inglis wrote:
>> During newlib-cygwin build to test patches, with latest current stable
>> packages as of last weekend, and yesterday's repo main/master, get a
>> warning, then errors building dumper:

> I'm pretty sure this isn't the latest newlib-cygwin main.
> 
> The getentropy warning has been fixed on 2023-09-25 by commit
> a9e8e3d1cb82 ("newlib: Add missing prototype for _getentropy")
> 
> The ATTRIBUTE_WARN_UNUSED_RESULT error message has been fixed on
> 2024-02-12 by commit 10c8c1cf4f94 ("include/ansidecl.h: import from
> binutils-gdb")

Thanks Corinna,

I think I missed the -b after checkout, changed to an old existing local branch 
rather than creating one, and did not notice the discrepancy, so I should 
version the branches appropriately to avoid repeating this kind of thing! ;^>

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-15 16:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-14 16:10 newlib-cygwin build fails on dumper Brian Inglis
2024-03-15  9:10 ` Corinna Vinschen
2024-03-15 16:51   ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).