CortexTheseus icon indicating copy to clipboard operation
CortexTheseus copied to clipboard

Makefile cross

Open ucwong opened this issue 4 years ago • 10 comments

make cortex-cross It will be very useful to make this available, xgo

ucwong avatar Jul 01 '20 02:07 ucwong

Compile golang for different platforms? Sounds cool !

DhunterAO avatar Jul 03 '20 10:07 DhunterAO

Maybe use docker, I am also not familiar with it of crossing. It will be nice for you guys to do some investigation. https://github.com/ethereum/go-ethereum/blob/master/Makefile#L58

ucwong avatar Jul 03 '20 10:07 ucwong

Ok, I'll start the investigation after fixing the current bugs in test

DhunterAO avatar Jul 03 '20 10:07 DhunterAO

Ok, I'll start the investigation after fixing the current bugs in test

Great, if there is some progress, you can create a PR related this issue

ucwong avatar Jul 03 '20 10:07 ucwong

https://github.com/karalabe/xgo

ucwong avatar Jul 03 '20 13:07 ucwong

the karalabe/xgo may not support go mod. fixed : https://github.com/gythialy/xgo

Good, it seems that go-ethereum https://github.com/ethereum/go-ethereum/blob/master/build/ci.go#L1042 still use this repo, we need to take a further look.

https://github.com/karalabe/xgo/pull/144 This PR related the go.mod issue for go.mod auto detecting, if it is necessary we can fork and merge this PR

ucwong avatar Jul 04 '20 03:07 ucwong

Client:
 Version:           19.03.6
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        369ce74a3c
 Built:             Fri Feb 28 23:45:43 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.6
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       369ce74a3c
  Built:            Wed Feb 19 01:06:16 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.3-0ubuntu1~18.04.2
  GitCommit:        
 runc:
  Version:          spec: 1.0.1-dev
  GitCommit:        
 docker-init:
  Version:          0.18.0
  GitCommit: 

ucwong avatar Jul 10 '20 07:07 ucwong

Go version:        go1.12.17 

Higher go version needed

build github.com/CortexFoundation/CortexTheseus/cmd/cortex: cannot load hash/maphash: malformed module path "hash/maphash": missing dot in first path element
2020/07/10 20:39:51 Failed to cross compile package: exit status 1.
util.go:45: exit status 1
exit status 1
Makefile:169: recipe for target 'cortex-linux-386' failed
make: *** [cortex-linux-386] Error 1

ucwong avatar Jul 10 '20 12:07 ucwong

https://github.com/techknowlogick/xgo recently updated

ucwong avatar Jul 22 '20 14:07 ucwong

Stale issue message

github-actions[bot] avatar Aug 31 '21 11:08 github-actions[bot]