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

Unable to perform cargo test in program-rust directory #451

Open
calldata opened this issue Apr 11, 2022 · 5 comments
Open

Unable to perform cargo test in program-rust directory #451

calldata opened this issue Apr 11, 2022 · 5 comments

Comments

@calldata
Copy link

When i execute cargo test on my machine (MacOS Apple cpu), i encounter this error:

error: expected None-delimited group
   --> /Users/oker/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-program-test-1.8.14/src/lib.rs:769:22
    |
769 |         add_builtin!(solana_bpf_loader_deprecated_program!());
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_deprecated_program` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected None-delimited group
   --> /Users/oker/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-program-test-1.8.14/src/lib.rs:771:26
    |
771 |             add_builtin!(solana_bpf_loader_program_with_jit!());
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_program_with_jit` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected None-delimited group
   --> /Users/oker/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-program-test-1.8.14/src/lib.rs:772:26
    |
772 |             add_builtin!(solana_bpf_loader_upgradeable_program_with_jit!());
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_upgradeable_program_with_jit` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected None-delimited group
   --> /Users/oker/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-program-test-1.8.14/src/lib.rs:774:26
    |
774 |             add_builtin!(solana_bpf_loader_program!());
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_program` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected None-delimited group
   --> /Users/oker/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-program-test-1.8.14/src/lib.rs:775:26
    |
775 |             add_builtin!(solana_bpf_loader_upgradeable_program!());
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_upgradeable_program` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `solana-program-test` due to 15 previous errors
@mbenoukaiss
Copy link

mbenoukaiss commented Apr 19, 2022

This seems to happen only on nightly since switching from nightly to stable fixes the problem for me

@calldata
Copy link
Author

It works after shiftting to stable.

@PraetorP
Copy link

PraetorP commented Jun 7, 2022

It doesn't work even in stable. It need to override to 1.59 v.

@baijifeilong
Copy link

rustup install 1.59
rustup default 1.59

@itayLev1
Copy link

Not sure but maybe this might help,

wget https://packages.ubuntu.com/focal/amd64/libssl1.1/download
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.18_amd64.deb

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

5 participants