Open appetrosyan opened 4 months ago
I encounter a similar issue on my machine with anchor-cli 0.28.0
and anchor-cli 0.30.0
.
I've tried 4f0346df
just to be sure, as it seems to work when an action builds it.
Context: Linux r7p0 6.7.4-artix1-1 #1 SMP PREEMPT_DYNAMIC +0000 x86_64 GNU/Linux
This is a typical complaint from Cargo I encounter:
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: ~/Solana/Solana/hpl_3/programs/circuit-breaker/Cargo.toml
workspace: ~/Solana/Solana/hpl_3/Cargo.toml
(I've also tried to update the configuration for 0.30.0
with no luck.)
Try building with anchor from source on anchor commit 3e8bc76d
thanks, can confirm that it works with 3e8bc76d
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 warning Compiling 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 here 6 | 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 default warning: 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 here warning: `lazy-distributor` (lib) generated 2 warnings Finished 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 yet