==BUILD OFFLINE DEMO== /share/pytorch/src/catch/examples/offline/build /share/pytorch/src/catch/examples/offline/build -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- thread -- filesystem -- regex -- chrono -- date_time -- atomic -- Found GFlags: /usr/local/include -- Found gflags (include: /usr/local/include, library: /usr/local/lib/libgflags.a) -- Found Glog: /usr/include -- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) -- Found MLU: /usr/local/neuware/include -- Found CNRT (include: /usr/local/neuware/include library: /usr/local/neuware/lib64/libcnrt.so) -- Configuring done -- Generating done -- Build files have been written to: /share/pytorch/src/catch/examples/offline/build Scanning dependencies of target OffComLib Scanning dependencies of target evaluate Scanning dependencies of target test_forward_offline [ 1%] Building CXX object test_forward_offline/CMakeFiles/test_forward_offline.dir/test_forward_offline.cpp.o [ 3%] Building CXX object common/CMakeFiles/OffComLib.dir/off_data_provider.cpp.o [ 5%] Building CXX object common/CMakeFiles/OffComLib.dir/off_gflags_spec.cpp.o [ 7%] Building CXX object common/CMakeFiles/OffComLib.dir/simple_interface.cpp.o [ 9%] Building CXX object common/CMakeFiles/OffComLib.dir/runner_strategy.cpp.o [ 11%] Building CXX object common/CMakeFiles/OffComLib.dir/gflags_common.cpp.o [ 12%] Building CXX object common/CMakeFiles/OffComLib.dir/common_functions.cpp.o [ 14%] Building CXX object common/CMakeFiles/OffComLib.dir/clas_processor.cpp.o [ 16%] Building CXX object common/CMakeFiles/OffComLib.dir/off_clas_data_provider.cpp.o [ 18%] Building CXX object common/CMakeFiles/OffComLib.dir/off_runner.cpp.o [ 20%] Building CXX object common/CMakeFiles/OffComLib.dir/blocking_queue.cpp.o [ 22%] Building CXX object common/CMakeFiles/OffComLib.dir/pipeline.cpp.o [ 24%] Building CXX object common/CMakeFiles/OffComLib.dir/data_provider.cpp.o [ 25%] Building CXX object common/CMakeFiles/OffComLib.dir/queue.cpp.o [ 27%] Linking CXX executable test_forward_offline [ 27%] Built target test_forward_offline In file included from /share/pytorch/src/catch/examples/offline/common/pipeline.cpp:40:0: /share/pytorch/src/catch/examples/offline/common/include/pipeline.hpp:45:24: error: expected ‘)’ before ‘<’ token Pipeline(DataProvider *provider, ^ compilation terminated due to -Wfatal-errors. In file included from /share/pytorch/src/catch/examples/offline/common/clas_processor.cpp:32:0: /share/pytorch/src/catch/examples/offline/common/include/common_functions.hpp:48:35: error: ‘BlockingQueue’ was not declared in this scope template class classname; \ ^ /share/pytorch/src/catch/examples/offline/common/include/common_functions.hpp:52:3: note: in expansion of macro ‘INSTANTIATE_ON_CLASS’ INSTANTIATE_ON_CLASS(classname) \ ^ /share/pytorch/src/catch/examples/offline/common/clas_processor.cpp:94:1: note: in expansion of macro ‘INSTANTIATE_ALL_CLASS’ INSTANTIATE_ALL_CLASS(ClassPostProcessor); ^ compilation terminated due to -Wfatal-errors. common/CMakeFiles/OffComLib.dir/build.make:254: recipe for target 'common/CMakeFiles/OffComLib.dir/clas_processor.cpp.o' failed make[2]: *** [common/CMakeFiles/OffComLib.dir/clas_processor.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... common/CMakeFiles/OffComLib.dir/build.make:206: recipe for target 'common/CMakeFiles/OffComLib.dir/pipeline.cpp.o' failed make[2]: *** [common/CMakeFiles/OffComLib.dir/pipeline.cpp.o] Error 1 In file included from /share/pytorch/src/catch/examples/offline/common/runner_strategy.cpp:47:0: /share/pytorch/src/catch/examples/offline/common/include/common_functions.hpp:44:35: error: ‘BlockingQueue’ was not declared in this scope template class classname; \ ^ /share/pytorch/src/catch/examples/offline/common/runner_strategy.cpp:253:1: note: in expansion of macro ‘INSTANTIATE_OFF_CLASS’ INSTANTIATE_OFF_CLASS(RunnerStrategy); ^ compilation terminated due to -Wfatal-errors. common/CMakeFiles/OffComLib.dir/build.make:350: recipe for target 'common/CMakeFiles/OffComLib.dir/runner_strategy.cpp.o' failed make[2]: *** [common/CMakeFiles/OffComLib.dir/runner_strategy.cpp.o] Error 1 OpenCVUtils.o: In function `cvflann::anyimpl::big_any_policy::static_delete(void**)': OpenCVUtils.cpp:(.text._ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE13static_deleteEPPv[_ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE13static_deleteEPPv]+0x15): undefined reference to `cv::String::deallocate()' OpenCVUtils.o: In function `cvflann::anyimpl::big_any_policy::move(void* const*, void**)': OpenCVUtils.cpp:(.text._ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE4moveEPKPvPS5_[_ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE4moveEPKPvPS5_]+0x10): undefined reference to `cv::String::deallocate()' OpenCVUtils.cpp:(.text._ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE4moveEPKPvPS5_[_ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE4moveEPKPvPS5_]+0x24): undefined reference to `cv::String::deallocate()' collect2: error: ld returned 1 exit status Makefile:14: recipe for target 'evaluate' failed make[3]: *** [evaluate] Error 1 mtcnn/CMakeFiles/evaluate.dir/build.make:57: recipe for target 'mtcnn/CMakeFiles/evaluate' failed make[2]: *** [mtcnn/CMakeFiles/evaluate] Error 2 CMakeFiles/Makefile2:486: recipe for target 'mtcnn/CMakeFiles/evaluate.dir/all' failed make[1]: *** [mtcnn/CMakeFiles/evaluate.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /share/pytorch/src/catch/examples/offline/common/blocking_queue.cpp:38:7: error: ‘BlockingQueue’ is not a class template class BlockingQueue::sync { ^ compilation terminated due to -Wfatal-errors. common/CMakeFiles/OffComLib.dir/build.make:158: recipe for target 'common/CMakeFiles/OffComLib.dir/blocking_queue.cpp.o' failed make[2]: *** [common/CMakeFiles/OffComLib.dir/blocking_queue.cpp.o] Error 1 /share/pytorch/src/catch/examples/offline/common/queue.cpp:37:1: error: ‘Queue’ does not name a type Queue::Queue() { ^ compilation terminated due to -Wfatal-errors. common/CMakeFiles/OffComLib.dir/build.make:182: recipe for target 'common/CMakeFiles/OffComLib.dir/queue.cpp.o' failed make[2]: *** [common/CMakeFiles/OffComLib.dir/queue.cpp.o] Error 1 CMakeFiles/Makefile2:117: recipe for target 'common/CMakeFiles/OffComLib.dir/all' failed make[1]: *** [common/CMakeFiles/OffComLib.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 /share/pytorch/src/catch/examples/offline/build Traceback (most recent call last): File "setup.py", line 212, in subprocess.check_call('examples/offline/scripts/build_offline.sh') File "/home/anaconda3/envs/cambricon/lib/python3.6/subprocess.py", line 311, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'examples/offline/scripts/build_offline.sh' returned non-zero exit status 1.