diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-08-13 21:43:07 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-08-13 21:43:07 +0000 |
commit | 6219baaaa60ced910f1b4a5f832fbe11c2a15dcd (patch) | |
tree | 94c00059cf0109a1e428eb9974fd6a02f3c71e79 /misc | |
parent | fad47638831ac9db4be8bf24786044dd082962c3 (diff) | |
download | ports-6219baaaa60ced910f1b4a5f832fbe11c2a15dcd.tar.gz ports-6219baaaa60ced910f1b4a5f832fbe11c2a15dcd.zip |
MFH: r544844
misc/nn-insight: fix build with GCC and on head
Add missing includes. This fixes build on stable/12 for powerpc64 (with GCC) and on head with powerpc64. Looking at https://www.freshports.org/misc/nn-insight/, it seems currently doesn't build even on head/amd64, so those includes should fix it.
The original error that made me look into it was:
/wrkdirs/usr/ports/misc/nn-insight/work/nn-insight-1.0.5/tensor.h:18:75: error: 'std::shared_ptr' has not been declared
18 | bool readTensorDataAsJson(const char *fileName, const TensorShape &shape, std::shared_ptr<const float> &tensorData);
| ^~~
Approved by: portmgr (fix build blanket)
Notes
Notes:
svn path=/branches/2020Q3/; revision=544845
Diffstat (limited to 'misc')
3 files changed, 29 insertions, 0 deletions
diff --git a/misc/nn-insight/files/patch-3rdparty_tensorflow_tflite-reference-implementation.cpp b/misc/nn-insight/files/patch-3rdparty_tensorflow_tflite-reference-implementation.cpp new file mode 100644 index 000000000000..b00d4f41015c --- /dev/null +++ b/misc/nn-insight/files/patch-3rdparty_tensorflow_tflite-reference-implementation.cpp @@ -0,0 +1,10 @@ +--- 3rdparty/tensorflow/tflite-reference-implementation.cpp.orig 2020-08-13 21:04:29 UTC ++++ 3rdparty/tensorflow/tflite-reference-implementation.cpp +@@ -7,6 +7,7 @@ + #include <array> + #include <algorithm> + #include <cstdint> ++#include <cstring> + #include <vector> + #include <cmath> + diff --git a/misc/nn-insight/files/patch-model-views_merge-dequantize-operators.h b/misc/nn-insight/files/patch-model-views_merge-dequantize-operators.h new file mode 100644 index 000000000000..ff1f8a9ace0d --- /dev/null +++ b/misc/nn-insight/files/patch-model-views_merge-dequantize-operators.h @@ -0,0 +1,10 @@ +--- model-views/merge-dequantize-operators.h.orig 2020-08-13 20:56:51 UTC ++++ model-views/merge-dequantize-operators.h +@@ -4,6 +4,7 @@ + + #include "../plugin-interface.h" + ++#include <cassert> + #include <memory> + #include <vector> + diff --git a/misc/nn-insight/files/patch-tensor.h b/misc/nn-insight/files/patch-tensor.h new file mode 100644 index 000000000000..3fc4837591a5 --- /dev/null +++ b/misc/nn-insight/files/patch-tensor.h @@ -0,0 +1,9 @@ +--- tensor.h.orig 2020-08-13 20:43:40 UTC ++++ tensor.h +@@ -1,5 +1,6 @@ + // Copyright (C) 2020 by Yuri Victorovich. All rights reserved. + ++#include <memory> + #include <vector> + + typedef std::vector<unsigned> TensorShape; |