Skip to content

Conversation

@janblumenkamp
Copy link
Contributor

I tried to build AirSim on Ubuntu 18.04, but the setup.sh script failed at compiling and installing clang with the following error message:

[...]
Built target cxx_objects                                                                                                         
Built target cxxabi_objects                                                                                                                  
Built target cxxabi_shared                                                                                                         
Built target cxx_shared                                                                                                   
Built target cxx_static                                                                                           
Built target cxx                                                                                                   
Scanning dependencies of target cxx-headers                                                                               
CMake Error: Cannot open file for write: /auto/homes/jb2270/l310_project/AirSimClang/llvm-build/projects/libcxx/include/CMakeFiles/cxx-header
s.dir/depend.make.tmp                                                                                            
CMake Error: : System Error: Permission denied                                                                
projects/libcxx/include/CMakeFiles/cxx-headers.dir/build.make:70: recipe for target 'projects/libcxx/include/CMakeFiles/cxx-headers.dir/depen
d' failed                                                                                                                    
make[3]: *** [projects/libcxx/include/CMakeFiles/cxx-headers.dir/depend] Error 2                                       
CMakeFiles/Makefile2:14215: recipe for target 'projects/libcxx/include/CMakeFiles/cxx-headers.dir/all' failed          
make[2]: *** [projects/libcxx/include/CMakeFiles/cxx-headers.dir/all] Error 2                                         
CMakeFiles/Makefile2:14427: recipe for target 'projects/libcxx/lib/CMakeFiles/install-libcxx.dir/rule' failed           
make[1]: *** [projects/libcxx/lib/CMakeFiles/install-libcxx.dir/rule] Error 2                                              
Makefile:4255: recipe for target 'install-libcxx' failed                                                           
make: *** [install-libcxx] Error 2                                                                                 
[...]

The setup script itself weirdly did not really failed, it ran through anyways. Only when trying to run build.sh it complained with ERROR: clang++ and libc++ is necessary to compile AirSim and run it in Unreal engine. Please run setup.sh first. The reason for that is that for some reason the installation is attempted as sudo, but this does not really make sense and leads to the error message. Therefore I removed the sudo for all local operations. Both setup and build now runs successfully.

@madratman
Copy link
Contributor

good catch, thanks!

@madratman madratman merged commit b9487b1 into microsoft:master Mar 23, 2020
rajat2004 added a commit to rajat2004/AirSim that referenced this pull request Mar 24, 2020
rajat2004 added a commit to rajat2004/AirSim that referenced this pull request Mar 27, 2020
saihv pushed a commit to saihv/AirSim that referenced this pull request Apr 2, 2020
pjreed pushed a commit to swri-robotics/AirSim that referenced this pull request May 21, 2020
Former-commit-id: 4d19c0ad77e083a999e8f4eeffec14f2b4a73f32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants