Skip to content

cmake fail to fetch on windows-lates @1.7.0 #453

@sofyane0bentaleb

Description

@sofyane0bentaleb

using CPM v 0.42 try to fetch stb_image.h.

in version 1.6.0 was fine

workflow : https://github.com/sofyane0bentaleb/GameEngine/actions/runs/20622618421/workflow

log:

CMake Deprecation Warning at build/windows-latest-gcc-Release/_deps/glm-src/CMakeLists.txt:2 (cmake_policy):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- GLM: Version 1.0.1
-- GLM: Build with C++ features auto detection
-- CPM: Adding package stb_image@ ()
-- Populating stb_image
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: D:/a/GameEngine/GameEngine/build/windows-latest-gcc-Release/_deps/stb_image-subbuild
[1/10] Creating directories for 'stb_image-populate'
[1/10] Performing download step (download and verify) for 'stb_image-populate'
-- Downloading...
   dst='D:/a/GameEngine/GameEngine/build/windows-latest-gcc-Release/_deps/stb_image-subbuild/stb_image-populate-prefix/src/stb_image.h'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://raw.githubusercontent.com/nothings/stb/5c205738c191bcb0abc65c4febfa9bd25ff35234/stb_image.h'
CMake Error at stb_image-subbuild/stb_image-populate-prefix/src/stb_image-populate-stamp/download-stb_image-populate.cmake:163 (message):
  Each download failed!

    error: downloading 'https://raw.githubusercontent.com/nothings/stb/5c205738c191bcb0abc65c4febfa9bd25ff35234/stb_image.h' failed
          status_code: 60
          status_string: "SSL peer certificate or SSH remote key was not OK.  If this is due to https certificate verification failure, one may set environment variable CMAKE_TLS_VERIFY=0 to suppress it."
          log:
          --- LOG BEGIN ---
          Host raw.githubusercontent.com:443 was resolved.

  IPv6: (none)

  IPv4: 185.199.108.133, 185.199.109.133, 185.199.110.133, 185.199.111.133

    Trying 185.199.108.133:443...

  GnuTLS priority:
  NORMAL:-ARCFOUR-128:-CTYPE-ALL:+CTYPE-X509:-VERS-SSL3.0:-VERS-TLS-ALL:+VERS-TLS1.3:+VERS-TLS1.2

  ALPN: curl offers http/1.1

  SSL connection using TLS1.3 / ECDHE_RSA_AES_128_GCM_SHA256

  server verification failed: certificate signer not trusted.  (CAfile: none
  CRLfile: none)

  closing connection #0



          --- LOG END ---
          
    


FAILED: [code=1] stb_image-populate-prefix/src/stb_image-populate-stamp/stb_image-populate-download D:/a/GameEngine/GameEngine/build/windows-latest-gcc-Release/_deps/stb_image-subbuild/stb_image-populate-prefix/src/stb_image-populate-stamp/stb_image-populate-download 
C:\Windows\system32\cmd.exe /C "cd /D D:\a\GameEngine\GameEngine\build\windows-latest-gcc-Release\_deps && C:\Users\runneradmin\gcc\mingw64\bin\cmake.exe -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P D:/a/GameEngine/GameEngine/build/windows-latest-gcc-Release/_deps/stb_image-subbuild/stb_image-populate-prefix/src/stb_image-populate-stamp/download-stb_image-populate.cmake && C:\Users\runneradmin\gcc\mingw64\bin\cmake.exe -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P D:/a/GameEngine/GameEngine/build/windows-latest-gcc-Release/_deps/stb_image-subbuild/stb_image-populate-prefix/src/stb_image-populate-stamp/verify-stb_image-populate.cmake && C:\Users\runneradmin\gcc\mingw64\bin\cmake.exe -E touch D:/a/GameEngine/GameEngine/build/windows-latest-gcc-Release/_deps/stb_image-subbuild/stb_image-populate-prefix/src/stb_image-populate-stamp/stb_image-populate-download"
ninja: build stopped: subcommand failed.
CMake Error at C:/Users/runneradmin/gcc/mingw64/share/cmake-4.1/Modules/FetchContent.cmake:1918 (message):
  Build step for stb_image failed: 1
Call Stack (most recent call first):
  C:/Users/runneradmin/gcc/mingw64/share/cmake-4.1/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild)
  C:/Users/runneradmin/gcc/mingw64/share/cmake-4.1/Modules/FetchContent.cmake:1997 (__FetchContent_doPopulation)
  C:/Users/runneradmin/gcc/mingw64/share/cmake-4.1/Modules/FetchContent.cmake:1978:EVAL:1 (__FetchContent_Populate)
  C:/Users/runneradmin/gcc/mingw64/share/cmake-4.1/Modules/FetchContent.cmake:1978 (cmake_language)
  cmake/CPM.cmake:1200 (FetchContent_Populate)
  cmake/CPM.cmake:989 (cpm_fetch_package)
  cmake/helpers.cmake:287 (CPMAddPackage)
  cmake/FetchDeps.cmake:11 (fetch_and_include_file)
  CMakeLists.txt:85 (include)


-- Configuring incomplete, errors occurred!
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions