Skip to content

Build Issue: half@2.5.0 and bytemuck_derive@1.9.2 both require rustc 1.8+ #60

@zfedoran

Description

@zfedoran

I am not able to run cargo test-sbf or build-sbf under the dependencies pulled in for fixed.

> cargo build-sbf --version
solana-cargo-build-sbf 2.1.16
platform-tools v1.43
rustc 1.79.0
> cargo build-sbf

error: rustc 1.79.0-dev is not supported by the following packages:

Note that this is the rustc version that ships with Solana tools and not your system's rustc version. Use `solana-install update` or head over to https://docs.solanalabs.com/cli/install to install a newer version.

  bytemuck_derive@1.9.2 requires rustc 1.84
  half@2.5.0 requires rustc 1.81

Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.79.0-dev

I'm trying to update to the 4.0.1 release (not in crates yet), but regardless, same result with 4.0.0.

> cargo tree
├── steel v4.0.1 (https://github.com/regolith-labs/steel?rev=3f6b36b#3f6b36b2)
│   ├── bytemuck v1.22.0 (*)
│   ├── fixed v1.28.0
│   │   ├── az v1.2.1
│   │   ├── bytemuck v1.22.0 (*)
│   │   ├── half v2.5.0         <<<--- still using 2.5.0
│   │   │   └── cfg-if v1.0.0
│   │   └── typenum v1.18.0

@HardhatChad I noticed you've pushed a fix, are you able to build with this on your machine?

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