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

SDL2 build failure #8553

Closed
Ilkhom-S opened this issue Oct 11, 2019 · 4 comments
Closed

SDL2 build failure #8553

Ilkhom-S opened this issue Oct 11, 2019 · 4 comments
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) depends:upstream-changes Waiting on a change to the upstream project

Comments

@Ilkhom-S
Copy link

Ilkhom-S commented Oct 11, 2019

Host Environment

  • OS: Windows
  • Compiler: latest

To Reproduce
Steps to reproduce the behavior:
./vcpkg install sdl2

Failure logs
CMake Error: Problem with archive_write_header(): Can't create ''
CMake Error: Current file: SDL-release-2.0.9/android-project-ant/AndroidManifest.xml
CMake Error: Problem extracting tar: C:/vcpkg/downloads/SDL-Mirror-SDL-release-2.0.9.tar.gz

@Ilkhom-S Ilkhom-S added the category:port-bug The issue is with a library, which is something the port should already support label Oct 11, 2019
@LilyWangL LilyWangL self-assigned this Oct 11, 2019
@LilyWangL LilyWangL 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 Oct 11, 2019
@LilyWangL
Copy link
Contributor

Hi @Ilkhom-S, I can't reproduce it locally. Can you provide the complete log? You can attach the log file on this issue.

@Ilkhom-S
Copy link
Author

Hello @LilyWangL ,
Result screen log. and C:\vcpkg\buildtrees\sdl2\extract-err.log already provided above.

The following packages will be built and installed:
sdl2[core]:x86-windows
Starting package 1/1: sdl2:x86-windows
Building package sdl2[core]:x86-windows...
-- Using cached C:/vcpkg/downloads/SDL-Mirror-SDL-release-2.0.9.tar.gz
-- Extracting source C:/vcpkg/downloads/SDL-Mirror-SDL-release-2.0.9.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: C:/vcpkg/downloads/tools/cmake-3.14.0-windows/cmake-3.14.0-win32-x86/bin/cmake.exe -E tar xjf C:/vcpkg/downloads/SDL-Mirror-SDL-release-2.0.9.tar.gz
Working Directory: C:/vcpkg/buildtrees/sdl2/src/TEMP
Error code: 1
See logs for more information:
C:\vcpkg\buildtrees\sdl2\extract-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive.cmake:43 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:108 (vcpkg_extract_source_archive)
scripts/cmake/vcpkg_from_github.cmake:114 (vcpkg_extract_source_archive_ex)
ports/sdl2/portfile.cmake:3 (vcpkg_from_github)
scripts/ports.cmake:94 (include)

Error: Building package sdl2:x86-windows 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: sdl2:x86-windows
Vcpkg version: 2019.09.12-nohash

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

@LilyWangL LilyWangL assigned JackBoosY and unassigned LilyWangL Oct 12, 2019
@JackBoosY
Copy link
Contributor

JackBoosY commented Oct 12, 2019

Hi @Ilkhom-S, thanks for reporting this issue,
I think it's a cmake bug, see here.

The solution is to modify VCPKG_PATH/scripts/vcpkgTools.xml to change the cmake version to below 3.14.0, or use the workaround in cmake issue.

Here is my vcpkgTools.xml:
Line 3-9

    <tool name="cmake" os="windows">
        <version>3.13.4</version>
        <exeRelativePath>cmake-3.13.4-win32-x86\bin\cmake.exe</exeRelativePath>
        <url>https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4-win32-x86.zip</url>
        <sha512>285f8bc0beaa6987a6d76f12747332a5c403ecd8c129c7029d56dd32468ed8ff4a87d6e5639ac341161c918e9caf33f39582881205cbbfc00d9796547258d06c</sha512>
        <archiveName>cmake-3.13.4-win32-x86.zip</archiveName>
    </tool>

@JackBoosY JackBoosY added depends:upstream-changes Waiting on a change to the upstream project category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) and removed requires:repro The issue is not currently repro-able labels Oct 12, 2019
@Ilkhom-S
Copy link
Author

Hello @JackBoosY ,
Thanks for helping. After downgrading version to 3.13.4 , it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) depends:upstream-changes Waiting on a change to the upstream project
Projects
None yet
Development

No branches or pull requests

3 participants