Skip to content

Instantly share code, notes, and snippets.

@alpiua
Created July 30, 2020 21:14
Show Gist options
  • Save alpiua/61547c5e4d46fdf508cd39968b575db9 to your computer and use it in GitHub Desktop.
Save alpiua/61547c5e4d46fdf508cd39968b575db9 to your computer and use it in GitHub Desktop.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
APP_NAME=vmagent make app-via-docker
make[1]: Entering directory '/root/VictoriaMetrics-1.39.1'
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
(docker image ls --format '{{.Repository}}:{{.Tag}}' | grep -q 'local/base:1.1.1-alpine_3.12-alpine_3.12$') \
|| docker build -t local/base:1.1.1-alpine_3.12-alpine_3.12 \
--build-arg root_image=alpine:3.12 \
--build-arg certs_image=alpine:3.12 \
deployment/docker/base
(docker image ls --format '{{.Repository}}:{{.Tag}}' | grep -q 'local/builder:2.0.0-golang_1.14.6$') \
|| docker build -t local/builder:2.0.0-golang_1.14.6 \
--build-arg go_builder_image=golang:1.14.6 \
deployment/docker/builder
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
mkdir -p gocache-for-docker
docker run --rm \
--user 0:0 \
--mount type=bind,src="/root/VictoriaMetrics-1.39.1",dst=/VictoriaMetrics \
-w /VictoriaMetrics \
--mount type=bind,src="/root/VictoriaMetrics-1.39.1/gocache-for-docker",dst=/gocache \
--env GOCACHE=/gocache \
--env GO111MODULE=on \
\
local/builder:2.0.0-golang_1.14.6 \
go build -mod=vendor -trimpath \
-ldflags "-extldflags '-static' -X 'github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=vmagent-20200730-211002--dirty-da39a3ee'" \
-tags 'netgo osusergo nethttpomithttp2' \
-o bin/vmagent-prod github.com/VictoriaMetrics/VictoriaMetrics/app/vmagent
# github.com/valyala/gozstd
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_common.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_compress.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_compress.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_compress_literals.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_compress_literals.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_compress_sequences.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_compress_sequences.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_double_fast.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_double_fast.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_fast.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_fast.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_lazy.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_lazy.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_ldm.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_ldm.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_opt.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_opt.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_ddict.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_ddict.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_decompress.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_decompress.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_decompress_block.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zstd_decompress_block.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zdict.o) does not
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zdict.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(zdict.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(entropy_common.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(entropy_common.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(error_private.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(error_private.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(fse_decompress.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(fse_decompress.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(xxhash.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(xxhash.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(fse_compress.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(fse_compress.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(hist.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(hist.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(huf_compress.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(huf_compress.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(huf_decompress.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(huf_decompress.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(divsufsort.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(divsufsort.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(fastcover.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(fastcover.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(pool.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(pool.o)
/usr/bin/ld: error: $WORK/b144/_cgo_.o uses VFP register arguments, vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(cover.o) does not
/usr/bin/ld: failed to merge target specific data of file vendor/github.com/valyala/gozstd/libzstd_linux_arm.a(cover.o)
collect2: error: ld returned 1 exit status
deployment/docker/Makefile:25: recipe for target 'app-via-docker' failed
make[1]: *** [app-via-docker] Error 2
make[1]: Leaving directory '/root/VictoriaMetrics-1.39.1'
app/vmagent/Makefile:10: recipe for target 'vmagent-prod' failed
make: *** [vmagent-prod] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment