Comments (2)
And I find a bug when I try to build tf_nightly 1.14 from https://github.com/capeprivacy/tensorflow.
env:
ubuntu 20.04(WSL)
g++ 9.3.0
bazel 0.26.1
ERROR: /home/wixee/.cache/bazel/_bazel_wixee/f60087e168a450f0f32faca0e4b96746/external/grpc/BUILD:507:1: C++ compilation of rule '@grpc//:gpr_base' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 27 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
external/grpc/src/core/lib/gpr/log_linux.cc:43:13: error: ambiguating new declaration of 'long int gettid()'
43 | static long gettid(void) { return syscall(__NR_gettid); }
| ^~~~~~
In file included from /usr/include/unistd.h:1170,
from external/grpc/src/core/lib/gpr/log_linux.cc:41:
/usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: old declaration '__pid_t gettid()'
34 | extern __pid_t gettid (void) __THROW;
| ^~~~~~
external/grpc/src/core/lib/gpr/log_linux.cc:43:13: warning: 'long int gettid()' defined but not used [-Wunused-function]
43 | static long gettid(void) { return syscall(__NR_gettid); }
| ^~~~~~
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 447.916s, Critical Path: 25.77s
INFO: 218 processes: 218 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
from tf-seal.
Well, I solved this problem by myself.
- download grpc from the url in tensorflow/tensorflow/workspace.bzl. (https://github.com/grpc/grpc/archive/4566c2a29ebec0835643b972eb99f4306c4234a3.tar.gz)
- unzip the package, change the function name gettid to sys_gettid in grpc/src/core/lib/gpr/log_linux.cc, grpc/src/core/lib/gpr/log_posix.cc, grpc/src/core/lib/iomgr/ev_epollex_linux.cc, then package the grpc to a new tar package with the original file name.
- use nginx, move the new tar package to /var/www/html and start the service nginx.
- modify the sha256sum of grpc package in tensorflow/tensorflow/workspace.bzl to the sha256 of the new package.
- build
And be sure to use numpy < 1.19.0, or there will be another issue.
I spend nearly 7 hours to build it. LOL
from tf-seal.
Related Issues (20)
- Illegal instruction while importing custom tensorflow HOT 5
- Build of custom tensorflow fail HOT 3
- Errors running the example HOT 5
- AttributeError: module 'tf_seal' has no attribute 'convert_to_tensor' HOT 5
- Storing tfseal objects on disk HOT 1
- Build failing for custom tensorflow inside docker HOT 6
- Circle CI is very slow
- Update SEAL version
- Testing is very slow
- Trying to work with simple datasets HOT 4
- Errors on make tensorflow HOT 1
- can't use pip to install HOT 5
- importing tf-seal ends with 'GLIBC_2.29' not found error HOT 6
- pip install tf-seal fails HOT 1
- TensorFlow install URL results in Error 403 (Forbidden) HOT 2
- Custom TensorFlow URL are invalid HOT 3
- seal_poly_eval
- Could not find a version that satisfies the requirement tf-nightly<2,>=1.14.0 (from tf-seal)
- decryption
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tf-seal.