Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

run "make" command error, please help me. #25

Open
SeekWorld opened this issue Aug 29, 2021 · 1 comment
Open

run "make" command error, please help me. #25

SeekWorld opened this issue Aug 29, 2021 · 1 comment

Comments

@SeekWorld
Copy link

System information

Geth version: v1.10.8

Redis version: no need for this time

OS & Version: Ubuntu Server 20.04.3 LTS

Commit branch and hash: (PPS, 36bd02b)

Expected behaviour

want to build the ./build/bin/open-ethereum-pool file successful

Actual behaviour

root@pool:/home/pps# make
build/env.sh go get -v ./...
go: cannot find main module, but found .git/config in /home/pps/build/_workspace/src/github.com/CryptoManiac/open-ethereum-pool
to create a module there, run:
go mod init
make: *** [Makefile:10: all] Error 1

Steps to reproduce the behaviour

Just run the "make" command

"make" version

make -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I've been using your code for a long time and now the problem is not solved, can you update this repositories? @CryptoManiac

@SeekWorld
Copy link
Author

Then I realized if the OS version was too high causing the problem. So I downgraded to use Ubuntu Server LTS version 16.04.7.

It looked like progress was being made, but a new problem emerged:

root@16pool:/home/pps# make
build/env.sh go get -v ./...
github.com/ethereum/go-ethereum (download)
get "golang.org/x/crypto/sha3": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/sha3?go-get=1
get "golang.org/x/crypto/sha3": verifying non-authoritative meta tag
golang.org/x/crypto (download)
get "gopkg.in/redis.v3": found meta tag get.metaImport{Prefix:"gopkg.in/redis.v3", VCS:"git", RepoRoot:"https://gopkg.in/redis.v3"} at //gopkg.in/redis.v3?go-get=1
gopkg.in/redis.v3 (download)
get "gopkg.in/bsm/ratelimit.v1": found meta tag get.metaImport{Prefix:"gopkg.in/bsm/ratelimit.v1", VCS:"git", RepoRoot:"https://gopkg.in/bsm/ratelimit.v1"} at //gopkg.in/bsm/ratelimit.v1?go-get=1
gopkg.in/bsm/ratelimit.v1 (download)
github.com/gorilla/mux (download)
github.com/CryptoManiac/ethash (download)
github.com/ethereum/go-ethereum/common/hexutil
golang.org/x/crypto/sha3
github.com/ethereum/go-ethereum/common
github.com/ethereum/go-ethereum/common/math
github.com/CryptoManiac/open-ethereum-pool/util
# github.com/CryptoManiac/open-ethereum-pool/util
util/util.go:40:16: undefined: common.ToHex
gopkg.in/redis.v3/internal
gopkg.in/redis.v3/internal/consistenthash
gopkg.in/redis.v3/internal/hashtag
gopkg.in/bsm/ratelimit.v1
gopkg.in/redis.v3/internal/pool
gopkg.in/redis.v3
github.com/gorilla/mux
github.com/CryptoManiac/ethash/vendor/github.com/ethereum/go-ethereum/crypto/secp256k1
github.com/CryptoManiac/ethash/vendor/github.com/ethereum/go-ethereum/crypto/sha3
github.com/CryptoManiac/ethash/vendor/github.com/ethereum/go-ethereum/rlp
github.com/CryptoManiac/ethash/vendor/github.com/ethereum/go-ethereum/crypto
github.com/CryptoManiac/ethash/vendor/github.com/go-stack/stack
github.com/CryptoManiac/ethash/vendor/github.com/ethereum/go-ethereum/log
github.com/CryptoManiac/ethash
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2

"make" version

root@16pool:/home/pps# make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant