helium / helium-program-library

Helium programs to run on the Solana blockchain
Apache License 2.0
114 stars 47 forks source link

Unable to build with `anchor 0.28.0` #645

Open appetrosyan opened 4 months ago

appetrosyan commented 4 months ago

Hi. I'm trying to build the helium programs, and I am stuck at bringing up the localnet.

    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

The problem is that lazy-distributor doesn't compile. The error is cryptic, there's a similar issue for nixops 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
6r1d commented 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
Related: "overflow-checks" in Cargo.toml ``` grid@r7p0 ~/D/S/hpl_3 ((4f0346df))> anchor build Error: `overflow-checks` is not enabled. To enable, add: [profile.release] overflow-checks = true in workspace root Cargo.toml ``` I've decided to enable it, but it doesn't fix the issue encountered later.
Another common error `0.28.0`: ``` Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17h5d4abe54ddf1702aE Stack offset of 4608 exceeded max offset of 4096 by 512 bytes, please minimize large stack variables Error: Function _ZN108_$LT$solana_program..vote..state..CircBuf$LT$I$GT$$u20$as$u20$solana_frozen_abi..abi_example..AbiExample$GT$7example17h92925dca064cc8c2E Stack offset of 4640 exceeded max offset of 4096 by 544 bytes, please minimize large stack variables ``` `0.30.0`: ``` Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17h5d4abe54ddf1702aE Stack offset of 4608 exceeded max offset of 4096 by 512 bytes, please minimize large stack variables Error: Function _ZN108_$LT$solana_program..vote..state..CircBuf$LT$I$GT$$u20$as$u20$solana_frozen_abi..abi_example..AbiExample$GT$7example17h92925dca064cc8c2E Stack offset of 4640 exceeded max offset of 4096 by 544 bytes, please minimize large stack variables. ```
Anchor 0.28.0 ``` grid@r7p0 ~/D/S/hpl_3 ((4f0346df))> avm use 0.28.0 Now using anchor version 0.28.0. grid@r7p0 ~/D/S/hpl_3 ((4f0346df))> anchor clean grid@r7p0 ~/D/S/hpl_3 ((4f0346df))> anchor build 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 warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/utils/shared-utils/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/data-credits/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/helium-sub-daos/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/treasury-management/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/voter-stake-registry/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/lazy-transactions/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/fanout/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/helium-entity-manager/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/no-emit/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/hexboosting/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/mobile-entity-manager/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/lazy-distributor/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` 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 note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions warning: ~/Solana/Solana/hpl_3/Cargo.toml: unused manifest key: profile.release.exclude Compiling proc-macro2 v1.0.67 Compiling unicode-ident v1.0.12 Compiling version_check v0.9.4 Compiling serde v1.0.188 Compiling typenum v1.17.0 Compiling syn v1.0.109 Compiling thiserror v1.0.48 Compiling serde_json v1.0.107 Compiling semver v1.0.18 Compiling libc v0.2.148 Compiling cfg-if v1.0.0 Compiling cpufeatures v0.2.9 Compiling anyhow v1.0.75 Compiling unicode-segmentation v1.10.1 Compiling once_cell v1.18.0 Compiling itoa v1.0.9 Compiling ryu v1.0.15 Compiling autocfg v1.1.0 Compiling subtle v2.4.1 Compiling feature-probe v0.1.1 Compiling rustversion v1.0.14 Compiling getrandom v0.2.10 Compiling bs58 v0.4.0 Compiling log v0.4.20 Compiling bv v0.11.1 Compiling keccak v0.1.4 Compiling bs58 v0.5.0 Compiling constant_time_eq v0.3.0 Compiling generic-array v0.14.7 Compiling ahash v0.7.6 Compiling ahash v0.8.3 Compiling heck v0.3.3 Compiling rustc_version v0.4.0 Compiling memoffset v0.9.0 Compiling num-traits v0.2.16 Compiling arrayvec v0.7.4 Compiling either v1.9.0 Compiling lazy_static v1.4.0 Compiling arrayref v0.3.7 Compiling proc-macro2-diagnostics v0.9.1 Compiling hashbrown v0.14.0 Compiling ident_case v1.0.1 Compiling hashbrown v0.11.2 Compiling fnv v1.0.7 Compiling itertools v0.10.5 Compiling strsim v0.10.0 Compiling equivalent v1.0.1 Compiling block-padding v0.2.1 Compiling memchr v2.6.3 Compiling opaque-debug v0.3.0 Compiling yansi v0.5.1 Compiling quote v1.0.33 Compiling solana-frozen-abi-macro v1.16.13 Compiling solana-frozen-abi v1.16.13 Compiling hashbrown v0.13.2 Compiling winnow v0.5.15 Compiling toml_datetime v0.6.3 Compiling syn v2.0.37 Compiling regex-syntax v0.7.5 Compiling bs58 v0.3.1 Compiling heck v0.4.1 Compiling indexmap v2.0.0 Compiling proc-macro2 v0.4.30 Compiling base64 v0.13.1 Compiling base64 v0.21.4 Compiling unicode-xid v0.1.0 Compiling aho-corasick v1.1.1 Compiling crunchy v0.2.2 Compiling syn v0.15.44 Compiling assert_matches v1.5.0 Compiling hex v0.4.3 Compiling jobserver v0.1.26 Compiling byteorder v1.4.3 Compiling static_assertions v1.1.0 Compiling solana-security-txt v1.1.1 Compiling cc v1.0.83 Compiling quote v0.6.13 Compiling uint v0.9.5 Compiling blake3 v1.4.1 Compiling solana-program v1.16.13 Compiling toml_edit v0.19.15 Compiling regex-automata v0.3.8 Compiling default-env v0.1.1 Compiling proc-macro-crate v1.3.1 Compiling regex v1.9.5 Compiling borsh-schema-derive-internal v0.10.3 Compiling borsh-derive-internal v0.10.3 Compiling borsh-schema-derive-internal v0.9.3 Compiling borsh-derive-internal v0.9.3 Compiling darling_core v0.14.4 Compiling serde_derive v1.0.188 Compiling thiserror-impl v1.0.48 Compiling bytemuck_derive v1.5.0 Compiling solana-sdk-macro v1.16.13 Compiling num-derive v0.3.3 Compiling num_enum_derive v0.5.11 Compiling anchor-derive-space v0.28.0 Compiling bytemuck v1.14.0 Compiling darling_macro v0.14.4 Compiling num_enum v0.5.11 Compiling darling v0.14.4 Compiling toml v0.5.11 Compiling serde_bytes v0.11.12 Compiling bincode v1.3.3 Compiling block-buffer v0.10.4 Compiling crypto-common v0.1.6 Compiling block-buffer v0.9.0 Compiling digest v0.9.0 Compiling sha2 v0.9.9 Compiling digest v0.10.7 Compiling sha2 v0.10.7 Compiling proc-macro-crate v0.1.5 Compiling anchor-syn v0.24.2 Compiling sha3 v0.10.8 Compiling borsh-derive v0.10.3 Compiling borsh-derive v0.9.3 Compiling anchor-syn v0.28.0 Compiling borsh v0.9.3 Compiling borsh v0.10.3 Compiling anchor-derive-accounts v0.28.0 Compiling anchor-attribute-account v0.28.0 Compiling anchor-attribute-event v0.28.0 Compiling anchor-attribute-constant v0.28.0 Compiling anchor-attribute-program v0.28.0 Compiling anchor-attribute-access-control v0.28.0 Compiling anchor-attribute-error v0.28.0 Compiling anchor-idl v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Compiling anchor-generate-cpi-interface v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Compiling anchor-generate-cpi-crate v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Compiling anchor-gen v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17h5d4abe54ddf1702aE Stack offset of 4608 exceeded max offset of 4096 by 512 bytes, please minimize large stack variables Error: Function _ZN108_$LT$solana_program..vote..state..CircBuf$LT$I$GT$$u20$as$u20$solana_frozen_abi..abi_example..AbiExample$GT$7example17h92925dca064cc8c2E Stack offset of 4640 exceeded max offset of 4096 by 544 bytes, please minimize large stack variables Compiling anchor-lang v0.28.0 Compiling spl-token v3.5.0 Compiling solana-zk-token-sdk v1.16.13 Compiling spl-memo v3.0.1 Compiling mpl-token-metadata v3.2.0 Compiling account-compression-cpi v0.1.2 (https://github.com/helium/account-compression-anchor-gen.git?rev=a499196#a499196f) Compiling bubblegum-cpi v0.9.2 (https://github.com/helium/account-compression-anchor-gen.git?rev=a499196#a499196f) Compiling spl-token-2022 v0.6.1 Compiling spl-associated-token-account v1.1.3 Compiling anchor-spl v0.28.0 Compiling shared-utils v0.0.1 (~/Solana/Solana/hpl_3/utils/shared-utils) Compiling circuit-breaker v0.1.0 (~/Solana/Solana/hpl_3/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 (~/Solana/Solana/hpl_3/programs/lazy-distributor) warning: ambiguous glob re-exports --> programs/lazy-distributor/src/instructions/distribute/mod.rs:7:9 | 7 | pub use distribute_compression_rewards_v0::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here 8 | pub use distribute_custom_destination_v0::*; 9 | 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/update_destination/mod.rs:4:9 | 4 | pub use update_compression_destination_v0::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here 5 | pub use update_destination_v0::*; | ------------------------ but the name `handler` in the value namespace is also re-exported here warning: ambiguous glob re-exports --> programs/lazy-distributor/src/instructions/mod.rs:9:9 | 9 | pub use distribute::*; | ^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here ... 15 | pub use update_lazy_distributor_v0::*; | ----------------------------- but the name `handler` in the value namespace is also re-exported here warning: `lazy-distributor` (lib) generated 3 warnings Finished release [optimized] target(s) in 1m 00s Error: Error reading manifest from path: ~/Solana/Solana/hpl_3/programs/lazy-distributor/Cargo.toml Caused by: This manifest requires workspace inheritance, but `inherit_workspace` hasn't been called yet ```
Anchor 0.30.0 ``` grid@r7p0 ~/D/S/hpl_3 ((4f0346df))> avm use 0.30.0 Now using anchor version 0.30.0. grid@r7p0 ~/D/S/hpl_3 ((4f0346df))> anchor clean grid@r7p0 ~/D/S/hpl_3 ((4f0346df))> anchor build WARNING: `anchor-lang` version(0.28.0) and the current CLI version(0.30.0) don't match. This can lead to unwanted behavior. To use the same CLI version, add: [toolchain] anchor_version = "0.28.0" to Anchor.toml WARNING: `@coral-xyz/anchor` version(^0.28.0) and the current CLI version(0.30.0) don't match. This can lead to unwanted behavior. To fix, upgrade the package by running: yarn upgrade @coral-xyz/anchor@0.30.0 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 warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/utils/shared-utils/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/data-credits/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/helium-sub-daos/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/treasury-management/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/voter-stake-registry/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/lazy-transactions/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/fanout/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/helium-entity-manager/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/no-emit/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/hexboosting/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/mobile-entity-manager/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: ~/Solana/Solana/hpl_3/programs/lazy-distributor/Cargo.toml workspace: ~/Solana/Solana/hpl_3/Cargo.toml warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` 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 note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions warning: ~/Solana/Solana/hpl_3/Cargo.toml: unused manifest key: profile.release.exclude Compiling proc-macro2 v1.0.67 Compiling unicode-ident v1.0.12 Compiling version_check v0.9.4 Compiling serde v1.0.188 Compiling typenum v1.17.0 Compiling syn v1.0.109 Compiling serde_json v1.0.107 Compiling thiserror v1.0.48 Compiling semver v1.0.18 Compiling libc v0.2.148 Compiling anyhow v1.0.75 Compiling cpufeatures v0.2.9 Compiling cfg-if v1.0.0 Compiling ryu v1.0.15 Compiling once_cell v1.18.0 Compiling unicode-segmentation v1.10.1 Compiling itoa v1.0.9 Compiling autocfg v1.1.0 Compiling subtle v2.4.1 Compiling rustversion v1.0.14 Compiling feature-probe v0.1.1 Compiling getrandom v0.2.10 Compiling keccak v0.1.4 Compiling bs58 v0.4.0 Compiling bv v0.11.1 Compiling either v1.9.0 Compiling log v0.4.20 Compiling constant_time_eq v0.3.0 Compiling generic-array v0.14.7 Compiling ahash v0.7.6 Compiling ahash v0.8.3 Compiling heck v0.3.3 Compiling rustc_version v0.4.0 Compiling memoffset v0.9.0 Compiling num-traits v0.2.16 Compiling bs58 v0.5.0 Compiling arrayvec v0.7.4 Compiling lazy_static v1.4.0 Compiling arrayref v0.3.7 Compiling itertools v0.10.5 Compiling proc-macro2-diagnostics v0.9.1 Compiling fnv v1.0.7 Compiling strsim v0.10.0 Compiling hashbrown v0.14.0 Compiling hashbrown v0.11.2 Compiling block-padding v0.2.1 Compiling ident_case v1.0.1 Compiling equivalent v1.0.1 Compiling quote v1.0.33 Compiling hashbrown v0.13.2 Compiling winnow v0.5.15 Compiling toml_datetime v0.6.3 Compiling yansi v0.5.1 Compiling solana-frozen-abi-macro v1.16.13 Compiling solana-frozen-abi v1.16.13 Compiling memchr v2.6.3 Compiling opaque-debug v0.3.0 Compiling bs58 v0.3.1 Compiling syn v2.0.37 Compiling regex-syntax v0.7.5 Compiling heck v0.4.1 Compiling proc-macro2 v0.4.30 Compiling base64 v0.13.1 Compiling indexmap v2.0.0 Compiling base64 v0.21.4 Compiling crunchy v0.2.2 Compiling unicode-xid v0.1.0 Compiling assert_matches v1.5.0 Compiling syn v0.15.44 Compiling hex v0.4.3 Compiling byteorder v1.4.3 Compiling aho-corasick v1.1.1 Compiling static_assertions v1.1.0 Compiling solana-security-txt v1.1.1 Compiling jobserver v0.1.26 Compiling uint v0.9.5 Compiling cc v1.0.83 Compiling quote v0.6.13 Compiling blake3 v1.4.1 Compiling solana-program v1.16.13 Compiling toml_edit v0.19.15 Compiling regex-automata v0.3.8 Compiling default-env v0.1.1 Compiling proc-macro-crate v1.3.1 Compiling borsh-derive-internal v0.10.3 Compiling borsh-schema-derive-internal v0.10.3 Compiling borsh-derive-internal v0.9.3 Compiling borsh-schema-derive-internal v0.9.3 Compiling darling_core v0.14.4 Compiling regex v1.9.5 Compiling serde_derive v1.0.188 Compiling thiserror-impl v1.0.48 Compiling bytemuck_derive v1.5.0 Compiling solana-sdk-macro v1.16.13 Compiling num-derive v0.3.3 Compiling num_enum_derive v0.5.11 Compiling anchor-derive-space v0.28.0 Compiling bytemuck v1.14.0 Compiling darling_macro v0.14.4 Compiling num_enum v0.5.11 Compiling darling v0.14.4 Compiling toml v0.5.11 Compiling serde_bytes v0.11.12 Compiling bincode v1.3.3 Compiling block-buffer v0.10.4 Compiling crypto-common v0.1.6 Compiling block-buffer v0.9.0 Compiling digest v0.9.0 Compiling digest v0.10.7 Compiling sha2 v0.9.9 Compiling proc-macro-crate v0.1.5 Compiling sha2 v0.10.7 Compiling anchor-syn v0.24.2 Compiling borsh-derive v0.9.3 Compiling borsh-derive v0.10.3 Compiling sha3 v0.10.8 Compiling anchor-syn v0.28.0 Compiling borsh v0.10.3 Compiling borsh v0.9.3 Compiling anchor-attribute-event v0.28.0 Compiling anchor-attribute-access-control v0.28.0 Compiling anchor-attribute-program v0.28.0 Compiling anchor-attribute-error v0.28.0 Compiling anchor-derive-accounts v0.28.0 Compiling anchor-attribute-constant v0.28.0 Compiling anchor-attribute-account v0.28.0 Compiling anchor-idl v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Compiling anchor-generate-cpi-crate v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Compiling anchor-generate-cpi-interface v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Compiling anchor-gen v0.3.1 (https://github.com/ChewingGlass/anchor-gen.git#e6136a50) Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17h5d4abe54ddf1702aE Stack offset of 4608 exceeded max offset of 4096 by 512 bytes, please minimize large stack variables Error: Function _ZN108_$LT$solana_program..vote..state..CircBuf$LT$I$GT$$u20$as$u20$solana_frozen_abi..abi_example..AbiExample$GT$7example17h92925dca064cc8c2E Stack offset of 4640 exceeded max offset of 4096 by 544 bytes, please minimize large stack variables Compiling anchor-lang v0.28.0 Compiling spl-token v3.5.0 Compiling spl-memo v3.0.1 Compiling solana-zk-token-sdk v1.16.13 Compiling mpl-token-metadata v3.2.0 Compiling account-compression-cpi v0.1.2 (https://github.com/helium/account-compression-anchor-gen.git?rev=a499196#a499196f) Compiling bubblegum-cpi v0.9.2 (https://github.com/helium/account-compression-anchor-gen.git?rev=a499196#a499196f) Compiling spl-token-2022 v0.6.1 Compiling spl-associated-token-account v1.1.3 Compiling anchor-spl v0.28.0 Compiling shared-utils v0.0.1 (~/Solana/Solana/hpl_3/utils/shared-utils) Compiling circuit-breaker v0.1.0 (~/Solana/Solana/hpl_3/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 (~/Solana/Solana/hpl_3/programs/lazy-distributor) warning: ambiguous glob re-exports --> programs/lazy-distributor/src/instructions/distribute/mod.rs:7:9 | 7 | pub use distribute_compression_rewards_v0::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here 8 | pub use distribute_custom_destination_v0::*; 9 | 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/update_destination/mod.rs:4:9 | 4 | pub use update_compression_destination_v0::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here 5 | pub use update_destination_v0::*; | ------------------------ but the name `handler` in the value namespace is also re-exported here warning: ambiguous glob re-exports --> programs/lazy-distributor/src/instructions/mod.rs:9:9 | 9 | pub use distribute::*; | ^^^^^^^^^^^^^ the name `handler` in the value namespace is first re-exported here ... 15 | pub use update_lazy_distributor_v0::*; | ----------------------------- but the name `handler` in the value namespace is also re-exported here warning: `lazy-distributor` (lib) generated 3 warnings Finished release [optimized] target(s) in 1m 00s Error: `idl-build` feature is missing. To solve, add [features] idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"] in `~/Solana/Solana/hpl_3/programs/lazy-distributor/Cargo.toml`. ```

(I've also tried to update the configuration for 0.30.0 with no luck.)

ChewingGlass commented 1 month ago

Try building with anchor from source on anchor commit 3e8bc76d

ungaro commented 1 month ago

thanks, can confirm that it works with 3e8bc76d

appetrosyan commented 1 month ago

Thank you! Mind if we open a PR to update the README?

ChewingGlass commented 1 month ago

Go ahead!