abseil / abseil/abseil-cpp

[Bug]: tensorflow does not compile with lts_2023_08_02 and Visual Studio 2022

Đang mở
#1,808 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
18.1k
Fork
3.2k
Merge trung bình
20 giờ 36 phút
Pull request đã merge (30 ngày)
1

Mô tả

### Describe the issue

When compiling tensorflow nightly with CUDA Toolkit 12.5.1, Visual Studio 2022 (17.12.4) and C++17 compilation fails with:

```
external/com_google_absl\absl/functional/internal/any_invocable.h(521): error: enum "absl::lts_20230802::internal_any_invocable::CoreImpl::TargetType [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" has no member "kPointer"
absl::enable_if_t = 0>
^
detected during instantiation of class "absl::lts_20230802::internal_any_invocable::CoreImpl [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" at line 868

external/com_google_absl\absl/functional/internal/any_invocable.h(547): error: enum "absl::lts_20230802::internal_any_invocable::CoreImpl::TargetType [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" has no member "kCompatibleAnyInvocable"
target_type == TargetType::kCompatibleAnyInvocable, int> = 0>
^
detected during instantiation of class "absl::lts_20230802::internal_any_invocable::CoreImpl [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" at line 868

external/com_google_absl\absl/functional/internal/any_invocable.h(548): error: invalid redeclaration of member function template "void absl::lts_20230802::internal_any_invocable::CoreImpl::Initialize>(F &&) [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" (declared at line 522)
void Initialize(F&& f) {
^
detected during instantiation of class "absl::lts_20230802::internal_any_invocable::CoreImpl [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" at line 868

external/com_google_absl\absl/functional/internal/any_invocable.h(560): error: enum "absl::lts_20230802::internal_any_invocable::CoreImpl::TargetType [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" has no member "kIncompatibleAnyInvocable"
target_type == TargetType::kIncompatibleAnyInvocable, int> = 0>
^
detected during instantiation of class "absl::lts_20230802::internal_any_invocable::CoreImpl [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" at line 868

external/com_google_absl\absl/functional/internal/any_invocable.h(561): error: invalid redeclaration of member function template "void absl::lts_20230802::internal_any_invocable::CoreImpl::Initialize>(F &&) [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" (declared at line 522)
void Initialize(F&& f) {
^
detected during instantiation of class "absl::lts_20230802::internal_any_invocable::CoreImpl [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" at line 868

external/com_google_absl\absl/functional/internal/any_invocable.h(571): error: enum "absl::lts_20230802::internal_any_invocable::CoreImpl::TargetType [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" has no member "kOther"
typename = absl::enable_if_t>
^
detected during instantiation of class "absl::lts_20230802::internal_any_invocable::CoreImpl [with SigIsNoexcept=false, ReturnType=ReturnType, P=]" at line 868
```

### Steps to reproduce the problem

1. Install CUDA Toolkit 12.5.1, Visual Studio 2022, and other required build tools for tensorflow windows CUDA build
2. Download https://github.com/johnnkp/tensorflow-wgpu-test/archive/64711033fff920e048c2e9661e28b89429465e1d.zip and extract
3. Run `python configure.py` to configure Windows CUDA build
4. Run `bazel build --config=win_clang --config=cuda_wheel --config=opt --define=no_tensorflow_py_deps=true --repo_env=TF_PYTHON_VERSION=3.12 --repo_env=TF_CUDA_COMPUTE_CAPABILITIES=6.1 @local_xla//xla/stream_executor/cuda:delay_kernel_cuda --repo_env=WHEEL_NAME=tensorflow-gpu`

### What version of Abseil are you using?

`lts_2023_08_02`

### What operating system and version are you using?

Windows 11 24H2

### What compiler and version are you using?

Visual Studio 2022 (17.12.4)

### What build system are you using?

Bazel 6.5.0

### Additional context

Reverting https://github.com/abseil/abseil-cpp/commit/73789eb0689071b0b02b00cb3daed9f224ff1a10#diff-f583487853daa619cc01664b1cd0007c23d858467a727fa06f00a5043f1ade72R834 doesn't fix.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.