HI, i’m trying to compile libtorch 1.8.0 on my Docker on Ubuntu 18.04 with cuda 11.1, and i have this error :

In file included from /opt/libtorch/include/c10/util/complex.h:570,
from /opt/libtorch/include/c10/core/ScalarType.h:4,
from /opt/libtorch/include/c10/core/Scalar.h:10,
from /opt/libtorch/include/ATen/core/TensorBody.h:8,
from /opt/libtorch/include/ATen/Tensor.h:3,
from /opt/libtorch/include/ATen/Context.h:4,
from /opt/libtorch/include/ATen/ATen.h:9,
from /opt/libtorch/include/torch/csrc/api/include/torch/types.h:3,
from /opt/libtorch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /opt/libtorch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /opt/libtorch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /opt/libtorch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /opt/libtorch/include/torch/csrc/api/include/torch/data.h:3,
from /opt/libtorch/include/torch/csrc/api/include/torch/all.h:8,
from /opt/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /root/processus/includes/MicroServiceAlpr.hpp:5,
from /root/processus/includes/MyServer.cpp:10:
/opt/libtorch/include/c10/util/complex_math.h:83:55: error: expected primary-expression before ‘)’ token
83 | C10_HOST_DEVICE inline c10::complex<decltype(T() * U())> pow(const c10::complex &x, const c10::complex &y) {
|                                                       ^
/opt/libtorch/include/c10/util/complex_math.h:93:55: error: expected primary-expression before ‘)’ token
93 | C10_HOST_DEVICE inline c10::complex<decltype(T() * U())> pow(const c10::complex &x, const U &y) {
|                                                       ^
/opt/libtorch/include/c10/util/complex_math.h:102:55: error: expected primary-expression before ‘)’ token
102 | C10_HOST_DEVICE inline c10::complex<decltype(T() * U())> pow(const T &x, const c10::complex &y) {
|

I tried to compile with gcc 7, 8 and 9, same error.
Thank you for your help.