Coder Social home page Coder Social logo

[libtorch] build failure about vcpkg HOT 2 CLOSED

IgorWojas avatar IgorWojas commented on August 16, 2024
[libtorch] build failure

from vcpkg.

Comments (2)

IgorWojas avatar IgorWojas commented on August 16, 2024 1

i have deleted all python related stuff i could find and now i cab get through venv but:

PS C:\Users\HP\vcpkg> ./vcpkg install libtorch
warning: In the September 2023 release, the default triplet for vcpkg libraries changed from x86-windows to the detected host triplet (x64-windows). For the old behavior, add --triplet x86-windows . To suppress this message, add --triplet x64-windows .
Computing installation plan...
The following packages will be built and installed:
libtorch[core,xnnpack]:x64-windows -> 1.12.1#3
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\HP\AppData\Local\vcpkg\archives in 778 us. Use --debug to see more details.
Installing 1/1 libtorch:x64-windows...
Building libtorch[core,xnnpack]:x64-windows...
-- Using cached pytorch-pytorch-v1.12.1.tar.gz.
-- Cleaning sources at C:/Users/HP/vcpkg/buildtrees/libtorch/src/v1.12.1-e1cb316ec6.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/HP/vcpkg/downloads/pytorch-pytorch-v1.12.1.tar.gz
-- Applying patch pytorch-pr-85958.patch
-- Applying patch fix-cmake.patch
-- Applying patch fix-fbgemm-include.patch
-- Applying patch fix-c10-glog.patch
-- Applying patch use-flatbuffers2.patch
-- Applying patch fix-windows.patch
-- Applying patch fix_werror.patch
-- Using source at C:/Users/HP/vcpkg/buildtrees/libtorch/src/v1.12.1-e1cb316ec6.clean
-- Using flatc: C:/Users/HP/vcpkg/installed/x64-windows/tools/flatbuffers/flatc.exe
-- Using protoc: C:/Users/HP/vcpkg/installed/x64-windows/tools/protobuf/protoc.exe
-- Setting up python virtual environmnent...
-- Installing python packages: typing-extensions;pyyaml;numpy
-- Setting up python virtual environmnent...finished.
-- Using Python3: C:/Users/HP/vcpkg/buildtrees/libtorch/x64-windows-venv/Scripts/python.exe
-- Found external ninja('1.11.0').
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target torch_cpu -- -v -j9
Working Directory: C:/Users/HP/vcpkg/buildtrees/libtorch/x64-windows-dbg
See logs for more information:
C:\Users\HP\vcpkg\buildtrees\libtorch\build-torch_cpu-x64-windows-dbg-out.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
ports/libtorch/portfile.cmake:158 (vcpkg_cmake_build)
scripts/ports.cmake:168 (include)

error: building libtorch:x64-windows failed with: BUILD_FAILED

build-torch_cpu-x64-windows-dbg-out.log

and err log in attachment

from vcpkg.

JonLiu1993 avatar JonLiu1993 commented on August 16, 2024

Duplicate of PR #35202

C:\Users\HP\vcpkg\buildtrees\libtorch\src\v1.12.1-e1cb316ec6.clean\aten\src\ATen/cpu/vec/vec_base.h(134): fatal error C1001: Wewnętrzny błąd kompilatora.
(plik kompilatora „D:\a\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\toinil.c”, wiersz 910)
 Aby obejść ten problem, spróbuj uprościć lub zmienić program w pobliżu miejsc wymienionych na liście powyżej.
Jeśli to możliwe, podaj kroki umożliwiające odtworzenie na stronie https://developercommunity.visualstudio.com 
Wybierz polecenie Pomoc techniczna w menu Pomoc 
 Visual C++ lub otwórz plik pomocy technicznej, aby uzyskać więcej informacji

from vcpkg.

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.