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

Cmake error after pulling repo #189

Closed
rlober opened this issue May 5, 2015 · 10 comments
Closed

Cmake error after pulling repo #189

rlober opened this issue May 5, 2015 · 10 comments

Comments

@rlober
Copy link

rlober commented May 5, 2015

Hey guys @francesco-romano @traversaro,

I was doing my bi-weekly update of the icub repos and after I pulled gazebo-yarp-plugins and tried running cmake .. from my build dir I get the following output/error:

ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins/build$ cmake ..
-- Boost version: 1.46.1
-- Found PROTOBUF: /usr/lib/libprotobuf.so  
-- Looking for OGRE...
-- OGRE_PREFIX_WATCH changed.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'OGRE'
--   found OGRE, version 1.7.4
-- Found Ogre Cthugha (1.7.4)
-- Found OGRE: optimized;/usr/lib/x86_64-linux-gnu/libOgreMain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/lib/x86_64-linux-gnu/libOgrePaging.so;debug;/usr/lib/x86_64-linux-gnu/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/lib/x86_64-linux-gnu/libOgreProperty.so;debug;/usr/lib/x86_64-linux-gnu/libOgreProperty.so
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   serialization
--   system
-- Looking for OGRE...
-- Found Ogre Cthugha (1.7.4)
-- Looking for OGRE_Paging...
-- Looking for OGRE_Terrain...
-- Looking for OGRE_Property...
-- Looking for OGRE_RTShaderSystem...
-- checking for module 'gazebo'
--   found gazebo, version 4.1.1
-- checking for module 'sdformat'
--   found sdformat, version 2.2.0
-- checking for module 'protobuf'
--   found protobuf, version 2.4.1
-- Not processing thrift file clock_rpc.thrift, ALLOW_IDL_GENERATION=OFF
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr
Aborted (core dumped)

Ryan

@traversaro
Copy link
Member

O_o
CMake version? Have you tried erasing the old build directory?

@rlober
Copy link
Author

rlober commented May 5, 2015

ryan@ISIR2014057:$ cmake --version
cmake version 2.8.11.2

and Yes, I did erase the old build and start from scratch. When I try run cmake .. or ccmake ..` I get the same errors.

@traversaro
Copy link
Member

I guess it is on Ubuntu 12.04 . I will try to find a 12.04 box to replicate.

@rlober
Copy link
Author

rlober commented May 5, 2015

Thanks man.

@rlober
Copy link
Author

rlober commented May 5, 2015

Just an update...

I checked out a previous commit 0c4fa62 and this fixed the problem.

@traversaro
Copy link
Member

Mhh.. two things.
Can you checkout the current master, after PR #190 and try?
If it is still not working, can you try post the output of the following commands:

which cmake
ldd `which cmake`
which pkg-config 
ldd `which pkg-config`

@rlober
Copy link
Author

rlober commented May 5, 2015

Still not working... all the ouput is below:

ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins$ git checkout master
Previous HEAD position was 0c4fa62... Reverted travis.xml
Switched to branch 'master'
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins$ git pull
remote: Counting objects: 1, done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), done.
From https://github.com/robotology/gazebo-yarp-plugins
   fca8ce2..6bdb463  master     -> origin/master
Updating fca8ce2..6bdb463
Fast-forward
 CMakeLists.txt                                  |   16 +++++++---------
 plugins/controlboard/src/ControlBoardDriver.cpp |    4 ++++
 2 files changed, 11 insertions(+), 9 deletions(-)
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins$ rm -rf build/
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins$ mkdir build
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins$ cd build/
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins/build$ cmake ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   serialization
--   system
-- Found PROTOBUF: /usr/lib/libprotobuf.so  
-- Looking for OGRE...
-- OGRE_PREFIX_WATCH changed.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'OGRE'
--   found OGRE, version 1.7.4
-- Found Ogre Cthugha (1.7.4)
-- Found OGRE: optimized;/usr/lib/x86_64-linux-gnu/libOgreMain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/lib/x86_64-linux-gnu/libOgrePaging.so;debug;/usr/lib/x86_64-linux-gnu/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/lib/x86_64-linux-gnu/libOgreProperty.so;debug;/usr/lib/x86_64-linux-gnu/libOgreProperty.so
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so
-- Looking for OGRE_Paging...
-- Looking for OGRE_Terrain...
-- Looking for OGRE_Property...
-- Looking for OGRE_RTShaderSystem...
-- Not processing thrift file clock_rpc.thrift, ALLOW_IDL_GENERATION=OFF
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr
Aborted (core dumped)
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins/build$ which cmake
/usr/bin/cmake
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins/build$ ldd `which cmake`
    linux-vdso.so.1 =>  (0x00007fffa877c000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff344cf9000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff344ae1000)
    libarchive.so.12 => /usr/lib/x86_64-linux-gnu/libarchive.so.12 (0x00007ff344857000)
    libcurl.so.4 => /usr/lib/x86_64-linux-gnu/libcurl.so.4 (0x00007ff3445fa000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff3442f9000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff3440e3000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff343d24000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff343b06000)
    /lib64/ld-linux-x86-64.so.2 (0x00007ff344f30000)
    libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007ff3438fe000)
    libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007ff3436f9000)
    liblzma.so.5 => /usr/lib/x86_64-linux-gnu/liblzma.so.5 (0x00007ff3434d6000)
    libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007ff3432c6000)
    libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007ff342f6a000)
    libnettle.so.4 => /usr/lib/x86_64-linux-gnu/libnettle.so.4 (0x00007ff342d43000)
    libidn.so.11 => /usr/lib/x86_64-linux-gnu/libidn.so.11 (0x00007ff342b10000)
    liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007ff342902000)
    libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007ff3426b2000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff3424aa000)
    libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007ff34226c000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007ff34200d000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007ff341c32000)
    librtmp.so.0 => /usr/lib/x86_64-linux-gnu/librtmp.so.0 (0x00007ff341a18000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff34171b000)
    libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ff3414ff000)
    libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007ff3412e3000)
    libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007ff3410a5000)
    libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007ff340de9000)
    libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007ff340b69000)
    libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007ff34089b000)
    libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007ff340673000)
    libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007ff34046e000)
    libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007ff340266000)
    libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007ff34005e000)
    libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007ff33fdd8000)
    libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007ff33fb38000)
    libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007ff33f903000)
    libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007ff33f6ee000)
    libtasn1.so.3 => /usr/lib/x86_64-linux-gnu/libtasn1.so.3 (0x00007ff33f4dd000)
    libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007ff33f2ca000)
    libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007ff33f0c6000)
    libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007ff33eec2000)
    libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007ff33ec98000)
    libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007ff33ea89000)
    libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007ff33e83f000)
    libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007ff33e59b000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007ff33e362000)
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins/build$ which pkg-config
/usr/bin/pkg-config
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins/build$ ldd `which pkg-config`
    linux-vdso.so.1 =>  (0x00007fffc3110000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f7ea6349000)
    libpopt.so.0 => /lib/x86_64-linux-gnu/libpopt.so.0 (0x00007f7ea613c000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7ea5d7d000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f7ea5b40000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7ea5922000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f7ea571a000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f7ea6671000)
ryan@ISIR2014057:~/Code/iCub_Software/gazebo-yarp-plugins/build$ 

@traversaro
Copy link
Member

Mh... we were able to replicate. For the meanwhile, can you disable the kalakris ppa that you use for CMake 2.8.11 and get instead CMake 2.8.12 from the robotology ppa https://launchpad.net/%7Erobotology/+archive/ubuntu/ppa , as suggested in https://github.com/robotology/codyco-superbuild/#system-dependencies-2 ?

@francesco-romano
Copy link
Collaborator

Hi @rlober
Can you try after 9c12ed9 ?

@rlober
Copy link
Author

rlober commented May 5, 2015

@francesco-romano
Worked like a charm! Thanks guys!

👍

@rlober rlober closed this as completed May 5, 2015
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