[cpullvm] Added build-essential to restore missing C++ headers on ubu…#373
[cpullvm] Added build-essential to restore missing C++ headers on ubu…#373pranav4330 wants to merge 1 commit into
Conversation
…ntu-arm-24.04 arm runner Signed-off-by: Pranav Patil <pranpati@qti.qualcomm.com>
| # Used by lldb | ||
| sudo apt-get install swig libedit-dev | ||
| sudo apt-get install swig libedit-dev build-essential | ||
|
|
There was a problem hiding this comment.
build-essential brings GCC and GCC libraries, no LLVM libraries which is the cause of builder failure.
There was a problem hiding this comment.
Go back to the code that installs:
sudo apt install -y libc++-dev libc++abi-dev
And then try to run these commands after the installation to understand better what is failing:
echo '#include ' > test.cpp
echo 'int main() { std::cout << "Hello, Clang on Ubuntu 24.04!" << std::endl; return 0; }' >> test.cpp
clang++ -std=c++17 -stdlib=libc++ test.cpp -o test_clang
./test_clang
If this test passes, then you successfully resolved the problem. Otherwise, it might give us more hints on what needs to be fixed.
There was a problem hiding this comment.
You can also add -v to clang command line to see where clang is searching for C++ lib, and see if it matches what you installed.
There was a problem hiding this comment.
Okay Thank you for the input, i will check on this once and update.
|
I think this has been superseded by #362 right? Might want to close this one/mark it as a draft just to avoid confusion |
Jonathon Penix (jonathonpenix)
left a comment
There was a problem hiding this comment.
Setting "Request changes" just to mark that #362 is the active review to fix this
Ubuntu 24.04 ARM runner no longer includes default C++ headers (libstdc++-dev).
This causes missing header errors like during builds.
Adding build-essential restores the standard C++ toolchain and fixes the issue.