-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unable to build with anchor 0.28.0
#645
Comments
I encounter a similar issue on my machine with Context: This is a typical complaint from Cargo I encounter:
Related: "overflow-checks" in Cargo.toml
I've decided to enable it, but it doesn't fix the issue encountered later. Another common error
Anchor 0.28.0
Anchor 0.30.0
(I've also tried to update the configuration for |
Try building with anchor from source on anchor commit |
thanks, can confirm that it works with |
Thank you! Mind if we open a PR to update the README? |
Go ahead! |
Hi. I'm trying to build the helium programs, and I am stuck at bringing up the localnet.
The problem is that
lazy-distributor
doesn't compile. The error is cryptic, there's a similar issue fornixops
but the solution there is to stop using workspace inheritance, hardly something that can be done here.If anyone else has experienced this problem, can they at least share the workaround.
helium-program-library on master [!] via v21.7.3 via 🦀 v1.77.2 took 7s ❯ anchor build warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/circuit-breaker/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/utils/shared-utils/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/data-credits/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/helium-sub-daos/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/treasury-management/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/voter-stake-registry/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/lazy-transactions/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/fanout/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/helium-entity-manager/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/no-emit/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/hexboosting/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/mobile-entity-manager/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /home/app/Git/helium-program-library/programs/lazy-distributor/Cargo.toml workspace: /home/app/Git/helium-program-library/Cargo.toml warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"` note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17hf749303b6061547bE Stack offset of 4584 exceeded max offset of 4096 by 488 bytes, please minimize large stack variables Compiling shared-utils v0.0.1 (/home/app/Git/helium-program-library/utils/shared-utils) Compiling circuit-breaker v0.1.0 (/home/app/Git/helium-program-library/programs/circuit-breaker) warning: ambiguous glob re-exports --> programs/circuit-breaker/src/instructions/mod.rs:8:9 | 8 | pub use initialize_account_windowed_breaker_v0::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here ... 13 | pub use update_mint_windowed_breaker_v0::*; | ---------------------------------- but the name `handler` in the value namespace is also re-exported here | = note: `#[warn(ambiguous_glob_reexports)]` on by default
warning:
circuit-breaker
(lib) generated 1 warningCompiling lazy-distributor v0.1.0 (/home/app/Git/helium-program-library/programs/lazy-distributor)
warning: ambiguous glob re-exports
--> programs/lazy-distributor/src/instructions/distribute/mod.rs:5:9
|
5 | pub use distribute_compression_rewards_v0::;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name
handler
in the value namespace is first re-exported here6 | pub use distribute_rewards_v0::;
| ------------------------ but the name
handler
in the value namespace is also re-exported here|
= note:
#[warn(ambiguous_glob_reexports)]
on by defaultwarning: ambiguous glob re-exports
--> programs/lazy-distributor/src/instructions/mod.rs:8:9
|
8 | pub use distribute::;
| ^^^^^^^^^^^^^ the name
handler
in the value namespace is first re-exported here...
13 | pub use update_lazy_distributor_v0::;
| ----------------------------- but the name
handler
in the value namespace is also re-exported herewarning:
lazy-distributor
(lib) generated 2 warningsFinished release [optimized] target(s) in 10.66s
Error: Error reading manifest from path: /home/app/Git/helium-program-library/programs/lazy-distributor/Cargo.toml
Caused by:
This manifest requires workspace inheritance, but
inherit_workspace
hasn't been called yetThe text was updated successfully, but these errors were encountered: