Skip to content

implicit declaration of function ‘io_uring_register_iowq_max_workers’  #147

@danie-dejager

Description

@danie-dejager

When compiling bfs with liburing 2.0 enabled on Amazon Linux 2023 I get the following failure:

src/ioq.c: In function ‘ioq_ring_init’:
src/ioq.c:886:9: error: implicit declaration of function ‘io_uring_register_iowq_max_workers’ [-Werror=implicit-function-declaration]
  886 |         io_uring_register_iowq_max_workers(&thread->ring, values);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Is my version of liburing too old to be used by bfs?

Attached:
config.log

Versions:
gcc (GCC) 11.4.1
GNU Make 4.3
liburing 2.0

Configure output:
[ GEN] gen/vars.mk
[ CC ] build/empty.c ✔
[ CC ] flags/Wmissing-var-decls.c ✘
[ CC ] flags/Wimplicit-fallthrough.c ✔
[ CC ] flags/Wimplicit.c ✔
[ CC ] flags/Wformat.c ✔
[ CC ] flags/Wmissing-decls.c ✔
[ CC ] flags/Wundef-prefix.c ✘
[ CC ] flags/Wshadow.c ✔
[ CC ] flags/Wsign-compare.c ✔
[ CC ] flags/Wstrict-prototypes.c ✔
[ CC ] flags/bind-now.c ✔
[ CC ] flags/deps.c ✔
[ GEN] gen/flags.mk
[ CC ] with/libcap.c ✔
[ CC ] with/liburing.c ✔
[ CC ] with/oniguruma.c ✔
[ CC ] with/libselinux.c ✔
[ CC ] with/libacl.c ✔
[ GEN] gen/pkgs.mk
[ CC ] has/--st-birthtim.c ✘
[ CC ] has/acl-is-trivial-np.c ✘
[ CC ] has/_Fork.c ✔
[ CC ] has/acl-get-tag-type.c ✔
[ CC ] has/acl-get-entry.c ✔
[ CC ] has/acl-get-file.c ✔
[ CC ] has/builtin-riscv-pause.c ✘
[ CC ] has/acl-trivial.c ✘
[ CC ] has/extattr-get-file.c ✘
[ CC ] has/extattr-get-link.c ✘
[ CC ] has/aligned-alloc.c ✔
[ CC ] has/extattr-list-file.c ✘
[ CC ] has/extattr-list-link.c ✘
[ CC ] has/confstr.c ✔
[ CC ] has/fdclosedir.c ✘
[ CC ] has/getdents.c ✘
[ CC ] has/getmntent-2.c ✘
[ CC ] has/getmntinfo.c ✘
[ CC ] has/getdents64.c ✔
[ CC ] has/getdents64-syscall.c ✔
[ CC ] has/getmntent-1.c ✔
[ CC ] has/getprogname.c ✘
[ CC ] has/posix-getdents.c ✘
[ CC ] has/getprogname-gnu.c ✔
[ CC ] has/pipe2.c ✔
[ CC ] has/posix-spawn-addfchdir.c ✘
[ CC ] has/st-acmtimespec.c ✘
[ CC ] has/posix-spawn-addfchdir-np.c ✔
[ CC ] has/st-birthtim.c ✘
[ CC ] has/st-birthtimespec.c ✘
[ CC ] has/st-acmtim.c ✔
[ CC ] has/st-flags.c ✘
[ CC ] has/strerror-r-posix.c ✘
[ CC ] has/statx.c ✔
[ CC ] has/strerror-r-gnu.c ✔
[ CC ] has/statx-syscall.c ✔
[ CC ] has/strerror-l.c ✔
[ CC ] has/string-to-flags.c ✘
[ CC ] has/tcgetwinsize.c ✘
[ CC ] has/strtofflags.c ✘
[ CC ] has/timer-create.c ✔
[ CC ] has/timegm.c ✔
[ CC ] has/tm-gmtoff.c ✔
[ CC ] has/uselocale.c ✔
[ GEN] gen/config.h
[ GEN] gen/config.mk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions