Skip to content

Windows CI fails: "fatal error C1083: Cannot open include file: 'openssl/evp.h': No such file or directory"  #108888

Closed

Description

@sobolevn

Bug report

Example: https://github.com/python/cpython/actions/runs/6076691980/job/16485108929

Output:

 D:\a\cpython\cpython\Modules\_hashopenssl.c(32,10): fatal  error C1083: Cannot open include file: 'openssl/evp.h': No such file or directory [D:\a\cpython\cpython\PCbuild\_hashlib.vcxproj]
D:\a\cpython\cpython\Modules\_ssl.h(5,10): fatal  error C1083: Cannot open include file: 'openssl/evp.h': No such file or directory [D:\a\cpython\cpython\PCbuild\_ssl.vcxproj]
  stream_buffer_decoder.c
  stream_buffer_encoder.c
  stream_decoder.c
  stream_encoder.c
  connection.c
  stream_encoder_mt.c
  cursor.c
  stream_flags_common.c
  stream_flags_decoder.c
  _tkinter.c
  microprotocols.c
  tkappinit.c
  stream_flags_encoder.c
  module.c
  vli_decoder.c
  prepare_protocol.c
  vli_encoder.c
  row.c
  vli_size.c
  statement.c
  util.c
  delta_common.c
  blob.c
  delta_decoder.c
  delta_encoder.c
  fastpos_table.c
  lzma2_decoder.c
  lzma2_encoder.c
     Creating library D:\a\cpython\cpython\PCbuild\amd64\_tkinter_d.lib and object D:\a\cpython\cpython\PCbuild\amd64\_tkinter_d.exp
  lzma_decoder.c
  lzma_encoder.c
  lzma_encoder_optimum_fast.c
     Creating library D:\a\cpython\cpython\PCbuild\amd64\_sqlite3_d.lib and object D:\a\cpython\cpython\PCbuild\amd64\_sqlite3_d.exp
  lzma_encoder_optimum_normal.c
  lzma_encoder_presets.c
  _tkinter.vcxproj -> D:\a\cpython\cpython\PCbuild\amd64\_tkinter_d.pyd
  lz_decoder.c
  lz_encoder.c
  lz_encoder_mf.c
  _sqlite3.vcxproj -> D:\a\cpython\cpython\PCbuild\amd64\_sqlite3_d.pyd
  price_table.c
  arm.c
  armthumb.c
  ia64.c
  powerpc.c
  simple_coder.c
  simple_decoder.c
  simple_encoder.c
  sparc.c
  x86.c
  liblzma.vcxproj -> D:\a\cpython\cpython\PCbuild\amd64\liblzma_d.lib
  _lzmamodule.c
     Creating library D:\a\cpython\cpython\PCbuild\amd64\_lzma_d.lib and object D:\a\cpython\cpython\PCbuild\amd64\_lzma_d.exp
  _lzma.vcxproj -> D:\a\cpython\cpython\PCbuild\amd64\_lzma_d.pyd

Build FAILED.

D:\a\cpython\cpython\Modules\_hashopenssl.c(32,10): fatal  error C1083: Cannot open include file: 'openssl/evp.h': No such file or directory [D:\a\cpython\cpython\PCbuild\_hashlib.vcxproj]
D:\a\cpython\cpython\Modules\_ssl.h(5,10): fatal  error C1083: Cannot open include file: 'openssl/evp.h': No such file or directory [D:\a\cpython\cpython\PCbuild\_ssl.vcxproj]

Activity

  1. zooba commented on Sep 5, 2023

    @zooba
    Member

    This is caused by network issues failing to download the OpenSSL packages. @ambv weren't you looking at this already?

    PCbuild/get_external.py needs retry logic for the download step. And arguably we should make the entire build fail if any downloads fail, but that's harder to pipe through all the different batch files in use here.

  2. picnixz commented on Jul 15, 2025

    @picnixz
    Member

    Since it's caused by intermittent network failures, I'm going to close this one. We recently had a PR that makes retries (#134820).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsbuildThe build process and cross-buildtopic-SSLtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions