Basic Build
To build the core Firedancer validator and Solana CLI tools:You will need around 32GB of available memory to build Firedancer. If you run out of memory during compilation, make can return a variety of errors.
Build Targets
The build process creates two primary binaries:fdctl— Firedancer control binary (short for Firedancer control)solana— Solana CLI binary for running RPC commands
Architecture-Specific Builds
Firedancer automatically detects the hardware it’s being built on and enables architecture-specific instructions for maximum performance.Building for a Specific Target
If you need to target a different machine architecture, you can compile for a specific target by setting theMACHINE environment variable:
config/ directory.
Default Build Location
The default target isnative, and compiled binaries will be placed in:
Development Build
For developers who want to build and run a local development cluster:The
make run target runs the fddev dev command, which:- Ensures your system is configured correctly
- Creates a genesis block and test keys
- Starts a faucet
- Launches a validator on your local machine
Updating Firedancer
To update to a newer version of Firedancer:Build Troubleshooting
Out of Memory Errors
If compilation fails due to memory constraints:- Close other memory-intensive applications
- Reduce parallelism by using fewer jobs:
make -j4 fdctl solana - Consider adding swap space temporarily
- Build on a machine with more RAM
Submodule Issues
If you encounter errors related to missing files or dependencies:Clean Build
To perform a clean rebuild:Verifying Your Build
After a successful build, verify the binaries were created:Check Version
Verify the version of your built binary:Next Steps
Now that you’ve successfully built Firedancer:- Review Configuration to set up your validator
- Learn about Running the validator