落寞

Results 12 comments of 落寞

I don't want to run in a container, I just want to run on the host, so I just need to compile a binary program

Moreover, I need to compile binary programs of other architectures after X86 compilation, which is my requirement.

Can't I build binaries directly from makefiles? Can only be built from containers? I have some packages that can't be downloaded eg: package golang.org/x/lint/golint: unrecognized import path "golang.org/x/lint/golint" (https fetch:...

OK,I'm a little busy this afternoon. I haven't replied to you. Thank you very much for your help

make prog/scope BUILD_IN_CONTAINER=false report errors: mkdir -p prog/staticui esc -o prog/staticui/staticui.go -pkg staticui -prefix client/build client/build make: esc:command not found make: *** [prog/staticui/staticui.go] error This esc doesn't look like a...

Ok, I thought it was a linux system command, so I yum install esc.

The container is compiled, but I want to compile other architectures, such as mips64le, how do I modify the Makefile and perform compilation command

Ok, thanks, I don’t have an arm system. I know that the go code can be cross-compiled. I want to cross-compile the arm architecture on x86_64. Is this feasible?

I execute:GOARCH=mips64le make BUILD_IN_CONTAINER=false GO_BUILD_INSTALL_DEPS= prog/scope output:time env GOGC=off CGO_ENABLED=1 CC=/opt/gcc-4.4-gnu/bin/mipsel-linux-gcc go build -mod vendor -ldflags "-extldflags \"-static\" -X main.version=2f9ccdc -s -w" -tags 'netgo unsafe' -o prog/scope ./prog #github.com/docker/docker/pkg/system vendor/github.com/docker/docker/pkg/system/stat_linux.go:11:3:...