Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flashlight-cpu] Fix installation #18089

Merged
merged 4 commits into from
Jun 9, 2021

Conversation

JackBoosY
Copy link
Contributor

Fix installation bug:

CMake Error at scripts/cmake/vcpkg_fixup_cmake_targets.cmake:95 (message):

'/home/skrrohit/my_repos/projects/vcpkg/packages/flashlight-cpu_x64-linux/debug/share/flashlight-cpu'
does not exist.
Call Stack (most recent call first):

Fixes #18064.

@JackBoosY JackBoosY added category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. labels May 24, 2021
@JackBoosY
Copy link
Contributor Author

@SKRohit Can you please test this PR?

Thanks.

@JackBoosY JackBoosY marked this pull request as draft May 24, 2021 09:23
@JackBoosY
Copy link
Contributor Author

Needs to fix the usage also.

@JackBoosY
Copy link
Contributor Author

Should be good, @SKRohit can you please test my changes?

@JackBoosY JackBoosY marked this pull request as ready for review May 25, 2021 00:52
@JackBoosY JackBoosY requested a review from NancyLi1013 May 25, 2021 00:53
@SKRohit
Copy link

SKRohit commented May 25, 2021

Should be good, @SKRohit can you please test my changes?

I tried this PR @JackBoosY . I tried to build everything again but got below error:

Computing installation plan...
The following packages will be built and installed:
flashlight-cpu[core,fl]:x64-linux -> 0.3#2

  • gloo[core,mpi]:x64-linux -> 20201203
  • onednn[core]:x64-linux -> 2.0#1
    Additional packages (*) will be modified to complete this operation.
    Detecting compiler hash for triplet x64-linux...
    Could not locate cached archive: /root/.cache/vcpkg/archives/47/470c1ac7cc60afc7d5492361c447c1612c6c9000.zip
    Could not locate cached archive: /root/.cache/vcpkg/archives/ce/ce5c5b81c07f55b0984433082ad0e1c0be6a4bc3.zip
    Could not locate cached archive: /root/.cache/vcpkg/archives/16/163cb435f2fb661cf97c6212e5cc734f68bd51a2.zip
    Starting package 1/3: gloo:x64-linux
    Building package gloo[core,mpi]:x64-linux...
    -- Downloading https://github.com/facebookincubator/gloo/archive/1da21174054eaabbbd189b7f657ea24842d821e2.tar.gz -> facebookincubator-gloo-1da21174054eaabbbd189b7f657ea24842d821e2.tar.gz...
    -- Extracting source /home/skrrohit/my_repos/projects/vcpkg/downloads/facebookincubator-gloo-1da21174054eaabbbd189b7f657ea24842d821e2.tar.gz
    -- Using source at /home/skrrohit/my_repos/projects/vcpkg/buildtrees/gloo/src/4842d821e2-089f9c85b8.clean
    -- Configuring x64-linux-dbg
    -- Configuring x64-linux-rel
    -- Building x64-linux-dbg
    -- Building x64-linux-rel
    -- Installing: /home/skrrohit/my_repos/projects/vcpkg/packages/gloo_x64-linux/share/gloo/copyright
    -- Performing post-build validation
    -- Performing post-build validation done
    Stored binary cache: /root/.cache/vcpkg/archives/47/470c1ac7cc60afc7d5492361c447c1612c6c9000.zip
    Building package gloo[core,mpi]:x64-linux... done
    Installing package gloo[core,mpi]:x64-linux...
    Installing package gloo[core,mpi]:x64-linux... done
    Elapsed time for package gloo:x64-linux: 12.76 s
    Starting package 2/3: onednn:x64-linux
    Building package onednn[core]:x64-linux...
    -- Downloading https://github.com/oneapi-src/oneDNN/archive/v2.0.tar.gz -> oneapi-src-oneDNN-v2.0.tar.gz...
    -- Extracting source /home/skrrohit/my_repos/projects/vcpkg/downloads/oneapi-src-oneDNN-v2.0.tar.gz
    -- Using source at /home/skrrohit/my_repos/projects/vcpkg/buildtrees/onednn/src/v2.0-80e0c80e79.clean
    -- Configuring x64-linux-dbg
    -- Configuring x64-linux-rel
    -- Building x64-linux-dbg
    CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:146 (message):
    Command failed: /home/skrrohit/my_repos/projects/vcpkg/downloads/tools/cmake-3.20.2-linux/cmake-3.20.2-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /home/skrrohit/my_repos/projects/vcpkg/buildtrees/onednn/x64-linux-dbg
    See logs for more information:
    /home/skrrohit/my_repos/projects/vcpkg/buildtrees/onednn/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:104 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
ports/onednn/portfile.cmake:20 (vcpkg_install_cmake)
scripts/ports.cmake:141 (include)

Error: Building package onednn:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with ./vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: onednn:x64-linux
Vcpkg version: 2021-05-05-unknownhash

Additionally, attach any relevant sections from the log files above.

@JackBoosY
Copy link
Contributor Author

@SKRohit Can you please provide /home/skrrohit/my_repos/projects/vcpkg/buildtrees/onednn/install-x64-linux-dbg-out.log ?

@SKRohit
Copy link

SKRohit commented May 25, 2021

Here it is @JackBoosY . I have uploaded the file in my drive and sharing that link since I was not able to comment the complete output. https://drive.google.com/file/d/1y62eqL2tomzLIg9gwx92aGXXRMZD7-4i/view?usp=sharing

@JackBoosY
Copy link
Contributor Author

@SKRohit

collect2: fatal error: ld terminated with signal 9 [Killed]

I think you don't have enough memory.

@SKRohit
Copy link

SKRohit commented May 25, 2021

@JackBoosY I have around 112GB left on my SSD and my RAM is 16GB. Btw after trying the command ./vcpkg install flashlight-cpu I am getting this error. How could I start building onednn again?

Computing installation plan...
The following packages will be built and installed:
    flashlight-cpu[core,fl]:x64-linux -> 0.3#1
  * onednn[core]:x64-linux -> 2.0#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Error: while detecting compiler information:
The log content at /home/skrrohit/my_repos/projects/vcpkg/buildtrees/detect_compiler/stdout-x64-linux.log is:
-- Configuring x64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: /home/skrrohit/my_repos/projects/vcpkg/downloads/tools/cmake-3.20.2-linux/cmake-3.20.2-linux-x86_64/bin/cmake /home/skrrohit/my_repos/projects/vcpkg/scripts/detect_compiler -DCMAKE_MAKE_PROGRAM=/home/skrrohit/my_repos/projects/vcpkg/downloads/tools/ninja-1.10.1-linux/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/skrrohit/my_repos/projects/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/home/skrrohit/my_repos/projects/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/home/skrrohit/my_repos/projects/vcpkg -D_VCPKG_INSTALLED_DIR=/home/skrrohit/my_repos/projects/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/skrrohit/my_repos/projects/vcpkg/packages/detect_compiler_x64-linux
    Working Directory: /home/skrrohit/my_repos/projects/vcpkg/buildtrees/detect_compiler/x64-linux-rel
    Error code: 1
    See logs for more information:
      /home/skrrohit/my_repos/projects/vcpkg/buildtrees/detect_compiler/config-x64-linux-rel-out.log
      /home/skrrohit/my_repos/projects/vcpkg/buildtrees/detect_compiler/config-x64-linux-rel-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:342 (vcpkg_execute_required_process)
  scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
  scripts/ports.cmake:141 (include)

@JackBoosY
Copy link
Contributor Author

@SKRohit Can you please provide /home/skrrohit/my_repos/projects/vcpkg/buildtrees/detect_compiler/config-x64-linux-rel-out.log and /home/skrrohit/my_repos/projects/vcpkg/buildtrees/detect_compiler/config-x64-linux-rel-err.log?

@JackBoosY
Copy link
Contributor Author

Ping @SKRohit for response.

@NancyLi1013 NancyLi1013 added the info:reviewed Pull Request changes follow basic guidelines label May 31, 2021
@strega-nil-ms
Copy link
Contributor

Thanks @JackBoosY :)

@strega-nil-ms strega-nil-ms merged commit bb94111 into microsoft:master Jun 9, 2021
@JackBoosY JackBoosY deleted the dev/jack/18064 branch June 10, 2021 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flashlight-cpu] build failure
4 participants