Skip to main content

Questions tagged [build-sbf]

The tag has no usage guidance.

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
74 views

How to check if a crate on solana and anchor repo can be used on-chain or off-chain?

This question has hanging over my head for long time. How to tell a crate provided by solana org or third party can be imported and use from on-chain code? Is there any flag in cargo.toml file to tell ...
breeze wang's user avatar
2 votes
0 answers
74 views

How to debug and resolve crashes of cargo-build-sbf?

It is possible to cause a crash of cargo build-sbf For instance https://github.com/shepmaster/twox-hash disabling the default feature "std": cargo build-sbf crashes with rustc --crate-name ...
Arowana's user avatar
  • 2,373
1 vote
1 answer
30 views

What can I do about sbf.mk Makefile include seeming to be incompatible with solana_sdk.h within the solana repository?

I am just getting started with Solana development. I am a C programmer so I am most comfortable with C. I am just using the most basic code to create a shared object file. I am on Ubuntu 22 x86-64. ...
someone serious's user avatar
1 vote
1 answer
75 views

Bad CPU type in executable

Problem I have a problem on build Rust Solana contract on processor M1. I used a simple example hello world. use solana_program::{ account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, ...
Ivan's user avatar
  • 11
0 votes
0 answers
9 views

Title: Unable to Build Anchor Project with SBF Tools: Issues with sbf-solana, bpfel-unknown-none, and Docker Compatibility

Description: Hello everyone, We’ve been struggling for hours trying to build an Anchor project on Solana. Despite numerous attempts, nothing seems to work, either locally or using Docker. Below are ...
Marc romano's user avatar