robotology-legacy / ihmc-ors-yarp

Bridge to interface YARP-powered robots with the IHMC Open Robotics Software ( https://github.com/ihmcrobotics/ihmc-open-robotics-software ).
3 stars 1 forks source link

Travis is broken with quite a strange error #23

Open traversaro opened 6 years ago

traversaro commented 6 years ago

See https://travis-ci.org/robotology-playground/ihmc-ors-yarp/jobs/391717112

Setting environment variables from .travis.yml
$ export TRAVIS_BUILD_TYPE=Debug,
$ export TRAVIS_CMAKE_GENERATOR="Unix Makefiles"
$ export CXX=g++
$ export CC=gcc
$ export PATH=/usr/lib/ccache:$PATH
cache.1
Setting up build cache
$ export CASHER_DIR=$HOME/.casher
0.14s$ Installing caching utilities
0.00s
5.42sattempting to download cache archive
fetching master/cache-linux-trusty-196eeb7c42425b3a23ea558e447077c462e6586596eca627c5cd2a72cd17f259--compiler-gcc.tgz
fetching master/cache--compiler-gcc.tgz
could not download cache
cache.ccache
0.00s
1.11sadding /home/travis/.ccache to cache
$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
before_script.1
0.00s$ cd ..
0.38s$ sudo apt install cmake3 libasio-dev libace-dev libeigen3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libasio-dev
E: Unable to locate package libace-dev
E: Unable to locate package libeigen3-dev
fiorisi commented 6 years ago

@gabrielenava do you have time to check this issue?

gabrielenava commented 6 years ago

Yes I can try to debug this. First of all, I can say that on my pc I can actually compile and run the module, so I guess there might be an issue in the PATH where travis looks for the libraries. I noted that the Ubuntu version in the error is 14.04:

$ gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

Maybe we can try to compile the module on a machine with Ubuntu 14.04, if there is any in the lab.

traversaro commented 6 years ago

I suspect the problem is that now Travis requires sudo apt update to be run before calling sudo apt install. Otherwise we can also specify the package that we want to install using the addons section in the .travis.yml file, as done in YARP https://github.com/robotology/yarp/blob/master/.travis.yml#L41 and documented in the Travis docs https://docs.travis-ci.com/user/installing-dependencies/#Installing-Packages-with-the-APT-Addon .

gabrielenava commented 6 years ago

Is it travis still broken? I haven't received any other notification.

traversaro commented 6 years ago

I guess we should migrate to use Docker and recent linux distros as done in https://github.com/robotology/robotology-superbuild/issues/96 .