raydium-io/raydium-amm

The deployment of the local program encountered an error.

xiaobinniu opened this issue · 5 comments

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!

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?)

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!

@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.

@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)

i have the same issue, the solution to install 1.16.27 worked, but this repo as a whole needs to be updated