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

c/usdt: fix a compiling error #225

Merged
merged 1 commit into from
Oct 18, 2023
Merged

c/usdt: fix a compiling error #225

merged 1 commit into from
Oct 18, 2023

Conversation

GorilaMond
Copy link
Contributor

Fix 'libbpf: failed to find BTF info for global/extern symbol' since uninitialized global variables on Ubuntu 20.04.6 with clang 10.
I was able to compile on a newer ubuntu with a higher version of clang.
However, on a development module (nVidia Orin AGX) running Ubuntu 20.04.6 LTS with clang version 10.0.0-4ubuntu1, it is not possible to use apt to update clang to a new version. Downloading the source code of a higher version of clang for compilation is cumbersome.
So I hope that with the change, the project code can be easily compiled and used in earlier os.

Fix 'libbpf: failed to find BTF info for global/extern symbol' since uninitialized global variables on Ubuntu 20.04.6 with clang 10.
I was able to compile on a newer ubuntu with a higher version of clang.
However, on a development module (nVidia Orin AGX) running Ubuntu 20.04.6 LTS with clang version 10.0.0-4ubuntu1, it is not possible to use apt to update clang to a new version. Downloading the source code of a higher version of clang for compilation is cumbersome.
So I hope that with the change, the project code can be easily compiled and used in earlier os.

Signed-off-by: LiuLingze <[email protected]>
@anakryiko anakryiko merged commit 2abedb8 into libbpf:master Oct 18, 2023
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants