Skip to content

Build fails on armv7: error[E0433]: failed to resolve: use of undeclared crate or module alloc #54

@yurivict

Description

@yurivict
[smartstring 1.0.1]   |
[smartstring 1.0.1]   = note: the build environment is likely misconfigured
[smartstring 1.0.1] 
[smartstring 1.0.1] error[E0433]: failed to resolve: use of undeclared crate or module `alloc`
[smartstring 1.0.1]  --> <anon>:1:18
[smartstring 1.0.1]   |
[smartstring 1.0.1] 1 | pub trait Probe: alloc::alloc::Allocator + Sized {}
[smartstring 1.0.1]   |                  ^^^^^ use of undeclared crate or module `alloc`
[smartstring 1.0.1]   |
[smartstring 1.0.1]   = help: add `extern crate alloc` to use the `alloc` crate
[smartstring 1.0.1] help: consider importing this module
[smartstring 1.0.1]   |
[smartstring 1.0.1] 1 + use std::alloc;
[smartstring 1.0.1]   |
[smartstring 1.0.1] help: if you import `alloc`, refer to it directly
[smartstring 1.0.1]   |
[smartstring 1.0.1] 1 - pub trait Probe: alloc::alloc::Allocator + Sized {}
[smartstring 1.0.1] 1 + pub trait Probe: alloc::Allocator + Sized {}
[smartstring 1.0.1]   |
[smartstring 1.0.1] 
[smartstring 1.0.1] error: aborting due to 1 previous error

Encountered during build of rio-terminal-emulator-0.2.1
FreeBSD 14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions