Skip to content

Commit 8bc8026

Browse files
authored
[BUILD] Add missing header to fix compile error for GCC11 & GCC12. (#442)
1 parent bd22ca7 commit 8bc8026

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

tensorflow/workspace.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
193193

194194
tf_http_archive(
195195
name = "com_google_absl",
196-
patch_file = clean_dep("//third_party:string_view_h.patch"),
196+
patch_file = clean_dep("//third_party:0001-abseil.patch"),
197197
build_file = clean_dep("//third_party:com_google_absl.BUILD"),
198198
sha256 = "acd93f6baaedc4414ebd08b33bebca7c7a46888916101d8c0b8083573526d070", # SHARED_ABSL_SHA
199199
strip_prefix = "abseil-cpp-43ef2148c0936ebf7cb4be6b19927a9d9d145b8f",
@@ -1046,6 +1046,7 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
10461046

10471047
tf_http_archive(
10481048
name = "seastar_repo",
1049+
patch_file = clean_dep("//third_party:0001-seastar.patch"),
10491050
sha256 = "bf97d343149f95983317888dd39a3231639f67c39d826413ea226f9c9c5267d4",
10501051
strip_prefix = "seastar-b9357c525a552ad21b5609622c900e0649921712",
10511052
build_file = str(Label("//third_party:seastar.BUILD")),
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,15 @@ diff -Naur a/absl/strings/string_view.h b/absl/strings/string_view.h
1616
}
1717

1818
const char* ptr_;
19+
diff --git "a/absl/synchronization/internal/graphcycles.cc" "b/absl/synchronization/internal/graphcycles.cc"
20+
index 19f9aab5..27fec216 100644
21+
--- "a/absl/synchronization/internal/graphcycles.cc"
22+
+++ "b/absl/synchronization/internal/graphcycles.cc"
23+
@@ -37,6 +37,7 @@
24+
25+
#include <algorithm>
26+
#include <array>
27+
+#include <limits>
28+
#include "absl/base/internal/hide_ptr.h"
29+
#include "absl/base/internal/raw_logging.h"
30+
#include "absl/base/internal/spinlock.h"

third_party/0001-seastar.patch

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff --git a/util/noncopyable_function.hh b/util/noncopyable_function.hh
2+
index 3928709f..0fb0b189 100644
3+
--- a/util/noncopyable_function.hh
4+
+++ b/util/noncopyable_function.hh
5+
@@ -21,6 +21,7 @@
6+
7+
#pragma once
8+
9+
+#include <cstddef>
10+
#include <utility>
11+
#include <type_traits>
12+
#include <functional>
13+
diff --git a/core/apply.hh b/core/apply.hh
14+
index 437166ad..9790d98f 100644
15+
--- a/core/apply.hh
16+
+++ b/core/apply.hh
17+
@@ -22,6 +22,7 @@
18+
#ifndef APPLY_HH_
19+
#define APPLY_HH_
20+
21+
+#include <cstddef>
22+
#include <tuple>
23+
#include <utility>

0 commit comments

Comments
 (0)