-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Error in ./build.sh #3361
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
I think it's the cmake error but I don't know how to solve this. Thans! |
Seems to be a linker error from the line - |
I have done this,but it still error.
-- Configuring incomplete, errors occurred!
|
Checking my packages, since its related to clang, you might be missing
|
I think the last package is about ROS, so I didn't install it. |
I use a GPU of nvidia 3060TI |
What kernel version are you using @wq1148927746? There are known GPU issues with an AMD-Nvidia configuration. I have a similar configuration and a lot of the gpu issues were resolved after 5.6-5.7 kernel versions. Also, in my case the 'llvmpipe' was showing when I had Nvidia-optimus enabled in the BIOS. Try setting it to only the dedicated GPU option and see if it changes. |
Thanks! I solved this problem. But I still error in ./build.sh. |
This solved the problem for me:
I see this in the setup.sh so I'm not sure what that didn't work, but running it manually fixed the build. |
same issue with mac os 11.2.2
-- Configuring incomplete, errors occurred!
|
For anyone who comes across this thread with @leimo2011 's problem above: (i.e. problem running ./build.sh for AirSim on MacOS Big Sur getting clang-8: error: invalid version number in '-mmacosx-version-min=11.2') in Change
to
(Get rid of the absolute paths) |
Are you still experiencing this issue @wq1148927746? |
Ubuntu 20.04 ########################### I am experiencing the same issue ubuntu@ubuntu-OMEN-by-HP-Desktop-PC:~/AirSim$ ./build.sh
-- Configuring incomplete, errors occurred!
|
Bug report
What's the issue you encountered?
I do like this, everything is well before I run the command ./build.sh.
AirSim setup completed successfully!
debug=false
[[ 0 -gt 0 ]]
'[' '!' -d ./external/rpclib/rpclib-2.2.1 ']'
'[' -d ./cmake_build ']'
++ which cmake
CMAKE=/usr/bin/cmake
false
build_dir=build_release
++ uname
'[' Linux == Darwin ']'
export CC=clang-8
CC=clang-8
export CXX=clang++-8
CXX=clang++-8
[[ -d ./AirLib/deps/eigen3/Eigen ]]
echo 'putting build in build_release folder, to clean, just delete the directory...'
putting build in build_release folder, to clean, just delete the directory...
[[ -f ./cmake/CMakeCache.txt ]]
[[ -d ./cmake/CMakeFiles ]]
folder_name=
[[ ! -d build_release ]]
mkdir -p build_release
pushd build_release
false
folder_name=Release
/usr/bin/cmake ../cmake -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is Clang 8.0.0
-- The CXX compiler identification is Clang 8.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang-8 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++-8
-- Check for working CXX compiler: /usr/bin/clang++-8 - broken
CMake Error at /usr/share/cmake-3.19/Modules/CMakeTestCXXCompiler.cmake:59 (message):
The C++ compiler
"/usr/bin/clang++-8"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/wqf/AirSim/build_release/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_8b979/fast && /usr/bin/make -f CMakeFiles/cmTC_8b979.dir/build.make CMakeFiles/cmTC_8b979.dir/build
make[1]: 进入目录“/home/wqf/AirSim/build_release/CMakeFiles/CMakeTmp”
Building CXX object CMakeFiles/cmTC_8b979.dir/testCXXCompiler.cxx.o
/usr/bin/clang++-8 -o CMakeFiles/cmTC_8b979.dir/testCXXCompiler.cxx.o -c /home/wqf/AirSim/build_release/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_8b979
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8b979.dir/link.txt --verbose=1
/usr/bin/clang++-8 CMakeFiles/cmTC_8b979.dir/testCXXCompiler.cxx.o -o cmTC_8b979
/usr/bin/ld: 找不到 -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CMakeFiles/cmTC_8b979.dir/build.make:105: recipe for target 'cmTC_8b979' failed
make[1]: *** [cmTC_8b979] Error 1
make[1]: 离开目录“/home/wqf/AirSim/build_release/CMakeFiles/CMakeTmp”
Makefile:140: recipe for target 'cmTC_8b979/fast' failed
make: *** [cmTC_8b979/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/home/wqf/AirSim/build_release/CMakeFiles/CMakeOutput.log".
See also "/home/wqf/AirSim/build_release/CMakeFiles/CMakeError.log".
~/AirSim ~/AirSim
Settings
How can the issue be reproduced?
Include full error message in text form
What's better than filing an issue? Filing a pull request :).
The text was updated successfully, but these errors were encountered: