Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running make geth #1493

Closed
c-georgen opened this issue Jul 20, 2015 · 10 comments
Closed

Problem running make geth #1493

c-georgen opened this issue Jul 20, 2015 · 10 comments

Comments

@c-georgen
Copy link

I know it's not officially supported, but I'm trying to run ethereum on my Fedora 22 machine and I'm running into an issue when I attempt to make geth.

I have all the necessary dependencies that I can think of: automake, gmp, gcc, git, go, kernel-devel, libtool, and Development Tools are enabled.

I have also followed the suggestion mentioned in #934 and manually built secp256k1 successfully.

However, when I run make geth, I get an output ending in

Makefile:9: recipe for target 'geth' failed
make: *** [geth] Error 2

If anyone has any suggestions I would really appreciate them.

Thanks

@karalabe
Copy link
Member

Could you please paste the entire build log?

@c-georgen
Copy link
Author

Here is the entire build log from geth make

build/env.sh go install -v -ldflags '-X main.gitCommit 98f4c936f25de27dbc90f36f2c1ffd1f23b114e9' ./cmd/geth
github.com/codegangsta/cli
github.com/ethereum/go-ethereum/rlp
github.com/kardianos/osext
github.com/rakyll/goini
code.google.com/p/go-uuid/uuid
github.com/ethereum/go-ethereum/crypto/ecies
github.com/ethereum/go-ethereum/crypto/sha3
golang.org/x/crypto/pbkdf2
golang.org/x/crypto/ripemd160
github.com/ethereum/go-ethereum/logger/glog
github.com/rcrowley/go-metrics
github.com/syndtr/goleveldb/leveldb/util
golang.org/x/crypto/scrypt
github.com/syndtr/goleveldb/leveldb/comparer
github.com/ethereum/go-ethereum/crypto/randentropy
github.com/syndtr/gosnappy/snappy
github.com/ethereum/go-ethereum/params
github.com/ethereum/go-ethereum/crypto/secp256k1
github.com/syndtr/goleveldb/leveldb/cache
# github.com/ethereum/go-ethereum/crypto/ecies
crypto/ecies/asn1.go:96: undefined: elliptic.P224
crypto/ecies/asn1.go:124: undefined: elliptic.P224
crypto/ecies/asn1.go:137: undefined: elliptic.P224
crypto/ecies/asn1.go:251: undefined: elliptic.P224
github.com/syndtr/goleveldb/leveldb/storage
github.com/syndtr/goleveldb/leveldb/filter
github.com/ethereum/go-ethereum/event
github.com/hashicorp/golang-lru
github.com/rakyll/globalconf
gopkg.in/fatih/set.v0
# github.com/ethereum/go-ethereum/crypto/secp256k1
In file included from ./secp256k1/src/num.h:17:0,
                 from ./secp256k1/src/num_impl.h:14,
                 from ./secp256k1/src/secp256k1.c:12,
                 from crypto/secp256k1/secp256.go:34:
./secp256k1/src/num_gmp.h:10:17: fatal error: gmp.h: No such file or directory
compilation terminated.
gopkg.in/karalabe/cookiejar.v2/collections/prque
github.com/huin/goupnp/httpu
github.com/huin/goupnp/scpd
github.com/huin/goupnp/soap
golang.org/x/net/html/atom
golang.org/x/text/transform
golang.org/x/text/encoding/internal/identifier
github.com/syndtr/goleveldb/leveldb/opt
golang.org/x/net/html
github.com/jackpal/go-nat-pmp
github.com/robertkrimen/otto/file
github.com/robertkrimen/otto/token
github.com/robertkrimen/otto/dbg
github.com/huin/goupnp/ssdp
github.com/robertkrimen/otto/registry
github.com/rs/cors
github.com/robertkrimen/otto/ast
github.com/peterh/liner
golang.org/x/text/encoding
github.com/ethereum/go-ethereum/common
golang.org/x/text/encoding/internal
golang.org/x/text/encoding/unicode
github.com/mattn/go-runewidth
github.com/mattn/go-colorable
golang.org/x/text/encoding/charmap
github.com/syndtr/goleveldb/leveldb/errors
golang.org/x/text/encoding/japanese
golang.org/x/text/encoding/korean
golang.org/x/text/encoding/simplifiedchinese
golang.org/x/text/encoding/traditionalchinese
github.com/syndtr/goleveldb/leveldb/iterator
github.com/syndtr/goleveldb/leveldb/journal
github.com/robertkrimen/otto/parser
github.com/nsf/termbox-go
github.com/syndtr/goleveldb/leveldb/memdb
github.com/syndtr/goleveldb/leveldb/table
github.com/gizak/termui
github.com/mattn/go-isatty
github.com/ethereum/go-ethereum/logger
github.com/syndtr/goleveldb/leveldb
github.com/ethereum/go-ethereum/rpc/shared
github.com/ethereum/go-ethereum/metrics
github.com/robertkrimen/otto
github.com/ethereum/go-ethereum/rpc/codec
github.com/ethereum/go-ethereum/rpc/comms
golang.org/x/net/html/charset
github.com/huin/goupnp
github.com/huin/goupnp/dcps/internetgateway1
github.com/huin/goupnp/dcps/internetgateway2
github.com/ethereum/go-ethereum/p2p/nat
github.com/ethereum/go-ethereum/jsre
github.com/ethereum/go-ethereum/rpc
Makefile:9: recipe for target 'geth' failed
make: *** [geth] Error 2

@karalabe
Copy link
Member

The build logs suggest make cannot find gmp.h. Are you sure you installed the development packages too? Usually they are in a separate package than the library itself.

@fjl fjl closed this as completed Jul 28, 2015
@fjl
Copy link
Contributor

fjl commented Jul 28, 2015

Sorry, didn't mean to close.

@fjl fjl reopened this Jul 28, 2015
@obscuren
Copy link
Contributor

Make sure you've got gmp installed. brew install gmp or sudo apt-get install libgmp

@prusnak
Copy link
Contributor

prusnak commented Jul 29, 2015

There is another issue except missing gmp development files:

crypto/ecies/asn1.go:96: undefined: elliptic.P224
crypto/ecies/asn1.go:124: undefined: elliptic.P224
crypto/ecies/asn1.go:137: undefined: elliptic.P224
crypto/ecies/asn1.go:251: undefined: elliptic.P224

Fedora/RedHat distros comply with US patent law and remove elliptic curve crypto from their packages.

See these issues for reference:
coreos/etcd-ca#22
gogs/gogs#524

Removing all references to elliptic.P224 from files crypto/ecies/asn1.go and crypto/ecies/ecies_test.go fixes the issue.

@obscuren
Copy link
Contributor

Instead of using the standard packages I'd just download the official golang package from the website

@prusnak
Copy link
Contributor

prusnak commented Jul 30, 2015

Created #1551

@obscuren
Copy link
Contributor

#1551 has been merged. Please note it won't show up in the 1.0.0 release. Please use develop or wait for 1.0.1 stable

@c-georgen
Copy link
Author

As a note to anyone else having this problem, the solution provide by prusnak:

"Removing all references to elliptic.P224 from files crypto/ecies/asn1.go and crypto/ecies/ecies_test.go fixes the issue"

fixes the problem, even with the fedora go packages.

tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
### Description

Added a gauge metric for gasPriceMinimum at path `txpool/gaspriceminimum`

### Tested

Used in development testnets
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants