Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vdepedraza committed Oct 7, 2024
1 parent 47698da commit 5cd11ea
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
16 changes: 11 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protobuf_deps()
git_repository(
name = "com_google_absl",
remote = "https://github.com/abseil/abseil-cpp.git",
tag = "20211102.0",
tag = "20220623.1",
# Remove after https://github.com/abseil/abseil-cpp/issues/326 is solved.
patches = [
"@//patches:com_google_absl_f863b622fe13612433fdf43f76547d5edda0c93001.diff"
Expand Down Expand Up @@ -68,9 +68,9 @@ new_git_repository(
git_repository(
name = "com_google_audio_dsp",
# TODO(b/231448719) use main google repo after merging PR for TF eigen compatibility.
remote = "https://github.com/mchinen/multichannel-audio-tools.git",
remote = "https://github.com/vdepedraza/multichannel-audio-tools",
# There are no tags for this repo, we are synced to bleeding edge.
commit = "14a45c5a7c965e5ef01fe537bd816ce10a247813",
commit = "77546d86bdac431f83ba53531fb3b7234807d683",
repo_mapping = {
"@com_github_glog_glog" : "@com_google_glog",
"@eigen3": "@eigen_archive"
Expand All @@ -97,7 +97,7 @@ git_repository(
)
# Dependency for glog
git_repository(
name = "com_github_gflags_gflags",
name = "gflags",
remote = "https://github.com/mchinen/gflags.git",
branch = "android_linking_fix"
)
Expand Down Expand Up @@ -170,7 +170,13 @@ git_repository(
remote = "https://github.com/tensorflow/tensorflow.git",
# Below is reproducible and equivalent to `tag = "v2.11.0"`
commit = "d5b57ca93e506df258271ea00fc29cf98383a374",
shallow_since = "1668561432 -0800"
shallow_since = "1668561432 -0800",
patches = [
"@//patches:tensorflow_fix.patch"
],
patch_args = [
"-p1",
]
)

# Check bazel version requirement, which is stricter than TensorFlow's.
Expand Down
21 changes: 21 additions & 0 deletions patches/tensorflow_fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From df9cf01f69c74ba650796903a2128f1e01c0e572 Mon Sep 17 00:00:00 2001
From: Tom Bannink <tombannink@gmail.com>
Date: Fri, 5 May 2023 09:22:21 +0200
Subject: [PATCH] Add missing `stdint.h` include

---
tensorflow/lite/kernels/internal/spectrogram.cc | 1 +
1 file changed, 1 insertion(+)

diff --git a/tensorflow/lite/kernels/internal/spectrogram.cc b/tensorflow/lite/kernels/internal/spectrogram.cc
index a832962a38df1b..919eebeb3e703c 100644
--- a/tensorflow/lite/kernels/internal/spectrogram.cc
+++ b/tensorflow/lite/kernels/internal/spectrogram.cc
@@ -17,6 +17,7 @@ limitations under the License.

#include <assert.h>
#include <math.h>
+#include <stdint.h>

#include "third_party/fft2d/fft.h"

0 comments on commit 5cd11ea

Please sign in to comment.