dmlc/cxxnet

build error saying that "no matching function for call to std::condition_variable::notify_all() const"

Bzhnja opened this issue · 0 comments

my gcc version is 4.8.0
I don't know what's wrong with it.
The compile information is as follows:

[test1@localhost cxxnet-master]$ ./build.sh
g++ -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/local/cuda-7.0/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -o layer_cpu.o src/layer/layer_impl.cpp
g++ -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/local/cuda-7.0/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -o updater_cpu.o src/updater/updater_impl.cpp
g++ -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/local/cuda-7.0/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -o nnet_cpu.o src/nnet/nnet_impl.cpp
g++ -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/local/cuda-7.0/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -o main.o src/cxxnet_main.cpp
g++ -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/local/cuda-7.0/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -o nnet_ps_server.o src/nnet/nnet_ps_server.cpp
g++ -std=c++0x -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/local/cuda-7.0/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -o data.o src/io/data.cpp
cd dmlc-core; make libdmlc.a config=/home/test1/cxxnet-master/config.mk; cd /home/test1/cxxnet-master
make[1]: Entering directory /home/test1/cxxnet-master/dmlc-core' g++ -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -o line_split.o src/io/line_split.cc In file included from src/io/iter_image_recordio-inl.hpp:16:0, from src/io/data.cpp:23: ./dmlc-core/include/dmlc/threadediter.h: In lambda function: ./dmlc-core/include/dmlc/threadediter.h:316:35: error: no matching function for call to \u2018std::condition_variable::notify_all() const\u2019 consumer_cond_.notify_all(); ^ ./dmlc-core/include/dmlc/threadediter.h:316:35: note: candidate is: In file included from ./dmlc-core/include/dmlc/threadediter.h:15:0, from src/io/iter_image_recordio-inl.hpp:16, from src/io/data.cpp:23: /usr/local/include/c++/4.8.0/condition_variable:83:5: note: void std::condition_variable::notify_all() <near match> notify_all() noexcept; ^ /usr/local/include/c++/4.8.0/condition_variable:83:5: note: no known conversion for implicit \u2018this\u2019 parameter from \u2018const std::condition_variable*\u2019 to \u2018std::condition_variable*\u2019 In file included from src/io/iter_image_recordio-inl.hpp:16:0, from src/io/data.cpp:23: ./dmlc-core/include/dmlc/threadediter.h:330:35: error: no matching function for call to \u2018std::condition_variable::notify_all() const\u2019 consumer_cond_.notify_all(); ^ ./dmlc-core/include/dmlc/threadediter.h:330:35: note: candidate is: In file included from ./dmlc-core/include/dmlc/threadediter.h:15:0, from src/io/iter_image_recordio-inl.hpp:16, from src/io/data.cpp:23: /usr/local/include/c++/4.8.0/condition_variable:83:5: note: void std::condition_variable::notify_all() <near match> notify_all() noexcept; ^ /usr/local/include/c++/4.8.0/condition_variable:83:5: note: no known conversion for implicit \u2018this\u2019 parameter from \u2018const std::condition_variable*\u2019 to \u2018std::condition_variable*\u2019 In file included from src/io/iter_image_recordio-inl.hpp:16:0, from src/io/data.cpp:23: ./dmlc-core/include/dmlc/threadediter.h:345:45: error: no matching function for call to \u2018std::condition_variable::notify_all() const\u2019 if (notify) consumer_cond_.notify_all(); ^ ./dmlc-core/include/dmlc/threadediter.h:345:45: note: candidate is: In file included from ./dmlc-core/include/dmlc/threadediter.h:15:0, from src/io/iter_image_recordio-inl.hpp:16, from src/io/data.cpp:23: /usr/local/include/c++/4.8.0/condition_variable:83:5: note: void std::condition_variable::notify_all() <near match> notify_all() noexcept; ^ /usr/local/include/c++/4.8.0/condition_variable:83:5: note: no known conversion for implicit \u2018this\u2019 parameter from \u2018const std::condition_variable*\u2019 to \u2018std::condition_variable*\u2019 g++ -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -o recordio_split.o src/io/recordio_split.cc make: *** [data.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -o input_split_base.o src/io/input_split_base.cc g++ -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -o io.o src/io.cc g++ -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -o local_filesys.o src/io/local_filesys.cc In file included from src/io/threaded_input_split.h:13:0, from src/io.cc:14: include/dmlc/threadediter.h: In lambda function: include/dmlc/threadediter.h:316:35: error: no matching function for call to \u2018std::condition_variable::notify_all() const\u2019 consumer_cond_.notify_all(); ^ include/dmlc/threadediter.h:316:35: note: candidate is: In file included from include/dmlc/threadediter.h:15:0, from src/io/threaded_input_split.h:13, from src/io.cc:14: /usr/local/include/c++/4.8.0/condition_variable:83:5: note: void std::condition_variable::notify_all() <near match> notify_all() noexcept; ^ /usr/local/include/c++/4.8.0/condition_variable:83:5: note: no known conversion for implicit \u2018this\u2019 parameter from \u2018const std::condition_variable*\u2019 to \u2018std::condition_variable*\u2019 In file included from src/io/threaded_input_split.h:13:0, from src/io.cc:14: include/dmlc/threadediter.h:330:35: error: no matching function for call to \u2018std::condition_variable::notify_all() const\u2019 consumer_cond_.notify_all(); ^ include/dmlc/threadediter.h:330:35: note: candidate is: In file included from include/dmlc/threadediter.h:15:0, from src/io/threaded_input_split.h:13, from src/io.cc:14: /usr/local/include/c++/4.8.0/condition_variable:83:5: note: void std::condition_variable::notify_all() <near match> notify_all() noexcept; ^ /usr/local/include/c++/4.8.0/condition_variable:83:5: note: no known conversion for implicit \u2018this\u2019 parameter from \u2018const std::condition_variable*\u2019 to \u2018std::condition_variable*\u2019 In file included from src/io/threaded_input_split.h:13:0, from src/io.cc:14: include/dmlc/threadediter.h:345:45: error: no matching function for call to \u2018std::condition_variable::notify_all() const\u2019 if (notify) consumer_cond_.notify_all(); ^ include/dmlc/threadediter.h:345:45: note: candidate is: In file included from include/dmlc/threadediter.h:15:0, from src/io/threaded_input_split.h:13, from src/io.cc:14: /usr/local/include/c++/4.8.0/condition_variable:83:5: note: void std::condition_variable::notify_all() <near match> notify_all() noexcept; ^ /usr/local/include/c++/4.8.0/condition_variable:83:5: note: no known conversion for implicit \u2018this\u2019 parameter from \u2018const std::condition_variable*\u2019 to \u2018std::condition_variable*\u2019 make[1]: *** [io.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory/home/test1/cxxnet-master/dmlc-core'
[test1@localhost cxxnet-master]$