-
Notifications
You must be signed in to change notification settings - Fork 33
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
Comments
Can you post the errors you have? Are you using a M1 or Intel machine? |
Thank you for responding.
Here are the details of the current versions
Yes I am using *Macbook M1*
*solana-install 1.9.29 (src:0c54340a; feat:462418899)*
*cargo 1.65.0 (4bc8f24d3 2022-10-20)rustc 1.65.0 (897e37553 2022-11-02)*
Errors I am receiving
error: failed to select a version for the requirement `time = "^0.3"`
candidate versions found which didn't match: 0.3.15, 0.3.14, 0.3.13, ...
location searched: crates.io index
required by package `rcgen v0.9.3`
... which satisfies dependency `rcgen = "^0.9.2"` (locked to 0.9.3) of
package `solana-streamer v1.10.34`
... which satisfies dependency `solana-streamer = "=1.10.34"` (locked
to 1.10.34) of package `solana-client v1.10.34`
... which satisfies dependency `solana-client = "~1.10"` (locked to
1.10.34) of package `dex-v4 v0.3.0
(/Users/sandeepghosh/Documents/personal-projects/solana/dex-v4/program)`
error[E0512]: cannot transmute between types of different sizes, or
dependently-sized types
-->
/Users/sandeepghosh/.cargo/registry/src/github.com-1ecc6299db9ec823/asset-agnostic-orderbook-1.0.0/src/state/critbit.rs:40
:12
|
40 | pub struct LeafNode {
| ^^^^^^^^
|
= note: source type: `LeafNode` (256 bits)
= note: target type: `critbit::_::{closure#0}::TypeWithoutPadding` (192
bits)
error[E0512]: cannot transmute between types of different sizes, or
dependently-sized types
-->
/Users/sandeepghosh/.cargo/registry/src/github.com-1ecc6299db9ec823/asset-agnostic-orderbook-1.0.0/src/state/event_queue.rs:22
:12
|
22 | pub struct FillEvent {
| ^^^^^^^^^
|
= note: source type: `FillEvent` (384 bits)
= note: target type: `event_queue::_::{closure#0}::TypeWithoutPadding`
(320 bits)
Please help.
Thanks & Regards,
Sandeep Ghosh,
Building www.solgames.fun
…On Fri, Nov 25, 2022 at 12:47 PM DR497 ***@***.***> wrote:
Can you post the errors you have? Are you using a M1 machine?
—
Reply to this email directly, view it on GitHub
<#94 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBT525YA5IDHILFQWJHAFTWKBRXZANCNFSM6AAAAAASLA2QRE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
HI @blocksan, thanks for reporting this issue. |
Thank you for the clarification.
However, I cleaned up all my binaries and installations.
Installed the latest version of toolchains for Solana.
I am receiving only 1 error
Compiling dex-v4 v0.3.0 (../solana/dex-v4/program)
error: the `#[global_allocator]` in this crate conflicts with global
allocator in: mpl_token_metadata
I feel that this is more of a configuration issue, so if you can please
help me with this.
Thanks & Regards,
Sandeep Ghosh,
Building www.solgames.fun
…On Fri, Nov 25, 2022 at 8:24 PM ellttBen ***@***.***> wrote:
HI @blocksan <https://github.com/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.
—
Reply to this email directly, view it on GitHub
<#94 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBT52Z6RJOFMF4LOABA4SDWKDHJFANCNFSM6AAAAAASLA2QRE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi, |
The new error on alpha branch is: |
Hi @Dorax88, thanks for reactivating the issue. I just pushed a fix for this error on the |
current error on alpha branch- error[E0433]: failed to resolve: use of undeclared crate or module |
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.
The text was updated successfully, but these errors were encountered: