{"action":"opened","issue":{"url":"https://api.github.com/repos/robotology/himrep/issues/22","repository_url":"https://api.github.com/repos/robotology/himrep","labels_url":"https://api.github.com/repos/robotology/himrep/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/robotology/himrep/issues/22/comments","events_url":"https://api.github.com/repos/robotology/himrep/issues/22/events","html_url":"https://github.com/robotology/himrep/issues/22","id":182578510,"number":22,"title":"Issue with CaffeCoder","user":{"login":"AnneLaureM","id":7047323,"avatar_url":"https://avatars.githubusercontent.com/u/7047323?v=3","gravatar_id":"","url":"https://api.github.com/users/AnneLaureM","html_url":"https://github.com/AnneLaureM","followers_url":"https://api.github.com/users/AnneLaureM/followers","following_url":"https://api.github.com/users/AnneLaureM/following{/other_user}","gists_url":"https://api.github.com/users/AnneLaureM/gists{/gist_id}","starred_url":"https://api.github.com/users/AnneLaureM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnneLaureM/subscriptions","organizations_url":"https://api.github.com/users/AnneLaureM/orgs","repos_url":"https://api.github.com/users/AnneLaureM/repos","events_url":"https://api.github.com/users/AnneLaureM/events{/privacy}","received_events_url":"https://api.github.com/users/AnneLaureM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T16:57:35Z","updated_at":"2016-10-12T16:57:35Z","closed_at":null,"body":"Hi \r\n\r\nWe have difficulties to compile CaffeCoder on the Cuda blade on the cluster.\r\nI get the following error:\r\n\r\n`LD -o .build_release/lib/libcaffe.so.1.0.0-rc3\r\n/usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC\r\n/usr/local/lib/libgflags.a: could not read symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1`\r\n\r\nI have tried with cmake and directly with Makefile.config. And I have already add '-fPIC'. I have already added '-fPIC'.\r\n\r\nThe cmake command returns:\r\n\r\n`icub@icub-cuda:/usr/local/src/robot/caffe/build$ cmake ..\r\n-- Boost version: 1.49.0\r\n-- Found the following Boost libraries:\r\n--   system\r\n--   thread\r\n--   filesystem\r\n-- Found gflags  (include: /usr/local/include, library: /usr/local/lib/libgflags.a)\r\n-- Found glog    (include: /usr/local/include, library: /usr/local/lib/libglog.so)\r\n-- Found PROTOBUF Compiler: /usr/bin/protoc\r\n-- Found lmdb    (include: /usr/local/include, library: /usr/local/lib/liblmdb.so)\r\n-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)\r\n-- Found Snappy  (include: /usr/include, library: /usr/lib/libsnappy.so)\r\n-- CUDA detected: 7.5\r\n-- Found cuDNN: ver. 5.1.3 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)\r\n-- Automatic GPU detection failed. Building for all known architectures.\r\n-- Added CUDA NVCC flags for: sm_20 sm_21 sm_30 sm_35 sm_50\r\n-- OpenCV found (/usr/local/src/robot/opencv/build)\r\n-- Found Atlas (include: /usr/include, library: /usr/lib/atlas-base/libatlas.so)\r\n-- Could NOT find NumPy: Found unsuitable version \"1.6.2\", but required is at least \"1.7.1\" (found /usr/lib/pymodules/python2.7/numpy/core/include)\r\n-- Boost version: 1.49.0\r\n-- Found the following Boost libraries:\r\n--   python\r\n-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) \r\n-- Python interface is disabled or not all required dependencies found. Building without it...\r\n-- \r\n-- ******************* Caffe Configuration Summary *******************\r\n-- General:\r\n--   Version           :   1.0.0-rc3\r\n--   Git               :   rc3-270-g4ba654f-dirty\r\n--   System            :   Linux\r\n--   C++ compiler      :   /usr/bin/c++\r\n--   Release CXX flags :   -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized\r\n--   Debug CXX flags   :   -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized\r\n--   Build type        :   Release\r\n-- \r\n--   BUILD_SHARED_LIBS :   ON\r\n--   BUILD_python      :   ON\r\n--   BUILD_matlab      :   OFF\r\n--   BUILD_docs        :   ON\r\n--   CPU_ONLY          :   OFF\r\n--   USE_OPENCV        :   ON\r\n--   USE_LEVELDB       :   ON\r\n--   USE_LMDB          :   ON\r\n--   ALLOW_LMDB_NOLOCK :   OFF\r\n-- \r\n-- Dependencies:\r\n--   BLAS              :   Yes (Atlas)\r\n--   Boost             :   Yes (ver. 1.49)\r\n--   glog              :   Yes\r\n--   gflags            :   Yes\r\n--   protobuf          :   Yes (ver. 2.4.1)\r\n--   lmdb              :   Yes (ver. 0.9.15)\r\n--   LevelDB           :   Yes (ver. 1.5)\r\n--   Snappy            :   Yes (ver. 1.0.5)\r\n--   OpenCV            :   Yes (ver. 3.0.0)\r\n--   CUDA              :   Yes (ver. 7.5)\r\n-- \r\n-- NVIDIA CUDA:\r\n--   Target GPU(s)     :   Auto\r\n--   GPU arch(s)       :   sm_20 sm_21 sm_30 sm_35 sm_50\r\n--   cuDNN             :   Yes (ver. 5.1.3)\r\n-- \r\n-- Documentaion:\r\n--   Doxygen           :   No\r\n--   config_file       :   \r\n-- \r\n-- Install:\r\n--   Install path      :   /usr/local/src/robot/caffe/build/install\r\n-- \r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /usr/local/src/robot/caffe/build`\r\n\r\nHas anyone seen this error ?\r\n\r\nCheers,\r\n\r\nAnne-Laure\r\n@gregoire-pointeau"}}
{"actor":{"display_login":"AnneLaureM"}}