-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
gettid() is undeclared (Linux) #23351
Comments
Appears to be just your version of Linux. On Manjaro, I get this:
|
Are you using glibc or musl? |
glibc |
Currently we already do: #if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif This was added to fix such error on Debian 10. |
For reference, OpenMandriva currently has glibc 2.40. Lines 952 to 957 in c50d4ee
@felipensp I believe we should either:
#define _GNU_SOURCE
#include <unistd.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A test fails to compile due to the
gettid()
function being undeclared.Reproduction Steps
v vlib/v/tests/trace_calls_test.v
Expected Behavior
The test to succeed.
Current Behavior
The test fails to compile:
Possible Solution
https://stackoverflow.com/questions/61979901/gcc-warns-about-gettid-syscall-wrapper-with-glibc-2-30-8
Additional Information/Context
No response
V version
0.4.9
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
Huly®: V_0.6-21782
The text was updated successfully, but these errors were encountered: