Skip to content

Commit

Permalink
Add build steps for Raspberry Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTyson committed May 16, 2024
1 parent c6f4741 commit 87482e1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,20 @@ Here are sample steps to achieve this:
cd stellar-core/
./autogen.sh && ./configure && make -j6

## Building for ARM Linux (i.e. Raspberry Pi)

`stellar-core` is lightweight and can run on many edge devices such as a Raspberry Pi. However, there is currently a
[linker bug](https://bugs.llvm.org/show_bug.cgi?id=16404) in the default ARM `libgcc` runtime, so `compiler-rt` must be used instead.
Here are sample steps to achieve this:

export CC=clang-12
export CXX=clang++-12
export CFLAGS="-O3 -g1 -fno-omit-frame-pointer --rtlib=compiler-rt"
export CXXFLAGS="$CFLAGS -stdlib=libc++"
git clone https://github.com/stellar/stellar-core.git
cd stellar-core/
./autogen.sh && ./configure && make -j4

## Building with Tracing

Configuring with `--enable-tracy` will build and embed the client component of the [Tracy](https://github.com/wolfpld/tracy) high-resolution tracing system in the `stellar-core` binary.
Expand Down

5 comments on commit 87482e1

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from dmkozh
at SirTyson@87482e1

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SirTyson/stellar-core/rpi-docs = 87482e1 into auto

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SirTyson/stellar-core/rpi-docs = 87482e1 merged ok, testing candidate = 5a64f5e

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 5a64f5e

Please sign in to comment.