Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

build_ps.sh fails on ubuntu 14.04 #222

Open
Florro opened this issue Aug 4, 2015 · 1 comment
Open

build_ps.sh fails on ubuntu 14.04 #222

Florro opened this issue Aug 4, 2015 · 1 comment

Comments

@Florro
Copy link

Florro commented Aug 4, 2015

Hey guys, i get an identical build error on two different machines while trying to build the parameter server interface. Both running ubuntu 14.04. Would be great if somebody had a suggestion to fix this.

make: Entering directory /home/username/Pakets/cxxnet/ps-lite' make: Nothing to be done forall'.
make: Leaving directory /home/username/Pakets/cxxnet/ps-lite' g++ -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -Irabit/include -DMSHADOW_RABIT_PS=1 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/deps/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=0 -DCXXNET_USE_OPENCV_DECODER=0 -fopenmp -I/usr/include -DCXXNET_USE_CUDNN=1 -o bin/cxxnet.ps layer_cpu.o updater_cpu.o nnet_cpu.o main.o nnet_ps_server.o data.o layer_gpu.o updater_gpu.o nnet_gpu.o dmlc-core/libdmlc.a rabit/lib/librabit_base.a ps-lite/build/libps.a -pthread -lm -lcudart -lcublas -lcurand -L/usr/local/cuda/lib64 -lblas -Lrabit/lib -lrabit_base -lrt -L/usr/include -lcudnn -ljpeg ./ps-lite/deps/lib/libprotobuf.a ./ps-lite/deps/lib/libglog.a ./ps-lite/deps/lib/libgflags.a ./ps-lite/deps/lib/libzmq.a ./ps-lite/deps/lib/libcityhash.a ./ps-lite/deps/lib/liblz4.a g++ -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -Irabit/include -DMSHADOW_RABIT_PS=1 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/deps/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=0 -DCXXNET_USE_OPENCV_DECODER=0 -fopenmp -I/usr/include -DCXXNET_USE_CUDNN=1 -shared -o wrapper/libcxxnetwrapper.so wrapper/cxxnet_wrapper.cpp layer_cpu.o updater_cpu.o nnet_cpu.o main.o nnet_ps_server.o data.o dmlc-core/libdmlc.a rabit/lib/librabit_base.a layer_gpu.o updater_gpu.o nnet_gpu.o -pthread -lm -lcudart -lcublas -lcurand -L/usr/local/cuda/lib64 -lblas -Lrabit/lib -lrabit_base -lrt -L/usr/include -lcudnn -ljpeg ./ps-lite/deps/lib/libprotobuf.a ./ps-lite/deps/lib/libglog.a ./ps-lite/deps/lib/libgflags.a ./ps-lite/deps/lib/libzmq.a ./ps-lite/deps/lib/libcityhash.a ./ps-lite/deps/lib/liblz4.a /usr/bin/ld: ./ps-lite/deps/lib/libprotobuf.a(repeated_field.o): relocation R_X86_64_32S against_ZNSs4_Rep20_S_empty_rep_storageE' can not be used when making a shared object; recompile with -fPIC
./ps-lite/deps/lib/libprotobuf.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [wrapper/libcxxnetwrapper.so] Error 1

@drcege
Copy link

drcege commented Aug 27, 2015

I got the same problem...
It's so difficult to complie the code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants