all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Tai <atai@atai.org>
To: 72747@debbugs.gnu.org
Cc: Andy Tai <atai@atai.org>
Subject: bug#72747: [PATCH v2] gnu: tensorflow-lite: Fix build.
Date: Wed, 28 Aug 2024 07:47:54 -0700	[thread overview]
Message-ID: <738b4e753d8cd8dc84180f9fd31d66cc483b97ee.1724856448.git.atai@atai.org> (raw)
In-Reply-To: <4AB3AB32-7D01-4DFE-B5B9-DB9F0FAC84FA@me.com>

* gnu/packages/machine-learning.scm (tensorflow-lite): Fix build.
[inputs]: Change flatbuffers-next to flatbuffers-23.1.

* gnu/packages/serialization.scm (flatbuffers-23.1): New variable.

Change-Id: I257c3563cb91cbf8e0f0874367aafced248ab4dc
---
 gnu/packages/machine-learning.scm |  2 +-
 gnu/packages/serialization.scm    | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 4c5b713cbf..fd790e4455 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -3487,7 +3487,7 @@ (define-public tensorflow-lite
        ("cpuinfo" ,cpuinfo)
        ("eigen" ,eigen)
        ("fp16" ,fp16)
-       ("flatbuffers" ,flatbuffers-next)
+       ("flatbuffers" ,flatbuffers-23.1)
        ("gemmlowp" ,gemmlowp)
        ("mesa-headers" ,mesa-headers)
        ("neon2sse" ,neon2sse)
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 6aaf416467..31d3ed9feb 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -899,6 +899,25 @@ (define-public flatbuffers
 game development and other performance-critical applications.")
     (license license:asl2.0)))
 
+(define-public flatbuffers-23.1
+    ;; needed explicitly by tensorflow-lite 2.13.1
+  (package
+    (inherit flatbuffers)
+    (version "23.1.21")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/google/flatbuffers")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name "flatbuffers" version))
+              (sha256
+               (base32
+                "1z3a6l8g2y53i5xzraswfs2i0i3kk52zv7nzc2q3fgisbyiri3pz"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments flatbuffers)
+       ((#:configure-flags flags #~'())
+        #~(append #$flags '("-DCMAKE_POSITION_INDEPENDENT_CODE=ON")))))))
+
 (define-public flatbuffers-next
   (package
     (inherit flatbuffers)

base-commit: 53396a22afc04536ddf75d8f82ad2eafa5082725
-- 
2.34.1





  parent reply	other threads:[~2024-08-28 14:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-21 14:04 bug#72747: tensorflow and tensorflow lite is broken Enrico Schwass via Bug reports for GNU Guix
2024-08-28 14:23 ` bug#72747: [PATCH] gnu: tensorflow-lite: Fix build Andy Tai
2024-08-28 14:47 ` Andy Tai [this message]
2024-09-01 22:24 ` [bug#72747] [PATCH v3] " Andy Tai
2024-09-03  9:55   ` bug#72747: tensorflow and tensorflow lite is broken Ludovic Courtès
2024-09-03 10:16 ` [bug#72747] " Enrico Schwass via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=738b4e753d8cd8dc84180f9fd31d66cc483b97ee.1724856448.git.atai@atai.org \
    --to=atai@atai.org \
    --cc=72747@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.