msys2 / msys2-runtime

Our friendly fork of Cygwin πŸ’– https://cygwin.org πŸ’– see the wiki for details
https://github.com/msys2/msys2-runtime/wiki
GNU General Public License v2.0
185 stars 39 forks source link

Error found in compilation from binutils #191

Closed piotrvv closed 9 months ago

piotrvv commented 9 months ago
In file included from ../../../../msys2-runtime/winsup/utils/dumper.cc:23:
 [1;31m [1;31m [1;31m [1;31m [1;31m [1;31m/usr/include/bfd.h:2748:1: error: [0m [0m [0m [0m [0m [0m expected initializer before 'ATTRIBUTE_WARN_UNUSED_RESULT'
 2748 | ATTRIBUTE_WARN_UNUSED_RESULT;
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [1;31m [1;31m [1;31m [1;31m [1;31m [1;31m/usr/include/bfd.h:2751:1: error: [0m [0m [0m [0m [0m [0m expected initializer before 'ATTRIBUTE_WARN_UNUSED_RESULT'
 2751 | ATTRIBUTE_WARN_UNUSED_RESULT;
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [1;31m [1;31m [1;31m [1;31m [1;31m [1;31m/usr/include/bfd.h:2753:27: error: [0m [0m [0m [0m [0m [0m expected initializer before 'ATTRIBUTE_WARN_UNUSED_RESULT'
 2753 | file_ptr bfd_tell (bfd *) ATTRIBUTE_WARN_UNUSED_RESULT;
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [1;31m [1;31m [1;31m [1;31m [1;31m [1;31m/usr/include/bfd.h:2757:37: error: [0m [0m [0m [0m [0m [0m expected initializer before 'ATTRIBUTE_WARN_UNUSED_RESULT'
 2757 | int bfd_stat (bfd *, struct stat *) ATTRIBUTE_WARN_UNUSED_RESULT;
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [1;31m [1;31m [1;31m [1;31m [1;31m [1;31m/usr/include/bfd.h:2759:37: error: [0m [0m [0m [0m [0m [0m expected initializer before 'ATTRIBUTE_WARN_UNUSED_RESULT'
 2759 | int bfd_seek (bfd *, file_ptr, int) ATTRIBUTE_WARN_UNUSED_RESULT;
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [1;31m [1;31m [1;31m [1;31m [1;31m [1;31m/usr/include/bfd.h:2770:1: error: [0m [0m [0m [0m [0m [0m expected initializer before 'ATTRIBUTE_WARN_UNUSED_RESULT'
 2770 | ATTRIBUTE_WARN_UNUSED_RESULT;
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [1;34mmake[5]: [0m *** [Makefile:784: dumper-dumper.o] Error 1
 [1;34mmake[5]: [0m *** Waiting for unfinished jobs....
  CXXLD    regtool.exe
 [1;34mmake[5]: [0m Leaving directory '/c/base/MSYS2-packages/msys2-runtime/src/build-x86_64-pc-msys/x86_64-pc-msys/winsup/utils'
 [1;34mmake[4]: [0m *** [Makefile:874: all-recursive] Error 1
 [1;34mmake[4]: [0m Leaving directory '/c/base/MSYS2-packages/msys2-runtime/src/build-x86_64-pc-msys/x86_64-pc-msys/winsup/utils'
 [1;34mmake[3]: [0m *** [Makefile:519: all] Error 2
 [1;34mmake[3]: [0m Leaving directory '/c/base/MSYS2-packages/msys2-runtime/src/build-x86_64-pc-msys/x86_64-pc-msys/winsup/utils'
 [1;34mmake[2]: [0m Leaving directory '/c/base/MSYS2-packages/msys2-runtime/src/build-x86_64-pc-msys/x86_64-pc-msys/winsup'
 [1;34mmake[2]: [0m *** [Makefile:404: all-recursive] Error 1
 [1;34mmake[1]: [0m *** [Makefile:9464: all-target-winsup] Error 2
 [1;34mmake[1]: [0m Leaving directory '/c/base/MSYS2-packages/msys2-runtime/src/build-x86_64-pc-msys'
 [1;34mmake: [0m *** [Makefile:883: all] Error 2
 [1m [31m==> ERROR: (B [m [1m A failure occurred in build(). (B [m
 [1m    Aborting... (B [m
dscho commented 9 months ago

This has been addressed by https://github.com/msys2/msys2-runtime/commit/44b5e4eed0f2f119d312fe718c2124250c8626f9.