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

Compilation errors in rust packages #94

Open
blocksan opened this issue Nov 25, 2022 · 8 comments
Open

Compilation errors in rust packages #94

blocksan opened this issue Nov 25, 2022 · 8 comments

Comments

@blocksan
Copy link

I am trying to run the dex-v4 project on my local macbook machine but unable to get started.

I am using
solana-install 1.13.5 (src:91384943; feat:1365939126)

Please let me know which right tools need to compile this project.

@dr497
Copy link
Contributor

dr497 commented Nov 25, 2022

Can you post the errors you have? Are you using a M1 or Intel machine?

@blocksan
Copy link
Author

blocksan commented Nov 25, 2022 via email

@ellttBen
Copy link
Contributor

HI @blocksan, thanks for reporting this issue.
What you are running is a known issue, and we intend to mainline a solution soon. We've ran into roadblocks because we don't have ready access to an M1 for testing. In the meantime, can you try the alpha channel for dex-v4?
You can either find it in the alpha branch of this repo, or you can require the 0.3.1-alpha.0 version.
I'll keep this issue open in case you run into any issue. Any feedback would be greatly appreciated since we'd like to finally solve this problem.

@blocksan
Copy link
Author

blocksan commented Nov 26, 2022 via email

@Dorax88
Copy link

Dorax88 commented Feb 27, 2023

Hi,
Just chiming in to say it's not even working on the alpha branch for me. Using an M1 too. any updates?

@Dorax88
Copy link

Dorax88 commented Feb 27, 2023

The new error on alpha branch is:
error[E0308]: mismatched types --> src/processor/consume_events.rs:311:61 | 311 | let order_index = user_account.find_order_index(*order_id).unwrap(); | ---------------- ^^^^^^^^^ expectedu128, found array [u64; 2]``

@ellttBen
Copy link
Contributor

ellttBen commented Feb 28, 2023

Hi @Dorax88, thanks for reactivating the issue. I just pushed a fix for this error on the alpha branch and on crates.io with the version 0.3.1-alpha.2. Would you mind testing if this solves your issue? Once I get confirmation from you that this fixes the issue completely, I'll push a new release.

@cryptohariseldon
Copy link

current error on alpha branch-
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
--> src/lib.rs:268:9
|
268 | / compile_error!("target is not supported, for more information see:
269 | | https://docs.rs/getrandom/#unsupported-targets");
| |________________________________________________________________________^

error[E0433]: failed to resolve: use of undeclared crate or module imp
--> src/lib.rs:290:5
|
290 | imp::getrandom_inner(dest)
| ^^^ use of undeclared crate or module imp

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