Can´t install Autoware.Auto
I tried to install autoware (dashing) auto on a virtual machine with the ubuntu 18.04 operating system. I ran the following commands: ********* Installing the docker ************
//Uninstalling old versions
$ sudo apt-get remove docker docker-engine docker.io containerd runc
// Creating docker engine installation repository
$ sudo apt-get update
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
$ sudo docker run hello-world
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
//restart
$ docker run hello-world
************ NVIDIA Docker ***********
$ sudo apt-get install linux-headers-$(uname -r)
$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID | sed -e 's/\.//g')
$ wget https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/cuda-$distribution.pin
$ sudo mv cuda-$distribution.pin /etc/apt/preferences.d/cuda-repository-pin-600
$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/7fa2af80.pub
$ echo "deb http://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list
$ sudo apt-get update
$ sudo apt-get -y install cuda-drivers
$ sudo reboot
$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
$ sudo apt-get update
$ sudo apt-get install -y nvidia-docker2
$ sudo systemctl restart docker
$ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
************ ADE Installation ***********
$ cd ${HOME}
$ mkdir adehome
$ cd adehome
$ wget https://gitlab.com/ApexAI/ade-cli/uploads/85a5af81339fe55555ee412f9a3a734b/ade+x86_64
$ mv ade+x86_64 ade
$ chmod +x ade
$ sudo mv ade /usr/local/bin
$ which ade
$ sudo ade update-cli
//Update to 4.2.0
$ touch .adehome
$ git clone --recurse-submodules https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto.git
$ cd AutowareAuto/
$ ade --rc .aderc-amd64-dashing start --update --enter
********* Installation AutowareAuto ***********
ade$ exit
$ nano .aderc
//take off export ADE_DISABLE_NVIDIA_DOCKER=true, change the foxy to dashing
ade start -f
ade enter
ade$ cd AutowareAuto/
ade$ vcs import < autoware.auto.$ROS_DISTRO.repos
ade$ colcon build --cmake-args -DCMAKE_BUILD_TYPE="Debug"
[Processing: had_map_utils]e] [had_map_utils:build 33% - 8min 51.4s]
--- stderr: had_map_utils
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file: usr="" share="" doc="" gcc-7="" readme.bugs=""> for instructions.
make[2]: * [CMakeFiles/had_map_utils.dir/src/had_map_computation.cpp.o] Error 4
make[1]: * [CMakeFiles/had_map_utils.dir/all] Error 2
make: * [all] Error 2
Failed <<< had_map_utils [8min 59s, exited with code 2]
Summary: 6 packages finished [11min 38s] 1 package failed: had_map_utils 2 packages had stderr output: autoware_auto_common had_map_utils 80 packages not processed
I also had a error when I did the installation of the nvidia docker (one the least command), but I think it happened because the virtual machine does not have access to the GPU. Thanks for the trouble!
I am getting the same error when I do the install on xubuntu 20.04 with foxy, thanks.
When I've seen this error in the past, it has been caused by the compiler running out of memory. How much memory have you allocated to the VM?
Additionally, we deprecated support for Dashing after the 1.0.0 release so we can't help much with problems on
master
unless you're using Foxy.I allocated 44.36 GB of storage and 2048 MB of memory to VM. But I tried to do the install with foxy and the error was the same.
2GB is definitely too small. Allocate at least 4GB and try again.
ok, thank you for the help
I am do it what you said and it solve that problem but it did not do the complete colcon build. It gave error no package kalman filter:
/opt/ros/foxy/src/gtest_vendor/include/gtest/gtest.h:1495: undefined reference to `autoware::prediction::GenericState<float, autoware::prediction::variable::x,="" autoware::prediction::variable::y="">::kSize' collect2: error: ld returned 1 exit status make[2]: * [CMakeFiles/kalman_filter_gtest.dir/build.make:118: kalman_filter_gtest] Error 1 make[1]: * [CMakeFiles/Makefile2:103: CMakeFiles/kalman_filter_gtest.dir/all] Error 2
make: * [Makefile:141: all] Error 2
Failed <<< kalman_filter [25.8s, exited with code 2]
Can you help me again?
This is a different error from before and is probably a bug I introduced. Let me see why this is happening. If you feel blocked, just roll back 2 commits to a23ba919569d9b98e12e648fbfbee9e3f94731b9 and it will work there.
Just an update, the fix is already in review and will soon be released.