Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译报错fatal error: linux/time_types.h: No such file or directory #97

Closed
Lawliet828 opened this issue Nov 21, 2023 · 1 comment · Fixed by #98
Closed

编译报错fatal error: linux/time_types.h: No such file or directory #97

Lawliet828 opened this issue Nov 21, 2023 · 1 comment · Fixed by #98
Labels
compile-error Universal compilation error done A fix has been provided kernel-compat Compatibility with older kernel

Comments

@Lawliet828
Copy link

Lawliet828 commented Nov 21, 2023

What happened + What you expected to happen

编译环境

# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
# uname -r
5.10.0-2.el7.ucloud.x86_64

编译报错

In file included from /root/co_context/include/co_context/config.hpp:3,
                 from /root/co_context/include/co_context/detail/io_context_meta.hpp:3,
                 from /root/co_context/include/co_context/co/mutex.hpp:4,
                 from /root/co_context/include/co_context/co/condition_variable.hpp:3,
                 from /root/co_context/lib/co_context/co/condition_variable.cpp:1:
/root/co_context/include/uring/io_uring.h:20:10: fatal error: linux/time_types.h: No such file or directory
   20 | #include <linux/time_types.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

参考
axboe/liburing#708

co_context中没有检查是否需要设置UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H

@Codesire-Deng
Copy link
Owner

问题可能已经解决,感谢你的提醒! 因为 PR 已合并所以 issue 被自动完成了。 如果还有问题,可以随时重新开启。 Thanks!

@Codesire-Deng Codesire-Deng added the done A fix has been provided label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile-error Universal compilation error done A fix has been provided kernel-compat Compatibility with older kernel
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants