Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Dec 11, 2024 · 0 comments

Comments

@yurivict
Copy link

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant