-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
crypto/secp256k1: libsecp256k1/include/secp256k1.h error when using go mod command with build flag '-mod=vendor' #17700
Comments
How is going on? I have the same issue |
@andyvauliln #26366 (comment) |
Closing this issue as solved for the reporter. @andyvauliln if you still experience a problem, please report an issue. |
The ideal solution to this problem would be to have a native go version of the library so that users of go-ethereum as a library would have the option to not use cgo and have their dependencies just work. There is a pure go version at https://github.com/btcsuite/btcd/tree/master/btcec The geth binary can continue to be compiled with the c version, but having the option to just use Go would simplify things significantly for many of us. My actual problem is that we want to be able to use https://renovatebot.com to automatically upgrade our dependencies but it doesn't have any concept of post-upgrade commands to run, so it can't automatically upgrade anything because after running go mod vendor, the libsecp256k1/src directory is deleted. A second idea for improving the situation: all .c and .h files could be moved directly into the go package directory so that they are not dropped by go mod vendor. |
I am also having this problem. # github.com/ethereum/go-ethereum/crypto/secp256k1
vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/curve.go:42:10: fatal error: libsecp256k1/include/secp256k1.h: No such file or directory
#include "libsecp256k1/include/secp256k1.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated. |
export GOFLAGS="" |
have same problem in Goland
|
I am also having this problem. how to fix it ? my go-ethereum version: v1.9.21
|
Cuz I just want to use secp256k1 signature, so it works for me! |
Frequently encountered this issue on mac. This issue was described here: https://blog.csdn.net/ic_xcc/article/details/124456791 You need to manually copy this I downloaded the |
Hi there,
please note that this is an issue tracker reserved for bug reports and feature requests.
For general questions please use the gitter channel or the Ethereum stack exchange at https://ethereum.stackexchange.com.
System information
geth: use the latest tag=>
v1.8.15
Expected behaviour
Well I test the
secpk256k1
using thego mod
command, because of the fuckingGFW
, I want to build my project with the flag-mod=vendor
Actual behaviour
It failed with
vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/curve.go:42:44: fatal error: libsecp256k1/include/secp256k1.h: No such file or directory
.Steps to reproduce the behaviour
This is my simple test code:
And this is my test step
I have already raised an issue golang/go#27667
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: