-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
How can I successfully build it on an older version of Linux, such as CentOS 7 #357
Comments
Does your system have glibc-devel installed? See https://stackoverflow.com/questions/69731318/could-not-locate-usable-posix-threads-in-centos-7 |
Package glibc-devel-2.17-326.el7_9.3.x86_64 already installed and latest version |
[ 80%] Linking CXX shared library libbpftime-agent-transformer.so |
Try replacing |
In the document says that the feature of bpftime,"In this mode, bpftime can run eBPF programs in userspace without kernel, so it can be ported into low version of Linux "
"I would like to build bpftime on CentOS 7(kernel is 3.10.0-1160.el7.x86_64); however, I encountered an issue as the documentation specifies that it can only be built on Ubuntu Ubuntu 23.04. How can I successfully build it on an older version of Linux, such as CentOS 7?
[root@centos7 bpftime]# tail -f /home/ubuntu/bpftime/build/CMakeFiles/CMakeError.log
/usr/bin/cc -fno-omit-frame-pointer -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_d6624.dir/CheckFunctionExists.c.o -o cmTC_d6624 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[2]: *** [cmTC_d6624] Error 1
gmake[2]: Leaving directory
/home/ubuntu/bpftime/build/CMakeFiles/CMakeTmp' gmake[1]: *** [cmTC_d6624/fast] Error 2 gmake[1]: Leaving directory
/home/ubuntu/bpftime/build/CMakeFiles/CMakeTmp'[root@centos7 bpftime]# gcc --version
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
The text was updated successfully, but these errors were encountered: