question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make build in aarch64 centos8 about tf-encrypted-master

See original GitHub issue

Hello,I meet a problem:make build in aarch64 centos8 about tf-encrypted-master. see:

[root@centos8 tf-encrypted-master]# export CPATH=/root/0526/tf-encrypted/tensorflow-1.15.2
[root@centos8 tf-encrypted-master]# make build
……
mkdir -p tf_encrypted/operations/secure_random
g++ -std=c++11 -shared operations/secure_random/secure_random.cc -o tf_encrypted/operations/secure_random/secure_random_module_tf_1.15.2.so \
        -fPIC -I/usr/local/lib64/python3.6/site-packages/tensorflow_core/include -D_GLIBCXX_USE_CXX11_ABI=1  -O2 -I/root/0526/tf-encrypted/tf-encrypted-master/build/include -L/root/0526/tf-encrypted/tf-encrypted-master/build/lib -lsodium
In file included from /root/0526/tf-encrypted/tensorflow-1.15.2/tensorflow/core/lib/core/errors.h:22,
                 from /root/0526/tf-encrypted/tensorflow-1.15.2/tensorflow/core/platform/env.h:24,
                 from /root/0526/tf-encrypted/tensorflow-1.15.2/tensorflow/core/lib/core/threadpool.h:23,
                 from /root/0526/tf-encrypted/tensorflow-1.15.2/tensorflow/core/util/work_sharder.h:21,
                 from operations/secure_random/secure_random.cc:1:
/root/0526/tf-encrypted/tensorflow-1.15.2/tensorflow/core/lib/core/status.h:23:10: fatal error: tensorflow/core/lib/core/error_codes.pb.h: No such file or directory
 #include "tensorflow/core/lib/core/error_codes.pb.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:326: tf_encrypted/operations/secure_random/secure_random_module_tf_1.15.2.so] Error 1

Can you help me?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Tom-python0121commented, Jun 3, 2021

@zicofish .I have found the problem: The TensorFlow and third_party folders are stored in the /usr/local/lib/python3.6/site-packages/tensorflow_core directory by default during TensorFlow installation by PIP. Therefore, the two folders are not found in the /usr/local/lib64/python3.6/site-packages/tensorflow_core/include directory. The make build problem has been solved:

[root@centos8 tf-encrypted-master]# make build
mkdir -p tf_encrypted/operations/secure_random
g++ -std=c++11 -shared operations/secure_random/secure_random.cc -o tf_encrypted/operations/secure_random/secure_random_module_tf_1.15.2.so \
        -fPIC -I/usr/local/lib64/python3.6/site-packages/tensorflow_core/include -D_GLIBCXX_USE_CXX11_ABI=1  -O2 -I/root/0526/tf-encrypted/tf-encrypted-master/build/include -L/root/0526/tf-encrypted/tf-encrypted-master/build/lib -lsodium

Thank you for the reminder and help in resolving my confusion.

0reactions
Tom-python0121commented, Jun 3, 2021

@zicofish

[root@centos8 tf-encrypted-master]# ls /usr/local/lib64/python3.6/site-packages/tensorflow_core/include
absl  Eigen  external  google  include  tensorflow  third_party  unsupported
[root@centos8 tf-encrypted-master]# make build
mkdir -p tf_encrypted/operations/secure_random
g++ -std=c++11 -shared operations/secure_random/secure_random.cc -o tf_encrypted/operations/secure_random/secure_random_module_tf_1.15.2.so \
        -fPIC -I/usr/local/lib64/python3.6/site-packages/tensorflow_core/include -D_GLIBCXX_USE_CXX11_ABI=1  -O2 -I/root/0526/tf-encrypted/tf-encrypted-master/build/include -L/root/0526/tf-encrypted/tf-encrypted-master/build/lib -lsodium
In file included from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/platform/cord.h:25,
                 from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/platform/tstring.h:24,
                 from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/platform/types.h:23,
                 from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/platform/env_time.h:20,
                 from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/platform/env.h:26,
                 from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/platform/threadpool.h:23,
                 from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/lib/core/threadpool.h:19,
                 from /usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/util/work_sharder.h:21,
                 from operations/secure_random/secure_random.cc:1:
/usr/local/lib64/python3.6/site-packages/tensorflow_core/include/tensorflow/core/platform/default/cord.h:22:10: fatal error: absl/strings/cord.h: No such file or directory
 #include "absl/strings/cord.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:326: tf_encrypted/operations/secure_random/secure_random_module_tf_1.15.2.so] Error 1
[root@centos8 strings]# pwd
/usr/local/lib64/python3.6/site-packages/tensorflow_core/include/absl/strings
[root@centos8 strings]# ls
ascii.h  charconv.h  escaping.h  internal  match.h  numbers.h  str_cat.h  str_format.h  string_view.h  strip.h  str_join.h  str_replace.h  str_split.h  substitute.h

It still can’t find the relevant header file cord.h.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tf-encrypted/README.md at master - GitHub
TF Encrypted aims to make privacy-preserving machine learning readily available, without requiring expertise in cryptography, distributed systems, or high ...
Read more >
8.6 Release Notes Red Hat Enterprise Linux 8
The Release Notes provide high-level coverage of the improvements and additions that have been implemented in Red Hat Enterprise Linux 8.6 and document ......
Read more >
Change log for 4.11.0-0.nightly-arm64-2022-06-23-063435
ExpirationSeconds field to GA #108782; make comments of (c ... fix: arm64 image build #1048; chore: switch master branch to use v1.9.0 #1045 ......
Read more >
SUSE Manager 4.3: Client Configuration Guide
Set up ISS master and slave organization mappings. spacewalk-manage-channel- lifecycle. Manage channel lifecycles.
Read more >
Release notes for Uyuni Server
Salt as a Bundle; aarch64 support for openSUSE Leap 15.3, CentOS 7/8, clones and related systems; System reactivation ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found