-
Notifications
You must be signed in to change notification settings - Fork 56
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 issue on Linux (Ubuntu 20) #107
Comments
When building LLVM, did you build
|
Yes, lldb was built for the LLVM-16 toolchain. It was not for -15. But, to be clear, I am just using the apt package: llvm_version='16'
curl -sS https://apt.llvm.org/llvm.sh -o llvm_sh
chmod +x llvm_sh
./llvm_sh $llvm_version all &> /dev/null # too much noise
rm llvm_sh
apt-get -qq install clang-format-$llvm_version |
I have tested it, and indeed it cannot be done this way. You can only build llvm_path='~/llvm'
git clone https://github.com/llvm/llvm-project.git --depth=1 -b release/16.x
cd llvm-project
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$llvm_path -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lldb" -DCMAKE_CXX_COMPILER=clang++-15 -G Ninja ../llvm
ninja install
cd ../..
git clone https://github.com/lldb-tools/lldb-mi.git --depth=1
cd lldb-mi
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=$llvm_path -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_INSTALL_PREFIX=$llvm_path -GNinja ..
ninja install |
OK, thanks for looking into it. |
@buchs - On Ubuntu avoiding this error just requires |
I've just compiled I did following steps to compile/install
unfortunatelly, As mentioned, although
I have 2 questions:
|
maybe one more technicality:
|
using @KonanTheLibrarian 's script from #90 (here), didn't help here unfortunately.
|
Note, for my system I have Clang 15 installed along side Clang 16. The former is linked through commands like clang, clang++, cc and c++. So I define these environment variables:
The text was updated successfully, but these errors were encountered: