Opened 3 weeks ago

Closed 11 days ago

#71178 closed defect (fixed)

bfs fails on 10.6.8: error: '_Generic' selector of type 'long unsigned int' is not compatible with any association

Reported by: barracuda156 Owned by: judaew (Vadym-Valdis Yudaiev)
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: Cc: ylluminarious (George Plymale II), aeiouaeiouaeiouaeiouaeiouaeiou
Port: bfs

Description

--->  Configuring bfs
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/bfs-4.0.3" && ./configure --prefix=/opt/local 
[ GEN] gen/vars.mk
[ CC ] build/empty.c                   ✔
[ CC ] flags/Wundef-prefix.c           ✘
[ CC ] flags/Wformat.c                 ✔
[ CC ] flags/Wsign-compare.c           ✔
[ CC ] flags/Wstrict-prototypes.c      ✔
[ CC ] flags/Wimplicit.c               ✔
[ CC ] flags/Wmissing-var-decls.c      ✔
[ CC ] flags/Wmissing-decls.c          ✔
[ CC ] flags/Wshadow.c                 ✔
[ CC ] flags/bind-now.c                ✘
[ CC ] flags/Wimplicit-fallthrough.c   ✔
[ CC ] flags/deps.c                    ✔
[ GEN] gen/flags.mk
[ CC ] with/liburing.c                 ✘
[ CC ] with/libselinux.c               ✘
[ CC ] with/libcap.c                   ✘
[ CC ] with/libacl.c                   ✘
[ CC ] with/oniguruma.c                ✔
[ GEN] gen/pkgs.mk
[ CC ] has/extattr-list-link.c         ✘
[ CC ] has/extattr-list-file.c         ✘
[ CC ] has/_Fork.c                     ✘
[ CC ] has/acl-trivial.c               ✘
[ CC ] has/getprogname-gnu.c           ✘
[ CC ] has/extattr-get-link.c          ✘
[ CC ] has/builtin-riscv-pause.c       ✘
[ CC ] has/fdclosedir.c                ✘
[ CC ] has/getmntent-1.c               ✘
[ CC ] has/getmntent-2.c               ✘
[ CC ] has/aligned-alloc.c             ✘
[ CC ] has/getdents.c                  ✘
[ CC ] has/--st-birthtim.c             ✘
[ CC ] has/posix-getdents.c            ✘
[ CC ] has/extattr-get-file.c          ✘
[ CC ] has/getdents64-syscall.c        ✘
[ CC ] has/getdents64.c                ✘
[ CC ] has/confstr.c                   ✔
[ CC ] has/pipe2.c                     ✘
[ CC ] has/acl-is-trivial-np.c         ✘
[ CC ] has/st-acmtim.c                 ✘
[ CC ] has/acl-get-file.c              ✔
[ CC ] has/posix-spawn-addfchdir.c     ✘
[ CC ] has/st-birthtim.c               ✘
[ CC ] has/statx-syscall.c             ✘
[ CC ] has/acl-get-entry.c             ✔
[ CC ] has/posix-spawn-addfchdir-np.c  ✘
[ CC ] has/statx.c                     ✘
[ CC ] has/strerror-l.c                ✘
[ CC ] has/tcgetwinsize.c              ✘
[ CC ] has/strerror-r-gnu.c            ✘
[ CC ] has/uselocale.c                 ✘
[ CC ] has/getmntinfo.c                ✔
[ CC ] has/timer-create.c              ✘
[ CC ] has/string-to-flags.c           ✘
[ CC ] has/st-flags.c                  ✔
[ CC ] has/acl-get-tag-type.c          ✔
[ CC ] has/st-acmtimespec.c            ✔
[ CC ] has/st-birthtimespec.c          ✔
[ CC ] has/getprogname.c               ✔
[ CC ] has/strtofflags.c               ✔
[ CC ] has/strerror-r-posix.c          ✔
[ CC ] has/tm-gmtoff.c                 ✔
[ CC ] has/timegm.c                    ✔
[ GEN] gen/config.h
[ GEN] gen/config.mk
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  __builtin_riscv_pause: found in bfs-4.0.3/gen/config.log
  _Fork: found in bfs-4.0.3/gen/config.log
  acl_trivial: found in bfs-4.0.3/gen/config.log
  posix_spawn_file_actions_addfchdir: found in bfs-4.0.3/gen/config.log
  string_to_flags: found in bfs-4.0.3/gen/config.log
  strerror_l: found in bfs-4.0.3/gen/config.log
  tcgetwinsize: found in bfs-4.0.3/gen/config.log
  getdents64: found in bfs-4.0.3/gen/config.log
  posix_getdents: found in bfs-4.0.3/gen/config.log
  duplocale: found in bfs-4.0.3/gen/config.log
  acl_is_trivial_np: found in bfs-4.0.3/gen/config.log
  timer_create: found in bfs-4.0.3/gen/config.log
  uselocale: found in bfs-4.0.3/gen/config.log
  aligned_alloc: found in bfs-4.0.3/gen/config.log
  getdents: found in bfs-4.0.3/gen/config.log
  fdclosedir: found in bfs-4.0.3/gen/config.log
  posix_spawn_file_actions_addfchdir_np: found in bfs-4.0.3/gen/config.log
--->  Building bfs
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/bfs-4.0.3" && /usr/bin/make -j6 -w bfs CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/cc/opt/local/bin/gcc-mp-14" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/cxx/opt/local/bin/g++-mp-14" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/objc/opt/local/bin/gcc-mp-14" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/objcxx/opt/local/bin/g++-mp-14" FC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/fc/opt/local/bin/gfortran-mp-14" F77="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/f77/opt/local/bin/gfortran-mp-14" F90="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/f90/opt/local/bin/gfortran-mp-14" INSTALL="/opt/x86_64/bin/ginstall -c" 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/bfs-4.0.3'
[ CC ] src/main.c
[ CC ] src/bftw.c
[ CC ] src/bar.c
[ CC ] src/alloc.c
[ CC ] src/bfstd.c
[ CC ] src/color.c
In file included from src/bfstd.c:7:
src/bfstd.c: In function 'asciinlen':
src/bit.h:205:18: error: '_Generic' selector of type 'long unsigned int' is not compatible with any association
  205 |         _Generic((n), \
      |                  ^
src/bfstd.c:753:24: note: in expansion of macro 'bswap'
  753 |                 word = bswap(word);
      |                        ^~~~~
make: *** [obj/src/bfstd.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/bfs-4.0.3'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/bfs-4.0.3" && /usr/bin/make -j6 -w bfs CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/cc/opt/local/bin/gcc-mp-14" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/cxx/opt/local/bin/g++-mp-14" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/objc/opt/local/bin/gcc-mp-14" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/objcxx/opt/local/bin/g++-mp-14" FC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/fc/opt/local/bin/gfortran-mp-14" F77="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/f77/opt/local/bin/gfortran-mp-14" F90="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/work/compwrap/f90/opt/local/bin/gfortran-mp-14" INSTALL="/opt/x86_64/bin/ginstall -c" 
Exit code: 2
Error: Failed to build bfs: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_bfs/bfs/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port bfs failed

https://github.com/tavianator/bfs/issues/145

Change History (2)

comment:1 Changed 3 weeks ago by barracuda156

Summary: Build fails on 10.6.8: error: '_Generic' selector of type 'long unsigned int' is not compatible with any associationbfs fails on 10.6.8: error: '_Generic' selector of type 'long unsigned int' is not compatible with any association

comment:2 Changed 11 days ago by aeiouaeiouaeiouaeiouaeiouaeiou

Resolution: fixed
Status: assignedclosed

In 264b37bab1e25a9c6e3c5a61f11cf3e2e9da9ec8/macports-ports (master):

bfs: update to 4.0.4

Closes: #71168
Closes: #71178

Note: See TracTickets for help on using tickets.