I'm building v20.0.0-rc.2.2 8344f3369493bd4c89796dbb9f0f7aabade7e951 using the following Homebrew formula, and I'm seeing the following error:
stellar-core@20.rb:
class StellarCoreAT20 < Formula
desc "Backbone of the Stellar (XLM) network"
homepage "https://www.stellar.org/"
url "https://github.com/stellar/stellar-core.git",
tag: "v20.0.0-rc.2.2",
revision: "8344f3369493bd4c89796dbb9f0f7aabade7e951"
license "Apache-2.0"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "bison" => :build # Bison 3.0.4+
depends_on "libtool" => :build
depends_on "pandoc" => :build
depends_on "pkg-config" => :build
depends_on "libpq"
depends_on "libpqxx"
depends_on "libsodium"
depends_on macos: :catalina # Requires C++17 filesystem
depends_on "rust"
uses_from_macos "flex" => :build
on_linux do
depends_on "libunwind"
end
# https://github.com/stellar/stellar-core/blob/master/INSTALL.md#build-dependencies
fails_with :gcc do
version "7"
cause "Requires C++17 filesystem"
end
def install
system "./autogen.sh"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--enable-postgres"
system "make", "install"
end
end
Compiles and installs fine with:
$ brew install --formula stellar-core@20.rb
Compiles and installs fine, but then when executed errors:
$ stellar-core verison
Warning: soroban-env-host-curr is running a pre-release version 20.0.0-rc1
current exception: std::runtime_error("Number of xdr hashes don't match between C++ and Rust. C++ size = 1 and Rust size = 12.")
backtrace unavailable
[1] 1343 abort stellar-core verison