gurupras / go-cryptonight-miner

Simple Cryptonight miner written in Go
GNU General Public License v3.0
18 stars 6 forks source link

Build fails with cgo flags. #1

Open ghost opened 6 years ago

ghost commented 6 years ago

I'm trying to build the miner you made on Ubuntu, however whenever I try to build the program I get the following error:

go build github.com/gurupras/go-cryptonight-miner/cpu-miner/xmrflag in #cgo CFLAGS: -funroll-loops

I'm using Golang version 1.10.2 on Ubuntu 17.04 as of now.

gurupras commented 6 years ago

I'll look into this, but just so you know, I haven't updated this to work with Cryptoknight v7. A bit busy with some other projects at the moment, although, it shouldn't be too hard. The core .cl files are all copy-pasted from xmrig

ghost commented 6 years ago

Ah okay. No rush, and thanks for the quick response! I was just wondering if this was something that I was doing wrong.

I'll try looking into it in the meantime as well, and post anything here if I find a solution.