Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have error build xgboost #1526

Open
phongans opened this issue May 30, 2023 · 1 comment
Open

I have error build xgboost #1526

phongans opened this issue May 30, 2023 · 1 comment

Comments

@phongans
Copy link

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
Copy link
Collaborator

beniz commented May 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants