Comments (14)
Hi, it seems that the library is trying to be installed to the current working directory. Have you used only cmake ..
or have you used something as cmake -DCMAKE_INSTALL_PREFIX=...
?
from tensorflow_cc.
Hi, i only used cmake -DTENSORFLOW_STATIC=OFF -DTENSORFLOW_SHARED=ON ..
from tensorflow_cc.
Strange, I am not really sure where this could happen. Can you tell me your operating system version (uname -a
) and the exact sequence of commands you have done (i.e., the steps to reproduce the issue)?
from tensorflow_cc.
Output of uname -a : 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Commande sequence: cmake -DTENSORFLOW_STATIC=OFF -DTENSORFLOW_SHARED=ON ..
make && sudo make install
from tensorflow_cc.
Also have this bug
from tensorflow_cc.
I still do not know from where does the issue originate. :-( Can you try whether it also happens in the case of building the static library?
(just cmake ..
, please remove the whole build
folder before doing it)
I will rebuild the Dockerfile tests to find out whether it is not because of a new version of some package.
from tensorflow_cc.
I have made some improvements to the library. Can you please make a clean clone of the project and try over? Beware that the list of requirements has slightly changed, now g++-6
is used instead of g++-5
, see the README.md.
In the new version, all tests are green and TensorFlow 1.4.0-rc0 is used.
from tensorflow_cc.
I'm encountering this error after a clean clone and working through the issues in #27. I actually get a build failure and need to manually move a line in cuda/cuda_dnn.cc in order to get tensorflow to compile through bazel, but perhaps completing the build with an existing build folder is the issue here? I'll try editing one of your scripts to get the change to happen automatically.
from tensorflow_cc.
So the issue I have with cuda/cuda_dnn.cc is resolved by applying this fix tensorflow/tensorflow#13255.
I added the line
COMMAND printf %s\\n 235m247 w q | ed -s tensorflow/stream_executor/cuda/cuda_dnn.cc
After the other COMMAND lines in tensorflow_cc/cmake/TensorflowBase.cmake.
from tensorflow_cc.
Hi, have you solved the issue? currently I also met with the issue as below:
Target //tensorflow:libtensorflow_cc.so up-to-date:
bazel-bin/tensorflow/libtensorflow_cc.so
INFO: Elapsed time: 14.921s, Critical Path: 5.78s
cp: cannot copy a directory, '/tmp/repo/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf', into itself, './tensorflow/contrib/makefile/gen/protobuf/protobuf'
make[2]: *** [CMakeFiles/tensorflow_shared.dir/build.make:112: tensorflow-stamp/tensorflow_shared-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/tensorflow_shared.dir/all] Error 2
My Os info:
Linux workstation-p50 4.13.9-1-ARCH #1 SMP PREEMPT Sun Oct 22 09:07:32 CEST 2017 x86_64 GNU/Linux
And since tensorflow 1.4 is out, so I updated the version to 1.4
from tensorflow_cc.
Hi, I have not been able to reproduce the issue yet. It looks as if the CMake install prefix is set to the current working directory instead of /usr/local
. Can you please try to configure the project using
cmake -DTENSORFLOW_STATIC=OFF -DTENSORFLOW_SHARED=ON -DCMAKE_INSTALL_PREFIX=/usr/local ..
That is, explicity setting the install prefix? Thanks.
from tensorflow_cc.
@FloopCZ Explicitly adding CMAKE_INSTALL_PREFIX solved the the "cannot copy a directory" on Ubuntu 16 for me.
from tensorflow_cc.
@hyperdrive Thank you for the information, I will have to put this information to the README.md
. I still wonder how is it possible that for some installations, the default cmake install prefix is set to the current workdir, though.
from tensorflow_cc.
I have finally found and fixed the real source of the issue in the latest master.
from tensorflow_cc.
Related Issues (20)
- what is the Tensorflow version that i can compile with bazel 3.7.1? HOT 1
- Build Failed
- subprocess.CalledProcessError: Command '['bazel', 'build', '-c', 'opt', '//mediapipe_api:mediapipe_proto_srcs']' returned non-zero exit status 1. HOT 1
- tensorflow_cc slow startup, tensorflow over python works as expected HOT 7
- Bazel build fails on both macOS and Ubuntu HOT 3
- Where are certain tensorflow c/cc files? HOT 3
- Use system Eigen and/or provide FindEigen.cmake
- error while built HOT 1
- support for new versions of tensorflow
- It seems that Tensorflow_cc does not use the GPU on my installation HOT 19
- Tag/release 2.6/2.7/2.8 HOT 4
- is there a way to do this in windows HOT 2
- Duplicate #136 code and meet make errors HOT 16
- error downloads file from llvm repository HOT 2
- Inconsistent CUDA toolkit path: /usr vs /usr/lib HOT 2
- Conan package
- how to include tensorflow lite libraries also
- Cc1plus error when building tensorflow HOT 1
- Linking step fails with undefined symbols. HOT 4
- Still requires building tensorflow HOT 1
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 tensorflow_cc.