Skip to content

Instantly share code, notes, and snippets.

@viktor-ferenczi
Created May 29, 2015 21:11
Show Gist options
  • Save viktor-ferenczi/4f80b32eaafa20944327 to your computer and use it in GitHub Desktop.
Save viktor-ferenczi/4f80b32eaafa20944327 to your computer and use it in GitHub Desktop.
Issue #171: Build error: glog/logging.h: No such file or directory
$ ./build_ps.sh
Cloning into 'ps-lite'...
remote: Counting objects: 518, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 518 (delta 59), reused 0 (delta 0), pack-reused 418
Receiving objects: 100% (518/518), 224.59 KiB | 0 bytes/s, done.
Resolving deltas: 100% (292/292), done.
Checking connectivity... done.
Install third-party libraries for PS
configure.ac:55: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:1022: _LT_SYS_MODULE_PATH_AIX is expanded from...
m4/libtool.m4:4170: _LT_LINKER_SHLIBS is expanded from...
m4/libtool.m4:5253: _LT_LANG_C_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:55: the top level
configure.ac:55: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:4170: _LT_LINKER_SHLIBS is expanded from...
m4/libtool.m4:5253: _LT_LANG_C_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:55: the top level
configure.ac:55: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:1022: _LT_SYS_MODULE_PATH_AIX is expanded from...
m4/libtool.m4:5360: _LT_LANG_CXX_CONFIG is expanded from...
m4/libtool.m4:785: _LT_LANG is expanded from...
m4/libtool.m4:768: LT_LANG is expanded from...
m4/libtool.m4:796: _LT_LANG_DEFAULT_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:55: the top level
libtool: install: warning: relinking `libprotoc.la'
configure: WARNING: libsodium is needed for CURVE security
configure: WARNING: libgssapi_krb5 is needed for GSSAPI security
Compile PS
make: Entering directory '/home/fviktor/dev/cxxnet/ps-lite'
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/assign_op.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/task.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/node.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/heartbeat.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/filter.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/param.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/range.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/data.proto
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/assign_op.pb.o src/proto/assign_op.pb.cc >build/proto/assign_op.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/task.pb.o src/proto/task.pb.cc >build/proto/task.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/node.pb.o src/proto/node.pb.cc >build/proto/node.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/heartbeat.pb.o src/proto/heartbeat.pb.cc >build/proto/heartbeat.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/assign_op.pb.cc -o build/proto/assign_op.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/heartbeat.pb.cc -o build/proto/heartbeat.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/task.pb.cc -o build/proto/task.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/node.pb.cc -o build/proto/node.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/filter.pb.o src/proto/filter.pb.cc >build/proto/filter.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/filter.pb.cc -o build/proto/filter.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/param.pb.o src/proto/param.pb.cc >build/proto/param.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/range.pb.o src/proto/range.pb.cc >build/proto/range.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/range.pb.cc -o build/proto/range.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/param.pb.cc -o build/proto/param.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/proto/data.pb.o src/proto/data.pb.cc >build/proto/data.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/proto/data.pb.cc -o build/proto/data.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/ps_main.o src/ps_main.cc >build/ps_main.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -std=c++0x -MM -MT build/system/executor.o src/system/executor.cc >build/system/executor.d
In file included from src/ps.h:13:0,
from src/ps_main.cc:1:
src/kv/kv_store_sparse.h:3:21: fatal error: dmlc/io.h: No such file or directory
#include "dmlc/io.h"
^
compilation terminated.
Makefile:56: recipe for target 'build/ps_main.o' failed
make: *** [build/ps_main.o] Error 1
make: *** Waiting for unfinished jobs....
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -I/home/fviktor/dev/cxxnet/ps-lite/../dmlc-core/include -c src/system/executor.cc -o build/system/executor.o
make: Leaving directory '/home/fviktor/dev/cxxnet/ps-lite'
Cloning into 'rabit'...
remote: Counting objects: 2603, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 2603 (delta 7), reused 0 (delta 0), pack-reused 2581
Receiving objects: 100% (2603/2603), 785.18 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1685/1685), done.
Checking connectivity... done.
Cloning into 'mshadow'...
remote: Counting objects: 2767, done.
remote: Total 2767 (delta 0), reused 0 (delta 0), pack-reused 2767
Receiving objects: 100% (2767/2767), 947.93 KiB | 719.00 KiB/s, done.
Resolving deltas: 100% (1897/1897), done.
Checking connectivity... done.
Cloning into 'dmlc-core'...
remote: Counting objects: 1605, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 1605 (delta 10), reused 0 (delta 0), pack-reused 1577
Receiving objects: 100% (1605/1605), 315.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (981/981), done.
Checking connectivity... done.
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/lib/nvidia-cuda-toolkit/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -DCXXNET_USE_CUDNN=1 -o layer_cpu.o src/layer/layer_impl.cpp
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/lib/nvidia-cuda-toolkit/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -DCXXNET_USE_CUDNN=1 -o updater_cpu.o src/updater/updater_impl.cpp
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/lib/nvidia-cuda-toolkit/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -DCXXNET_USE_CUDNN=1 -o nnet_cpu.o src/nnet/nnet_impl.cpp
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/lib/nvidia-cuda-toolkit/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -DCXXNET_USE_CUDNN=1 -o main.o src/cxxnet_main.cpp
In file included from ./ps-lite/src/ps.h:8:0,
from ./ps-lite/src/parameter/kv_layer.h:2,
from ./mshadow/mshadow-ps/./ps_dist-inl.h:14,
from ./mshadow/mshadow-ps/mshadow_ps.h:327,
from src/updater/././updater.h:6,
from src/updater/./sgd_updater-inl.hpp:11,
from src/updater/updater_impl-inl.hpp:8,
from src/updater/updater_impl.cpp:4:
./ps-lite/src/ps/base.h:8:26: fatal error: glog/logging.h: No such file or directory
#include "glog/logging.h"
^
compilation terminated.
In file included from ./ps-lite/src/ps.h:8:0,
from ./ps-lite/src/parameter/kv_layer.h:2,
from ./mshadow/mshadow-ps/./ps_dist-inl.h:14,
from ./mshadow/mshadow-ps/mshadow_ps.h:327,
from src/nnet/./../updater/updater.h:6,
from src/nnet/./neural_net-inl.hpp:14,
from src/nnet/nnet_impl-inl.hpp:9,
from src/nnet/nnet_impl.cpp:4:
./ps-lite/src/ps/base.h:8:26: fatal error: glog/logging.h: No such file or directory
#include "glog/logging.h"
^
compilation terminated.
In file included from ./ps-lite/src/ps.h:8:0,
from src/cxxnet_main.cpp:18:
./ps-lite/src/ps/base.h:8:26: fatal error: glog/logging.h: No such file or directory
#include "glog/logging.h"
^
compilation terminated.
Makefile:148: recipe for target 'nnet_cpu.o' failed
make: *** [nnet_cpu.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:148: recipe for target 'updater_cpu.o' failed
make: *** [updater_cpu.o] Error 1
Makefile:148: recipe for target 'main.o' failed
make: *** [main.o] Error 1
diff make/config.mk config.mk
13,14c13,14
< export CC = gcc
< export CXX = g++
---
> export CC = gcc-4.8
> export CXX = g++-4.8
22c22
< USE_CUDA_PATH = NONE
---
> USE_CUDA_PATH = /usr/lib/nvidia-cuda-toolkit
30c30
< USE_CUDNN = 0
---
> USE_CUDNN = 1
33c33
< USE_CUDNN_PATH = NONE
---
> USE_CUDNN_PATH = /home/fviktor/dev/cudnn-6.5-linux-x64-v2
43c43
< USE_BLAS = blas
---
> USE_BLAS = openblas
51,52c51,52
< USE_DIST_PS = 0
< PS_PATH = NONE
---
> USE_DIST_PS = 1
> PS_PATH = ./ps-lite
Install gflags-2.0-no-svn-files.tar.gz to /home/fviktor/dev/cxxnet/./ps-lite/make/../deps
Install protobuf-2.5.0.tar.gz to /home/fviktor/dev/cxxnet/./ps-lite/make/../deps
Install glog-0.3.3.tar.gz to /home/fviktor/dev/cxxnet/./ps-lite/make/../deps
Install zeromq-4.1.0-rc1.tar.gz to /home/fviktor/dev/cxxnet/./ps-lite/make/../deps
Install lz4 to /home/fviktor/dev/cxxnet/./ps-lite/make/../deps
Install cityhash to /home/fviktor/dev/cxxnet/./ps-lite/make/../deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment