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

[liblzma] build failure #37591

Closed
elcombs opened this issue Mar 21, 2024 · 7 comments
Closed

[liblzma] build failure #37591

elcombs opened this issue Mar 21, 2024 · 7 comments
Assignees
Labels
requires:repro The issue is not currently repro-able Stale

Comments

@elcombs
Copy link

elcombs commented Mar 21, 2024

Operating system

Ubuntu 16.04.7

Compiler

GCC 5.4.0

Steps to reproduce the behavior

./vcpkg install liblzma

Failure logs

$ ./vcpkg install liblzma
Computing installation plan...
The following packages will be built and installed:
liblzma:x64-linux@5.6.0
Detecting compiler hash for triplet x64-linux...
Compiler found: /usr/bin/c++
Restored 0 package(s) from /home/ubuntu/.cache/vcpkg/archives in 7 us. Use --debug to see more details.
Installing 1/1 liblzma:x64-linux@5.6.0...
Building liblzma:x64-linux@5.6.0...
-- Using cached tukaani-project-xz-v5.6.0.tar.gz.
-- Cleaning sources at /tmp/vcpkg/buildtrees/liblzma/src/v5.6.0-0bc01dfc88.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /tmp/vcpkg/downloads/tukaani-project-xz-v5.6.0.tar.gz
-- Applying patch fix_config_include.patch
-- Applying patch win_output_name.patch
-- Applying patch add_support_ios.patch
-- Applying patch build-tools.patch
-- Using source at /tmp/vcpkg/buildtrees/liblzma/src/v5.6.0-0bc01dfc88.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: /usr/bin/cmake --build . --config Debug --target install -- -v -j2
Working Directory: /tmp/vcpkg/buildtrees/liblzma/x64-linux-dbg
See logs for more information:
/tmp/vcpkg/buildtrees/liblzma/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/liblzma/portfile.cmake:38 (vcpkg_cmake_install)
scripts/ports.cmake:175 (include)

install-x64-linux-dbg-out.log

Additional context

building liblzma 5.4.4 works fine.

@elcombs elcombs added the category:port-bug The issue is with a library, which is something the port should already support label Mar 21, 2024
@LilyWangLL LilyWangLL self-assigned this Mar 21, 2024
@LilyWangLL LilyWangLL added requires:repro The issue is not currently repro-able and removed category:port-bug The issue is with a library, which is something the port should already support labels Mar 21, 2024
@LilyWangLL
Copy link
Contributor

This issue cannot reproduce on the latest vcpkg.

user@user002:/mnt/lily/vcpkg$ ./vcpkg  install liblzma --binarysource=clear
Computing installation plan...
The following packages will be built and installed:
    liblzma:x64-linux@5.6.0
Detecting compiler hash for triplet x64-linux...
Compiler found: /usr/bin/c++
Installing 1/1 liblzma:x64-linux@5.6.0...
Building liblzma:x64-linux@5.6.0...
-- Downloading https://github.com/tukaani-project/xz/archive/v5.6.0.tar.gz -> tukaani-project-xz-v5.6.0.tar.gz...
-- Extracting source /mnt/lily/vcpkg/downloads/tukaani-project-xz-v5.6.0.tar.gz
-- Applying patch fix_config_include.patch
-- Applying patch win_output_name.patch
-- Applying patch add_support_ios.patch
-- Applying patch build-tools.patch
-- Using source at /mnt/lily/vcpkg/buildtrees/liblzma/src/v5.6.0-0bc01dfc88.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /mnt/lily/vcpkg/packages/liblzma_x64-linux/lib/pkgconfig/liblzma.pc
-- Fixing pkgconfig file: /mnt/lily/vcpkg/packages/liblzma_x64-linux/debug/lib/pkgconfig/liblzma.pc
-- Installing: /mnt/lily/vcpkg/packages/liblzma_x64-linux/share/liblzma/copyright
-- Performing post-build validation
Elapsed time to handle liblzma:x64-linux: 4.2 s
liblzma:x64-linux package ABI: 71bae98d55f32ffbf12f825a28f3d1e0f93600631676c4cd2323616bebf0f99d
Total install time: 4.2 s
liblzma is compatible with built-in CMake targets:

    find_package(LibLZMA REQUIRED)
    target_link_libraries(main PRIVATE LibLZMA::LibLZMA)

liblzma provides CMake targets:

    find_package(liblzma CONFIG REQUIRED)
    target_link_libraries(main PRIVATE liblzma::liblzma)

user@user002:/mnt/lily/vcpkg$ ./vcpkg  --version
vcpkg package management program version 2024-03-14-7d353e869753e5609a1f1a057df3db8fd356e49d

@hihxy
Copy link

hihxy commented Mar 21, 2024

why? I can not install. T_T

E:\vcpkg>vcpkg.exe install liblzma --binarysource=clear
Computing installation plan...
The following packages will be built and installed:
    liblzma:x64-windows@5.6.0
Detecting compiler hash for triplet x64-windows...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:7890".
Compiler found: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe
Installing 1/1 liblzma:x64-windows@5.6.0...
Building liblzma:x64-windows@5.6.0...
-- Using cached tukaani-project-xz-v5.6.0.tar.gz.
-- Cleaning sources at E:/vcpkg/buildtrees/liblzma/src/v5.6.0-0bc01dfc88.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/vcpkg/downloads/tukaani-project-xz-v5.6.0.tar.gz
-- Applying patch fix_config_include.patch
-- Applying patch win_output_name.patch
-- Applying patch add_support_ios.patch
-- Applying patch build-tools.patch
-- Using source at E:/vcpkg/buildtrees/liblzma/src/v5.6.0-0bc01dfc88.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Warning at installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:318 (message):
  The following variables are not used in CMakeLists.txt:

      ENABLE_NLS

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/liblzma/portfile.cmake:23 (vcpkg_cmake_configure)
  scripts/ports.cmake:175 (include)


-- Building x64-windows-dbg
CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message):
  Please ensure your system has sufficient memory.
Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/liblzma/portfile.cmake:38 (vcpkg_cmake_install)
  scripts/ports.cmake:175 (include)


-- Restarting build without parallelism
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "D:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j21
    Working Directory: E:/vcpkg/buildtrees/liblzma/x64-windows-dbg
    See logs for more information:
      E:\vcpkg\buildtrees\liblzma\install-x64-windows-dbg-out.log
      E:\vcpkg\buildtrees\liblzma\install-x64-windows-dbg-out-1.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/liblzma/portfile.cmake:38 (vcpkg_cmake_install)
  scripts/ports.cmake:175 (include)


error: building liblzma:x64-windows failed with: BUILD_FAILED
Elapsed time to handle liblzma:x64-windows: 12 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+liblzma
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[liblzma]+Build+error+on+x64-windows&body=Copy+issue+body+from+E%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

@elcombs
Copy link
Author

elcombs commented Mar 21, 2024

Thanks for the update, @LilyWangLL. I cannot comment on @hihxy's experience, but I agree that this is not a vcpkg issue. I tried building from the liblzma distribution directly and it fails with the same errors. BTW, I am also using the latest vcpkg,

$ ./vcpkg --version
vcpkg package management program version 2024-03-14-7d353e869753e5609a1f1a057df3db8fd356e49d

Maybe we have different compiler versions?

@dg0yt
Copy link
Contributor

dg0yt commented Mar 21, 2024

Maybe we have different compiler versions?

Sure. You won't find much support for:

Operating system

Ubuntu 16.04.7

Compiler

GCC 5.4.0

Upgrade your toolchain, or stay with the old liblzma version...

@JackBoosY
Copy link
Contributor

Agreed with @dg0yt, this issue should related to the compiler version.

@dg0yt
Copy link
Contributor

dg0yt commented Mar 30, 2024

stay with the old liblzma version

Only this option left. #37839

Copy link

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Apr 28, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able Stale
Projects
None yet
Development

No branches or pull requests

5 participants