-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
build bcc failed on Ubuntu with LLVM18 #5092
Comments
And the cmake version I use is 3.22.1. I installed LLVM according to the Automatic installation script on the LLVM apt package page and manually created a symbolic link for |
I am able to compile BCC with LLVM 18.1.3. Here is my output for cmake output
|
According to the documentation, bison and flex are required. Why is it that in your output, bison and flex were not found, yet the build was still successful? Did I misunderstand something? Please point out my mistake, thank you. |
When I was building bcc using LLVM18 on Ubuntu, I encountered various issues. The system version I was using is as follows:
lsb_release -a
cc -v
c++ -v
At first, I made modifications to
CMakeLists.txt
based on the results of executingcmake ..
. I addedwithin the
if
logic that checks for versions greater than 3.12.0, in order to avoid the CMP0075 issue. Additionally, to output the results of certain options, I added the following print statements at the end:And the result output of
cmake ..
is:After these operations, I performed the
cmake ..
andmake
commands according to the documentation, but ultimately encountered the following error:Based on the error message, I suspected there might be a conflict in the libraries (I don't have much knowledge of C/C++ itself, this is just a simple guess based on google and ChatGPT). Therefore, I modified the
CMakeLists.txt
file, making changes to the following parts:It would then report a massive number of undefined reference errors at the stage of [ 39%] Linking CXX executable CGroupTest.For example:
The above is just a part of the entire error output, which is approximately 30,000 lines long and mostly consists of various
undefined reference
errors. What confuses me is that the previouscmake
output already shows that the choosenlinker
isld.lld
, but here it seems the linker is still/usr/bin/ld
.And even if I only modified theCMAKE_CXX_FLAGS
part, the same error was reported.The text was updated successfully, but these errors were encountered: