Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7894

Error: ELF error: ELF error: Multiple or no text sections, consider removing llc option: -function-sections

$
0
0

I've been struggling with this for hours now. I really don't know whats left to do.

[dependencies]solana-program = "1.8.0"

after I run solana program deploy i get this error. Error: ELF error: ELF error: Multiple or no text sections, consider removing llc option: -function-sections.

Ive updated my rust, my solana packages... I really don't know whats left to try. I've even attempted to use older versions to build the binary such as cargo-build-bpf. Any advice would be GREATLY appreciated.

use solana_program::{    account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey, msg,};pub fn process_instruction(    program_id: &Pubkey,    accounts: &[AccountInfo],    instruction_data: &[u8],) -> ProgramResult {    // Your program logic goes here    msg!("Hello, World!");    Ok(())}
// src/lib.rsmod processor;use processor::process_instruction;solana_program::entrypoint!(process_instruction);

Viewing all articles
Browse latest Browse all 7894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>