jolibrain / deepdetect

Deep Learning API and Server in C++14 support for PyTorch,TensorRT, Dlib, NCNN, Tensorflow, XGBoost and TSNE
https://www.deepdetect.com/
Other
2.52k stars 561 forks source link

I have error build xgboost #1526

Open paulpham1407 opened 1 year ago

paulpham1407 commented 1 year ago

In file included from /home/hotzex/deepdetect/build/xgboost/src/xgboost/dmlc-core/src/data/parser.h:11:0, from /home/hotzex/deepdetect/src/backends/xgb/xgbinputconns.h:37, from /home/hotzex/deepdetect/src/csvtsinputfileconn.h:206, from /home/hotzex/deepdetect/src/backends/torch/torchinputconns.h:36, from /home/hotzex/deepdetect/src/backends/torch/torchlib.h:43, from /home/hotzex/deepdetect/src/backends/torch/torchlib.cc:23: /home/hotzex/deepdetect/build/xgboost/src/xgboost/dmlc-core/include/dmlc/logging.h:187:0: error: "LOG_DFATAL" redefined [-Werror]

define LOG_DFATAL LOG_FATAL

In file included from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/c10/util/logging_is_dd_log.h:7:0, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/c10/util/Logging.h:26, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/c10/core/TensorImpl.h:19, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/ATen/core/TensorBody.h:20, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/ATen/core/Tensor.h:3, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/ATen/Tensor.h:3, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/torch/csrc/autograd/function_hook.h:3, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/torch/csrc/autograd/cpp_hook.h:2, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/torch/csrc/autograd/variable.h:6, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/torch/csrc/autograd/autograd.h:3, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/torch/csrc/api/include/torch/autograd.h:3, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/include/torch/csrc/api/include/torch/torch.h:3, from /home/hotzex/deepdetect/src/backends/torch/torchlib.h:31, from /home/hotzex/deepdetect/src/backends/torch/torchlib.cc:23: /home/hotzex/deepdetect/build/pytorch/src/pytorch/torch/../caffe/llogging.h:307:0: note: this is the location of the previous definition

define LOG_DFATAL(s) CaffeLogger(FATAL).sstream()

cc1plus: all warnings being treated as errors src/CMakeFiles/ddetect.dir/build.make:537: recipe for target 'src/CMakeFiles/ddetect.dir/backends/torch/torchlib.cc.o' failed make[2]: [src/CMakeFiles/ddetect.dir/backends/torch/torchlib.cc.o] Error 1 CMakeFiles/Makefile2:574: recipe for target 'src/CMakeFiles/ddetect.dir/all' failed make[1]: [src/CMakeFiles/ddetect.dir/all] Error 2 Makefile:90: recipe for target 'all' failed make: *** [all] Error 2

beniz commented 1 year ago

Hi @phongans please provide the full build command en environment, as recommended, thanks.