sero-cash / mine-pool

Sero mine pool
GNU General Public License v3.0
8 stars 27 forks source link

Error with superzk executing "make linux-v4" command #28

Open sauloco opened 2 years ago

sauloco commented 2 years ago

System information

OS & Version: Ubuntu 16.04.7 LTS (Xenial Xerus)

Kernel Version: 4.15.0-142-generic

Go Version: go1.17.5 linux/amd64

Expected behaviour

To compile

Actual behaviour

Getting an error with superzk

Steps to reproduce the behaviour

First download the lastest gero.

Fresh Ubuntu install

(following readme.md instructions)

Clone & compile:

git clone https://github.com/sero-cash/go-sero
git clone https://github.com/sero-cash/go-czero-import 
git clone https://github.com/sero-cash/mine-pool
cd  mine-pool
make linux-v4

Backtrace

~/mine-pool$ make linux-v4
build/env.sh linux-v4  go install
/home/[redacted]/mine-pool/build/_workspace/src/github.com/sero-cash/mine-pool
# github.com/sero-cash/go-czero-import/c_superzk
/usr/bin/ld: cannot find -lsuperzk
collect2: error: ld returned 1 exit status
# github.com/sero-cash/go-sero/crypto/secp256k1
vendor/github.com/sero-cash/go-sero/crypto/secp256k1/curve.go:42:44: fatal error: libsecp256k1/include/secp256k1.h: No such file or directory
compilation terminated.
Makefile:20: recipe for target 'linux-v4' failed
make: *** [linux-v4] Error 2
Reggerriee commented 2 years ago

Hello, You found solution this problem? Thx :) Rege

JohnnyAction commented 2 years ago

I'm having a similar problem. On Ubuntu 16.04 I couldn't get past:

build/env.sh linux-v4  go install
/home/johnny/mine-pool/build/_workspace/src/github.com/sero-cash/mine-pool
can't load package: package github.com/sero-cash/mine-pool:  no buildable Go source files in /home/johnny/mine-pool/build/_workspace/src/github.com/sero-cash/mine-pool
Makefile:20: recipe for target 'linux-v4' failed
make: *** [linux-v4] Error 1

I've tried Ubuntu 18.04 and it's better, but I get stuck here:

build/env.sh linux-v4  go install
/root/mine-pool/build/_workspace/src/github.com/sero-cash/mine-pool
# github.com/sero-cash/go-czero-import/c_superzk
/tmp/go-build969171493/b033/_x003.o: In function `_cgo_ce419bda48e0_Cfunc_superzk_pkr_crypte':
/tmp/go-build/cgo-gcc-prolog:123: undefined reference to `superzk_pkr_crypte'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'linux-v4' failed
make: *** [linux-v4] Error 2

Any help would be appreciated.

edcomrocha commented 2 years ago

Hey ! I'm trying to install the mining pool.

But in both cases I get the below error.

build/env.sh go run -mod=readonly build/ci.go install /root/gopath/src/github.com/sero-cash/go-sero/../go-czero-import /root/gopath github.com/sero-cash/go-czero-import/c_superzk /usr/bin/ld: cannot find -lsuperzk collect2: error: ld returned 1 exit status

Did you manage to fix this?

My system, CentOs 7 golang 1.9

Thanks