GithubHelp home page GithubHelp logo

Comments (4)

NeoZhangJianyu avatar NeoZhangJianyu commented on April 30, 2024

@jimwang118
Hi,
This issue is about old Tensorflow: 2.10.0.
Could you confirm the version?

Have you install LLVM? please refer to: https://www.tensorflow.org/install/source_windows#install_llvm
I suggest to follow all steps in guide: https://www.tensorflow.org/install/source_windows

If you really work with 2.10.0, I suggest to try same case with latest Tensorflow.
Because old TF (2.10.0) is hard to maintain, so all bugs will be fixed in latest version, instead of based on 2.10.0.

Thank you!

from tensorflow.

jimwang118 avatar jimwang118 commented on April 30, 2024

Compile the latest version and use the following command, but the same problem occurs.
'F:/vcpkg/installed/x64-windows/tools/bazel' --output_user_root='F:/vcpkg/buildtrees/tensorflow/.bzl' --max_idle_secs=1 build --verbose_failures --jobs=9 --python_path='F:/vcpkg/downloads/tools/msys2/70baefe917a26e68/mingw64/bin/python3.exe' --define=no_tensorflow_py_deps=true ///tensorflow:tensorflow.dll ///tensorflow:install_headers

Is llvm necessary to compile tensorflow?

from tensorflow.

jimwang118 avatar jimwang118 commented on April 30, 2024

@NeoZhangJianyu I installed llvm17.0.2 locally, but the following problem still occurred during compilation.
ERROR: F:/vcpkg/buildtrees/tensorflow/.bzl/3tyt3lpr/external/llvm-project/llvm/BUILD.bazel:622:10: Linking external/llvm-project/llvm/llvm-min-tblgen.exe [for tool] failed: (Exit 1201): link.exe failed: error executing command (from target @llvm-project//llvm:llvm-min-tblgen)
build-x64-windows-dbg-err.log

from tensorflow.

NeoZhangJianyu avatar NeoZhangJianyu commented on April 30, 2024

2.10 is last version to support native windows.
newer versions are only supported in WSL2.

If you try latest version, please build it in WSL2 in window, instead of native.
If you want to use 2.10, I suggest to install the binary directly.

If you still try with 2.10, please follow the steps in guide: https://www.tensorflow.org/install/source_windows.
In the log, looks like the build cmd is not same as the guide.

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.