Building from source with multi-node multi-gpu support: CMake succeeds in writing build files but make command fails

I am trying to build xgboost on a HPC cluster with multi-node multi-gpu support (as per the instructions here: https://xgboost.readthedocs.io/en/latest/build.html#obtaining-the-source-code). I am using gcc version 5.1.0, cmake version 3.14.4, cuda version 10.1 and nccl version 2.8.3-1, which the Nvidia website mentions is compatible with cuda version 10.1. Using the following cmake command: cmake .. -DUSE_CUDA=ON -DUSE_NCCL=ON -DNCCL_ROOT=/home/users/industry/silverfactorytechnology/sanjay.s/nccl/nccl_2.8.3-1+cuda10.1_x86_64, I get the following output:

-- The CXX compiler identification is GNU 5.1.0
-- The C compiler identification is GNU 5.1.0
-- Check for working CXX compiler: /cm/local/apps/gcc/5.1.0/bin/c++
-- Check for working CXX compiler: /cm/local/apps/gcc/5.1.0/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /cm/local/apps/gcc/5.1.0/bin/gcc
-- Check for working C compiler: /cm/local/apps/gcc/5.1.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMake version 3.14.4
-- Performing Test XGBOOST_MM_PREFETCH_PRESENT
-- Performing Test XGBOOST_MM_PREFETCH_PRESENT - Success
-- Performing Test XGBOOST_BUILTIN_PREFETCH_PRESENT
-- Performing Test XGBOOST_BUILTIN_PREFETCH_PRESENT - Success
-- xgboost VERSION: 1.5.0
-- Setting build type to 'Release' as none was specified.
-- Configured CUDA host compiler: /cm/local/apps/gcc/5.1.0/bin/c++
-- The CUDA compiler identification is NVIDIA 10.1.105
-- Check for working CUDA compiler: /app/cuda10.1/bin/nvcc
-- Check for working CUDA compiler: /app/cuda10.1/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- CUDA GEN_CODE: --generate-code=arch=compute_35,code=sm_35;--generate-code=arch=compute_50,code=sm_50;--generate-code=arch=compute_52,code=sm_52;--generate-code=arch=compute_60,code=sm_60;--generate-code=arch=compute_61,code=sm_61;--generate-code=arch=compute_70,code=sm_70;--generate-code=arch=compute_75,code=sm_75;--generate-code=arch=compute_75,code=compute_75;
-- 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  
-- Found OpenMP_C: -fopenmp (found version "4.0") 
-- Found OpenMP_CXX: -fopenmp (found version "4.0") 
-- Found OpenMP: TRUE (found version "4.0")  
-- Using nccl library: /home/users/industry/silverfactorytechnology/sanjay.s/nccl/nccl_2.8.3-1+cuda10.1_x86_64/lib/libnccl_static.a
-- Found Nccl: /home/users/industry/silverfactorytechnology/sanjay.s/nccl/nccl_2.8.3-1+cuda10.1_x86_64/include  
-- Found OpenMP_C: -fopenmp (found version "4.0") 
-- Found OpenMP_CXX: -fopenmp (found version "4.0") 
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for fopen64
-- Looking for fopen64 - not found
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/cmake/build_config.h.in -> include/dmlc/build_config.h
-- Performing Test SUPPORT_MSSE2
-- Performing Test SUPPORT_MSSE2 - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build

The error log from cmake is as follows:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_fef12/fast
/usr/bin/gmake -f CMakeFiles/cmTC_fef12.dir/build.make CMakeFiles/cmTC_fef12.dir/build
gmake[1]: Entering directory `/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fef12.dir/CheckSymbolExists.c.o
/cm/local/apps/gcc/5.1.0/bin/gcc    -o CMakeFiles/cmTC_fef12.dir/CheckSymbolExists.c.o   -c /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_fef12
/app/cmake/cmake-3.14.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fef12.dir/link.txt --verbose=1
/cm/local/apps/gcc/5.1.0/bin/gcc      CMakeFiles/cmTC_fef12.dir/CheckSymbolExists.c.o  -o cmTC_fef12
CMakeFiles/cmTC_fef12.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_fef12] Error 1
gmake[1]: Leaving directory `/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_fef12/fast] Error 2

File /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_d4932/fast
/usr/bin/gmake -f CMakeFiles/cmTC_d4932.dir/build.make CMakeFiles/cmTC_d4932.dir/build
gmake[1]: Entering directory `/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d4932.dir/CheckFunctionExists.c.o
/cm/local/apps/gcc/5.1.0/bin/gcc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_d4932.dir/CheckFunctionExists.c.o   -c /app/cmake/cmake-3.14.4/share/cmake-3.14/Modules/CheckFunctionExists.c
Linking C executable cmTC_d4932
/app/cmake/cmake-3.14.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d4932.dir/link.txt --verbose=1
/cm/local/apps/gcc/5.1.0/bin/gcc  -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_d4932.dir/CheckFunctionExists.c.o  -o cmTC_d4932 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_d4932] Error 1
gmake[1]: Leaving directory `/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_d4932/fast] Error 2

I am not sure what I’m doing wrong, but repeating the above with cmake … -DUSE_CUDA=ON does not work either. Any help would be greatly appreciated.

Truncated output (reached post size limit) of make -j:

Scanning dependencies of target dmlc
[  0%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/config.cc.o
[  1%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/data.cc.o
[  4%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/io.cc.o
[  4%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/recordio.cc.o
[  4%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/io/input_split_base.cc.o
[  9%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/io/indexed_recordio_split.cc.o
[  9%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/io/local_filesys.cc.o
[  9%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/io/filesys.cc.o
[  9%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/io/line_split.cc.o
[  9%] Building CXX object dmlc-core/CMakeFiles/dmlc.dir/src/io/recordio_split.cc.o

In file included from /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/./libsvm_parser.h:19:0,
                 from /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/disk_row_iter.h:19,
                 from /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:12:
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h: In instantiation of ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()>::<lambda()> [with IndexType = long unsigned int; DType = long int]’:
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:135:37:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = long unsigned int; DType = long int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:7:   required from ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = long unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:70:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:22:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:46:20:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::ParseNext(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:258:1:   required from here
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:125:51: error: redeclaration of ‘const int& nthread’
         size_t nstep = (chunk.size + nthread - 1) / nthread;
                                                   ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:125:36: note: ‘const int& nthread’ previously declared here
         size_t nstep = (chunk.size + nthread - 1) / nthread;
                                    ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:127:37: error: redeclaration of ‘const int& tid’
         size_t send = std::min((tid + 1) * nstep, chunk.size);
                                     ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:126:38: note: ‘const int& tid’ previously declared here
         size_t sbegin = std::min(tid * nstep, chunk.size);
                                      ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:130:17: error: redeclaration of ‘const int& tid’
         if (tid + 1 == nthread) {
                 ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:126:38: note: ‘const int& tid’ previously declared here
         size_t sbegin = std::min(tid * nstep, chunk.size);
                                      ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:130:21: error: redeclaration of ‘const int& nthread’
         if (tid + 1 == nthread) {
                     ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:125:36: note: ‘const int& nthread’ previously declared here
         size_t nstep = (chunk.size + nthread - 1) / nthread;
                                    ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:135:42: error: redeclaration of ‘const int& tid’
         ParseBlock(pbegin, pend, &(*data)[tid]);
                                          ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:126:38: note: ‘const int& tid’ previously declared here
         size_t sbegin = std::min(tid * nstep, chunk.size);
                                      ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h: In instantiation of ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = long unsigned int; DType = long int]’:
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:70:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:22:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:46:20:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::ParseNext(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:258:1:   required from here
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
       this->omp_exc_.Run([&] {
                          ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h: In instantiation of ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()>::<lambda()> [with IndexType = unsigned int; DType = long int]’:
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:135:37:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = unsigned int; DType = long int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:7:   required from ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:70:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:22:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:46:20:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::ParseNext(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:258:1:   required from here
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:125:51: error: redeclaration of ‘const int& nthread’
         size_t nstep = (chunk.size + nthread - 1) / nthread;
                                                   ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:125:36: note: ‘const int& nthread’ previously declared here
         size_t nstep = (chunk.size + nthread - 1) / nthread;
                                    ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:127:37: error: redeclaration of ‘const int& tid’
         size_t send = std::min((tid + 1) * nstep, chunk.size);
                                     ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:126:38: note: ‘const int& tid’ previously declared here
         size_t sbegin = std::min(tid * nstep, chunk.size);
                                      ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:130:17: error: redeclaration of ‘const int& tid’
         if (tid + 1 == nthread) {
                 ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:126:38: note: ‘const int& tid’ previously declared here
         size_t sbegin = std::min(tid * nstep, chunk.size);
                                      ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:130:21: error: redeclaration of ‘const int& nthread’
         if (tid + 1 == nthread) {
                     ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:125:36: note: ‘const int& nthread’ previously declared here
         size_t nstep = (chunk.size + nthread - 1) / nthread;
                                    ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:135:42: error: redeclaration of ‘const int& tid’
         ParseBlock(pbegin, pend, &(*data)[tid]);
                                          ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:126:38: note: ‘const int& tid’ previously declared here
         size_t sbegin = std::min(tid * nstep, chunk.size);
                                      ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h: In instantiation of ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = unsigned int; DType = long int]’:
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:70:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:22:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:46:20:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::ParseNext(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:258:1:   required from here
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
       this->omp_exc_.Run([&] {
                          ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h: In instantiation of ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()>::<lambda()> [with IndexType = long unsigned int; DType = int]’:
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:135:37:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = long unsigned int; DType = int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:7:   required from ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = long unsigned int; DType = int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:70:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = int]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:22:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:46:20:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::ParseNext(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = int]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:258:1:   required from here
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:125:51: error: redeclaration of ‘const int& nthread’
         size_t nstep = (chunk.size + nthread - 1) / nthread;

...
                                                   ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h: In instantiation of ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*)::<lambda()> [with IndexType = unsigned int; DType = float]’:
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:70:   required from ‘struct dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = float]::<lambda()>’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:123:22:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = float]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:46:20:   required from ‘bool dmlc::data::TextParserBase<IndexType, DType>::ParseNext(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = float]’
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:258:1:   required from here
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
       this->omp_exc_.Run([&] {
                          ^
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
/home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/././text_parser.h:124:26: sorry, unimplemented: non-trivial designated initializers not supported
In file included from /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/include/dmlc/threadediter.h:20:0,
                 from /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data/parser.h:12,
                 from /home/users/industry/silverfactorytechnology/sanjay.s/Inception_Forest/xgboost/dmlc-core/src/data.cc:10:
/cm/local/apps/gcc/5.1.0/include/c++/5.1.0/thread:133:7: error: ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]::<lambda()>; _Args = {}]’, declared using local type ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = long int]::<lambda()>’, is used but never defined [-fpermissive]
       thread(_Callable&& __f, _Args&&... __args)
       ^
/cm/local/apps/gcc/5.1.0/include/c++/5.1.0/thread:133:7: error: ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]::<lambda()>; _Args = {}]’, declared using local type ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = long int]::<lambda()>’, is used but never defined [-fpermissive]
/cm/local/apps/gcc/5.1.0/include/c++/5.1.0/thread:133:7: error: ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = int]::<lambda()>; _Args = {}]’, declared using local type ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = int]::<lambda()>’, is used but never defined [-fpermissive]
/cm/local/apps/gcc/5.1.0/include/c++/5.1.0/thread:133:7: error: ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = int]::<lambda()>; _Args = {}]’, declared using local type ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = int]::<lambda()>’, is used but never defined [-fpermissive]
/cm/local/apps/gcc/5.1.0/include/c++/5.1.0/thread:133:7: error: ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = float]::<lambda()>; _Args = {}]’, declared using local type ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = long unsigned int; DType = float]::<lambda()>’, is used but never defined [-fpermissive]
/cm/local/apps/gcc/5.1.0/include/c++/5.1.0/thread:133:7: error: ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = float]::<lambda()>; _Args = {}]’, declared using local type ‘dmlc::data::TextParserBase<IndexType, DType>::FillData(std::vector<dmlc::data::RowBlockContainer<IndexType, DType> >*) [with IndexType = unsigned int; DType = float]::<lambda()>’, is used but never defined [-fpermissive]
make[2]: *** [dmlc-core/CMakeFiles/dmlc.dir/src/data.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....

make[1]: *** [dmlc-core/CMakeFiles/dmlc.dir/all] Error 2
make: *** [all] Error 2