Skip to content

GitHub Action: could not find native static library ssl on windows (mingw/msvc) #414

@0x676e67

Description

@0x676e67

Investigating the cause — my current guess is that the Rust 1.92 toolchain update is causing the Windows build tests to fail.

Github Action: https://github.com/0x676e67/boring/actions/runs/20169859985/job/57902427447

warning: boring-sys@4.19.0: applying post quantum crypto patch to boringssl
error: could not find native static library `ssl`, perhaps an -L flag is missing?

warning: boring-sys@4.19.0: applying post quantum crypto patch to boringssl
error: could not compile `boring-sys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcu4CuAG\\symbols.o" "<6 object files omitted>" "-Wl,-Bstatic" "-lcrypto" "-lssl" "-Wl,-Bdynamic" "-ladvapi32" "-Wl,-Bstatic" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib/{libtest-*,libgetopts-*,librustc_std_workspace_std-*,libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lkernel32" "-lkernel32" "-lkernel32" "-lkernel32" "-lntdll" "-luserenv" "-lws2_32" "-ldbghelp" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lmingwex" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "D:\\a\\boring\\boring\\target\\x86_64-pc-windows-gnu\\debug\\build\\boring-sys-98eaf203746c4a49\\out/build/crypto/" "-L" "D:\\a\\boring\\boring\\target\\x86_64-pc-windows-gnu\\debug\\build\\boring-sys-98eaf203746c4a49\\out/build/ssl/" "-L" "D:\\a\\boring\\boring\\target\\x86_64-pc-windows-gnu\\debug\\build\\boring-sys-98eaf203746c4a49\\out/build/" "-L" "D:\\a\\boring\\boring\\target\\x86_64-pc-windows-gnu\\debug\\build\\boring-sys-98eaf203746c4a49\\out/build" "-o" "D:\\a\\boring\\boring\\target\\x86_64-pc-windows-gnu\\debug\\deps\\boring_sys-7d06f3b284d178e6.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lssl: No such file or directory␍
          C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: have you installed the static version of the ssl library ?␍
          collect2.exe: error: ld returned 1 exit status
          

warning: boring-sys@4.19.0: applying post quantum crypto patch to boringssl
error: could not compile `boring-sys` (lib test) due to 1 previous error

After testing, it has been determined that this issue is not related to the update of the Rust 1.92 toolchain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions