Coder Social home page Coder Social logo

prysmaticlabs / bazel-go-ethereum Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 135.29 MB

A bazel build friendly copy of go-ethereum.

License: GNU Lesser General Public License v3.0

Python 0.05% Makefile 0.10% Go 87.17% Shell 0.11% NSIS 0.18% Ruby 0.01% HTML 0.09% JavaScript 3.46% Solidity 0.12% Assembly 0.75% C 5.47% M4 0.20% Java 0.24% Dockerfile 0.01% Starlark 1.82% Sage 0.24%

bazel-go-ethereum's People

Contributors

acud avatar arachnid avatar cjentzsch avatar cubedro avatar debris avatar fjl avatar gavofyork avatar gballet avatar gluk256 avatar holiman avatar holisticode avatar janos avatar jpeletier avatar jsvisa avatar karalabe avatar mariusvanderwijden avatar matthalp-zz avatar meowsbits avatar nisdas avatar nolash avatar nonsense avatar obscuren avatar prestonvanloon avatar renaynay avatar rjl493456442 avatar tgerring avatar ucwong avatar vbuterin avatar zelig avatar zsfelfoldi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bazel-go-ethereum's Issues

Bazel fails when running catalyst.sh

Running ./catalyst.sh on raspberry pi
Seems to be complaining about chi. Not sure how to fix

DEBUG: /home/ethereum/.cache/bazel/_bazel_ethereum/175a49d1d117ca9f3586f99c1144c5d6/external/bazel_gazelle/internal/go_repository.bzl:189:18: com_github_rs_cors: gazelle: finding module path for import github.com/pressly/chi: go: downloading github.com/pressly/chi v1.5.4
go get: github.com/pressly/[email protected] updating to
github.com/pressly/[email protected]: parsing go.mod:
module declares its path as: github.com/go-chi/chi
but was required as: github.com/pressly/chi
INFO: Analyzed target //cmd/geth:geth (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/ethereum/bazel-go-ethereum/rpc/BUILD.bazel:3:11: GoCompilePkg rpc/go_default_library.a failed: (Exit 1): builder failed: error executing command bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix linux_arm64 -src rpc/client.go -src rpc/constants_unix.go -src rpc/constants_unix_nocgo.go -src rpc/doc.go -src ... (remaining 73 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox builder failed: error executing command bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix linux_arm64 -src rpc/client.go -src rpc/constants_unix.go -src rpc/constants_unix_nocgo.go -src rpc/doc.go -src ... (remaining 73 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
/usr/bin/ld.gold: error: cannot find -lm -latomic
collect2: error: ld returned 1 exit status
compilepkg: error running subcommand /usr/bin/gcc: exit status 1
Target //cmd/geth:geth failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.926s, Critical Path: 1.10s
INFO: 4 processes: 4 internal.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Convert to bazel managed dependencies

bazel-go-ethereum should attempt to load bazel dependencies, if they are not already present.

This would be a "maybe" type rule where the downstream client would load this library and call

load("@com_github_ethereum_go_ethereum//:deps.bzl", "go_ethereum_repositories")

go_ethereum_repositories()

The go_ethereum_repositories rule will load any repository necessary to build go-ethereum which is not already installed. What we are seeing is that there are mixed versions of the same library in our downstream client which leads to wasted/redundant work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.