raydium-io / raydium-amm

Constant product AMM integrated with the OpenBook CLOB
Apache License 2.0
73 stars 61 forks source link

The deployment of the local program encountered an error. #15

Closed xiaobinniu closed 2 months ago

xiaobinniu commented 2 months ago

Hello, I'm preparing to set up a Solana testing environment locally. I have Rust and Solana CLI ready, but when I deploy, I encounter the following error message: "Error: ELF error: ELF error: Multiple or no text sections, consider removing llc option: -function-sections". I've tried changing Rust and Solana versions, but it doesn't seem to work. Do you have any suggestions for Rust and Solana versions?

Have a great day!

DORTROX commented 2 months ago

Is it working for you now?

Edit: I am using solana-cli v.1.68.0 in wsl and it's working there. Seems like an issue on solana release (or maybe machines?)

bc1bot commented 1 week ago

Hey, @DORTROX version solana-cli v.1.68.0 does not exist, I get the same error as @xiaobinniu.

Solana version:

$ solana --version
solana-cli 1.18.17 (src:b685182a; feat:4215500110, client:SolanaLabs)

Rust:

$ rustc --V
rustc 1.78.0 (9b00956e5 2024-04-29)

ty!

DORTROX commented 1 week ago

@bc1bot I tried with Ubuntu in wsl it was working out fine. Which machine are you using? Because it didn't work out for me in windows.

bc1bot commented 1 week ago

@DORTROX seems like the contracts can be built with the following version of solana-cli:

$ solana-install --version
solana-install 1.16.27 (src:eb1dc08d; feat:2294205250, client:SolanaLabs)