dsh0416/evt

gem doesn't compile due to error

Closed this issue · 1 comments

Hi, I added this gem to the Gemfile and when running bundle install I get the following compile error:

make DESTDIR\= sitearchdir\=./.gem.20230125-71237-skvi31 sitelibdir\=./.gem.20230125-71237-skvi31
compiling evt.c
In file included from evt.c:40:
uring.h: In function ‘method_scheduler_uring_io_read’:
uring.h:140:5: error: too many arguments to function ‘io_uring_prep_read’
  140 |     io_uring_prep_read(sqe, fd, read_buffer, 1, NUM2SIZET(length), NUM2SIZET(offset));
      |     ^~~~~~~~~~~~~~~~~~
In file included from evt.h:21,
                 from evt.c:4:
/usr/include/liburing.h:696:20: note: declared here
  696 | static inline void io_uring_prep_read(struct io_uring_sqe *sqe, int fd,
      |                    ^~~~~~~~~~~~~~~~~~
make: *** [Makefile:246: evt.o] Error 1

make failed, exit code 2

I am using Arch Linux. I am a bit lost with regards to figuring this out 🙂

I just noticed this is explained in the README. liburing must be installed and you are working on lifting this requirement