Skip to content

boringssl submodule in crates.io is incomplete #2097

@WesleyRosenblum

Description

@WesleyRosenblum

I'm trying to compile a project that has a Cargo.toml dependency on quiche on a 32-bit platform and I'm encountering this error:

CMake Error at /usr/local/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake:130 (message):
    Could not find toolchain file:
    /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quiche-0.24.4/deps/boringssl/src/util/32-bit-toolchain.cmake

The quiche dependency is specified in my Cargo.toml as follows:

[dev-dependencies]
quiche = "0.24"

My understanding is that Rust crates published to crates.io include git submodules in the source as a regular directory. The boringssl submodule does appear in the source aquired from crates.io, but it is missing the referenced 32-bit-toolchain.cmake file:

curl -L 'https://crates.io/api/v1/crates/quiche/0.24.4/download' | tar -zxf -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 3691k  100 3691k    0     0  5107k      0 --:--:-- --:--:-- --:--:-- 5107k

ls -a quiche-0.24.4/deps/boringssl/src/util
.         ..        ar        fipstools

cat quiche-0.24.4/deps/boringssl/src/util/32-bit-toolchain.cmake
cat: quiche-0.24.4/deps/boringssl/src/util/32-bit-toolchain.cmake: No such file or directory

I believe this can happen if the git submodule hasn't been properly initialized or checked out at the time the crate was published to crates.io.

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