-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Package 'clang-8' has no installation candidate, Ubuntu 22.04 #4892
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
Comments
Some problem!!! |
I installed clang-11 and changed it in setup.sh, but build.sh failed to find -lc++fs: no file or directory |
facing the same issue, has someone found the solution? It looks like clang-8 is not supported in Ubuntu 22.04. @chenfei8888 did you figure out the solution? |
According to this SO post it seems like the C/C++ filesystem library was added to the base standard library in later releases so removing them should suffice. Changes to remove them here: Seems to build successfully, haven't tested anything as of yet. |
I installed it with clang-12 here is what I have changed within the files. Im using it with Unity
setup.sh build.sh cmake/cmake-modules/CommonSetup.cmake ros2/src/airsim_ros_pks/CMakeLists.txt Unity/build.sh |
I got following errors, -lstdc++ No such file or directory
|
I ended up using ubuntu20.04. |
Just in case anyone else arrives here via google. Run the following in terminal and then re-run build.sh: sudo apt-get -y install libunwind-dev libstdc++-12-dev Should work now. Happy to create a PR for @JulianDev24 + my changes if repo maintainers are interested? |
The maintainers were unfortunately laid off. Initially, microsoft announced they were deprecated this repo for a newer, "Project Airsim" (probably an internal reorg). In October 2023, https://wonderfulengineering.com/microsoft-just-shut-down-its-industrial-metaverse-project-airsim-and-laid-off-its-team/
I wonder if someone should/could fork it, maybe that person could be me in many months time - just getting started with Airsim right now 😂️ Getting AirSim building in early 2024Warning: After getting Airsim to build, I couldn't open the Blocks unreal project in Unreal 4.27: I use Debian 12 (admittedly, not ubuntu 22.04), and had to use LLVM/clang18 and remove usage of diff --git a/Unity/build.sh b/Unity/build.sh
index 5e0aa938..1a2f3741 100755
--- a/Unity/build.sh
+++ b/Unity/build.sh
@@ -18,11 +18,11 @@ fi
cd linux-build
if [ "$(uname)" == "Darwin" ]; then
- export CC=/usr/local/opt/llvm@8/bin/clang
- export CXX=/usr/local/opt/llvm@8/bin/clang++
+ export CC=/usr/local/opt/llvm@18/bin/clang
+ export CXX=/usr/local/opt/llvm@18/bin/clang++
else
- export CC="clang-8"
- export CXX="clang++-8"
+ export CC="clang-18"
+ export CXX="clang++-18"
fi
# check for local cmake build created by setup.sh
diff --git a/build.sh b/build.sh
index 8b45d64b..cfde0f4f 100755
--- a/build.sh
+++ b/build.sh
@@ -64,11 +64,11 @@ if [ "$(uname)" == "Darwin" ]; then
export CXX="$(brew --prefix)/opt/llvm/bin/clang++"
else
if $gcc; then
- export CC="gcc-8"
- export CXX="g++-8"
+ export CC="gcc-18"
+ export CXX="g++-18"
else
- export CC="clang-8"
- export CXX="clang++-8"
+ export CC="clang-18"
+ export CXX="clang++-18"
fi
fi
diff --git a/cmake/cmake-modules/CommonSetup.cmake b/cmake/cmake-modules/CommonSetup.cmake
index 11d0c9bc..f814b18f 100644
--- a/cmake/cmake-modules/CommonSetup.cmake
+++ b/cmake/cmake-modules/CommonSetup.cmake
@@ -59,9 +59,9 @@ macro(CommonSetup)
if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
set(CMAKE_CXX_FLAGS "-stdlib=libc++ -Wno-documentation -Wno-unknown-warning-option ${CMAKE_CXX_FLAGS}")
find_package(LLVM REQUIRED CONFIG)
- set(CXX_EXP_LIB "-L${LLVM_LIBRARY_DIRS} -lc++fs -ferror-limit=10")
+ set(CXX_EXP_LIB "-L${LLVM_LIBRARY_DIRS} -ferror-limit=10")
else()
- set(CXX_EXP_LIB "-lstdc++fs -fmax-errors=10 -Wnoexcept -Wstrict-null-sentinel")
+ set(CXX_EXP_LIB "-fmax-errors=10 -Wnoexcept -Wstrict-null-sentinel")
endif ()
endif ()
diff --git a/ros2/src/airsim_ros_pkgs/CMakeLists.txt b/ros2/src/airsim_ros_pkgs/CMakeLists.txt
index 6d961a43..b2684f7c 100644
--- a/ros2/src/airsim_ros_pkgs/CMakeLists.txt
+++ b/ros2/src/airsim_ros_pkgs/CMakeLists.txt
@@ -34,7 +34,7 @@ set(CMAKE_CXX_FLAGS "-O3 -Wall -Wextra -Wnoexcept -Wstrict-null-sentinel")
set(CXX_EXP_LIB "-nostdinc++ -I/usr/include/c++/8 -I/usr/include/x86_64-linux-gnu/c++/8 -nodefaultlibs
-l/usr/lib/x86_64-linux-gnu/libc++.so -l/usr/lib/x86_64-linux-gnu/libc++abi.so
-lm -lc -lgcc_s -lgcc
--lstdc++fs -fmax-errors=10")
+-fmax-errors=10")
set(RPC_LIB_INCLUDES " ${AIRSIM_ROOT}/external/rpclib/rpclib-2.3.0/include")
set(RPC_LIB rpc)
message(STATUS "found RPC_LIB_INCLUDES=${RPC_LIB_INCLUDES}")
diff --git a/setup.sh b/setup.sh
index fd0b71e2..5edf8785 100755
--- a/setup.sh
+++ b/setup.sh
@@ -50,7 +50,7 @@ else #linux
software-properties-common \
wget \
libvulkan1 \
- vulkan-utils
+ vulkan-tools
#install clang and build tools
VERSION=$(lsb_release -rs | cut -d. -f1)
@@ -60,7 +60,7 @@ else #linux
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
fi
- sudo apt-get install -y clang-8 clang++-8 libc++-8-dev libc++abi-8-dev
+ sudo apt-get install -y clang-18 clang++-18 libc++-18-dev libc++abi-18-dev
fi
if ! which cmake; then
|
@xxEoD2242, your repo has the same issues since it still uses clang 8 and references old libraries like |
@ben-xD We don't support Ubuntu 22.04 natively. You need to update the clang and vulkan libraries if you want to install it locally. Or use Docker |
We're struggling with a similar issue on our sim. Changing clang version from 8 → 12 breaks compatibility on Ubuntu 20.04, because of pthread symbols that are exposed in the rpclib library that are undefined for the cross-compile tool for Unreal Engine 4.27. Apparently this PR fixes the issues on Ubuntu 22.04. We do however use an older version of Airsim that was stripped down a lot. @xxEoD2242 Do you see a similar issue when changing from clang version 8 → 12 when using UE 5+? The symbol I'm talking about is |
it works for me! |
Similar to @ben-xD adding that I was also able to get this to work on Ubuntu 24.04.1 by replacing references to clang-8 with clang-18 (the version of clang you get with In other interesting news, the LinuxBlocks 1.8.1 binary works again -- I guess they got Vulkan figured out. Woo! |
@nabeelsherazi Were you able to open the Blocks unreal project in Unreal 4.27? (just like it was mentioned in a comment of @ben-xD) |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
What's the issue you encountered?
I follow the instruction: https://microsoft.github.io/AirSim/build_linux/ to install AirSim in Ubuntu
In a section "Build AirSim" I cloned repository and then executed
./setup.sh
This provoke an error: "Package 'clang-8' has no installation candidate"
I did not find any similar issue or any relative information. The full log is shown below. Please help if you have any idea how to fix it. I saw that clang is not supported for Ubuntu 22.04, but maybe there is a way to run it without reinstalling Ubuntu.
Settings
How can the issue be reproduced?
Include full error message in text form
./setup.sh
The text was updated successfully, but these errors were encountered: