Skip to content
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

Travis is broken with quite a strange error #23

Open
traversaro opened this issue Jun 13, 2018 · 5 comments
Open

Travis is broken with quite a strange error #23

traversaro opened this issue Jun 13, 2018 · 5 comments
Assignees

Comments

@traversaro
Copy link
Contributor

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
Copy link
Collaborator

fiorisi commented Jun 17, 2018

@gabrielenava do you have time to check this issue?

@gabrielenava
Copy link
Collaborator

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.

@gabrielenava gabrielenava self-assigned this Jun 19, 2018
@traversaro
Copy link
Contributor Author

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
Copy link
Collaborator

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

@traversaro
Copy link
Contributor Author

I guess we should migrate to use Docker and recent linux distros as done in robotology/robotology-superbuild#96 .

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

No branches or pull requests

3 participants