caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

Build fails on AWS Deep Learning AMI Ubuntu 16.04

Open Mastergalen opened this issue 7 years ago • 2 comments

If this is a build issue, please fill out the template below.

System information

  • Operating system: Ubuntu 16.04
  • Compiler version: gcc version 4.8.5 (GCC)
  • CMake version: cmake version 3.9.4
  • CMake arguments:
  • Relevant libraries/versions (e.g. CUDA):
    • Cuda compilation tools, release 9.0, V9.0.176
    • Python 2.7.14 :: Anaconda, Inc.

I'm on AWS running the Deep Learning AMI (Ubuntu) v2.0, within the source activate caffe2_p27 environment.

I'm trying to update the already installed caffe2, in order to get the Detectron module.

CMake summary output

Steps to reproduce:

cd caffe2
mkdir build && cd build
cmake .. # Succeeds, no errors
make # Fails, output below:
....
Scanning dependencies of target speed_benchmark
[ 94%] Building CXX object caffe2/binaries/CMakeFiles/speed_benchmark.dir/speed_benchmark.cc.o
[ 94%] Linking CXX executable ../../bin/speed_benchmark
[ 94%] Built target speed_benchmark
Scanning dependencies of target print_registered_core_operators
[ 94%] Building CXX object caffe2/binaries/CMakeFiles/print_registered_core_operators.dir/print_registered_core_operators.cc.o [ 94%] Linking CXX executable ../../bin/print_registered_core_operators
[ 94%] Built target print_registered_core_operators
Scanning dependencies of target inspect_gpus
[ 94%] Building CXX object caffe2/binaries/CMakeFiles/inspect_gpus.dir/inspect_gpus.cc.o
[ 94%] Linking CXX executable ../../bin/inspect_gpus
/usr/bin/ld: /usr/local/cuda/lib64/libcudart_static.a(libcudart_static.a.o): undefined reference to symbol 'shm_unlink@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/librt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [caffe2/binaries/CMakeFiles/inspect_gpus.dir/build.make:120: bin/inspect_gpus] Error 1
make[1]: *** [CMakeFiles/Makefile2:4956: caffe2/binaries/CMakeFiles/inspect_gpus.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Mastergalen avatar Jan 25 '18 00:01 Mastergalen

@pietern do you know any specifics about the AWS setup?

pjh5 avatar Jan 25 '18 17:01 pjh5

Using the Deep Learning Base AMI, which does not have Caffe2 pre-installed, I was able to build from source without issue.

Mastergalen avatar Jan 28 '18 16:01 Mastergalen