Skip to content

Makefile cross #627

@ucwong

Description

@ucwong
Member

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

Activity

DhunterAO

DhunterAO commented on Jul 3, 2020

@DhunterAO
Contributor

Compile golang for different platforms? Sounds cool !

ucwong

ucwong commented on Jul 3, 2020

@ucwong
MemberAuthor

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

DhunterAO

DhunterAO commented on Jul 3, 2020

@DhunterAO
Contributor

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

ucwong

ucwong commented on Jul 3, 2020

@ucwong
MemberAuthor

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

ucwong commented on Jul 3, 2020

@ucwong
MemberAuthor
pinned this issue on Jul 4, 2020
unpinned this issue on Jul 4, 2020
ucwong

ucwong commented on Jul 4, 2020

@ucwong
MemberAuthor

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.

karalabe/xgo#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

ucwong commented on Jul 10, 2020

@ucwong
MemberAuthor
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

ucwong commented on Jul 10, 2020

@ucwong
MemberAuthor
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

ucwong commented on Jul 22, 2020

@ucwong
MemberAuthor

2 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @DhunterAO@ShadowErii@ucwong

      Issue actions

        Makefile cross · Issue #627 · CortexFoundation/CortexTheseus