Compile gitlab-pages 0.8.1 fails with FreeBSD
I tested everything with version 0.8.1 (b77d6128) with a FreeBSD 11.1 were I maintain the gitlab port for.
go version go1.10.1 freebsd/amd64
What I did:
Unpacked version 0.8.1 to directory /usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47
gmake
But I see the following error messages:
fatal: No names found, cannot describe anything.
mkdir -p ".GOPATH/src/gitlab.com/gitlab-org/"
ln -s ../../../.. ".GOPATH/src/gitlab.com/gitlab-org/gitlab-pages"
mkdir -p .GOPATH/test .GOPATH/cover
mkdir -p bin
ln -s ../bin .GOPATH/bin
touch .GOPATH/.ok
go install -v -ldflags='-X "main.Version=0.8.1~beta.0.g07ded04119d" -X "main.REVISION=07ded04119d"' gitlab.com/gitlab-org/gitlab-pages
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/daemon.go:12:2: cannot find package "github.com/kardianos/osext" in any of:
/usr/local/go/src/github.com/kardianos/osext (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/kardianos/osext (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/internal/domain/map.go:12:2: cannot find package "github.com/karrick/godirwalk" in any of:
/usr/local/go/src/github.com/karrick/godirwalk (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/karrick/godirwalk (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:12:2: cannot find package "github.com/lupine/go-mimedb" in any of:
/usr/local/go/src/github.com/lupine/go-mimedb (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/lupine/go-mimedb (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/main.go:10:2: cannot find package "github.com/namsral/flag" in any of:
/usr/local/go/src/github.com/namsral/flag (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/namsral/flag (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:13:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
/usr/local/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:14:2: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
/usr/local/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:15:2: cannot find package "github.com/rs/cors" in any of:
/usr/local/go/src/github.com/rs/cors (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/rs/cors (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:16:2: cannot find package "github.com/sirupsen/logrus" in any of:
/usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/sirupsen/logrus (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/server.go:11:2: cannot find package "golang.org/x/net/http2" in any of:
/usr/local/go/src/golang.org/x/net/http2 (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/golang.org/x/net/http2 (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/internal/jail/jail.go:11:2: cannot find package "golang.org/x/sys/unix" in any of:
/usr/local/go/src/golang.org/x/sys/unix (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/golang.org/x/sys/unix (from $GOPATH)
If I execute:
gmake setup
fatal: No names found, cannot describe anything.
rm -rf bin .GOPATH gitlab-pages
mkdir -p ".GOPATH/src/gitlab.com/gitlab-org/"
ln -s ../../../.. ".GOPATH/src/gitlab.com/gitlab-org/gitlab-pages"
mkdir -p .GOPATH/test .GOPATH/cover
mkdir -p bin
ln -s ../bin .GOPATH/bin
touch .GOPATH/.ok
go get -u github.com/FiloSottile/gvt
./bin/gvt fetch golang.org/x/tools/cmd/goimports
2018/05/05 13:28:59 Fetching: golang.org/x/tools/cmd/goimports
2018/05/05 13:29:01 · Fetching recursive dependency: golang.org/x/tools/imports
2018/05/05 13:29:01 ·· Fetching recursive dependency: golang.org/x/tools/go/ast/astutil
2018/05/05 13:29:01 ·· Fetching recursive dependency: golang.org/x/tools/internal/fastwalk
./bin/gvt fetch github.com/wadey/gocovmerge
2018/05/05 13:29:01 Fetching: github.com/wadey/gocovmerge
2018/05/05 13:29:04 · Fetching recursive dependency: golang.org/x/tools/cover
./bin/gvt fetch github.com/golang/lint/golint
2018/05/05 13:29:05 Fetching: github.com/golang/lint/golint
2018/05/05 13:29:07 · Fetching recursive dependency: golang.org/x/lint
2018/05/05 13:29:09 ·· Skipping (existing): golang.org/x/tools/go/ast/astutil
2018/05/05 13:29:09 ·· Fetching recursive dependency: golang.org/x/tools/go/gcexportdata
2018/05/05 13:29:10 ··· Fetching recursive dependency: golang.org/x/tools/go/types/typeutil
2018/05/05 13:29:10 ··· Fetching recursive dependency: golang.org/x/tools/go/internal/gcimporter
./bin/gvt fetch github.com/fzipp/gocyclo
2018/05/05 13:29:10 Fetching: github.com/fzipp/gocyclo
And after this again the gmake:
gmake
fatal: No names found, cannot describe anything.
go install -v -ldflags='-X "main.Version=0.8.1~beta.0.g07ded04119d" -X "main.REVISION=07ded04119d"' gitlab.com/gitlab-org/gitlab-pages
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/daemon.go:12:2: cannot find package "github.com/kardianos/osext" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/kardianos/osext (vendor tree)
/usr/local/go/src/github.com/kardianos/osext (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/kardianos/osext (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/internal/domain/map.go:12:2: cannot find package "github.com/karrick/godirwalk" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/karrick/godirwalk (vendor tree)
/usr/local/go/src/github.com/karrick/godirwalk (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/karrick/godirwalk (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:12:2: cannot find package "github.com/lupine/go-mimedb" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/lupine/go-mimedb (vendor tree)
/usr/local/go/src/github.com/lupine/go-mimedb (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/lupine/go-mimedb (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/main.go:10:2: cannot find package "github.com/namsral/flag" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/namsral/flag (vendor tree)
/usr/local/go/src/github.com/namsral/flag (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/namsral/flag (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:13:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/prometheus/client_golang/prometheus (vendor tree)
/usr/local/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:14:2: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/prometheus/client_golang/prometheus/promhttp (vendor tree)
/usr/local/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:15:2: cannot find package "github.com/rs/cors" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/rs/cors (vendor tree)
/usr/local/go/src/github.com/rs/cors (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/rs/cors (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/app.go:16:2: cannot find package "github.com/sirupsen/logrus" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/github.com/sirupsen/logrus (vendor tree)
/usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/github.com/sirupsen/logrus (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/server.go:11:2: cannot find package "golang.org/x/net/http2" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/golang.org/x/net/http2 (vendor tree)
/usr/local/go/src/golang.org/x/net/http2 (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/golang.org/x/net/http2 (from $GOPATH)
.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/internal/jail/jail.go:11:2: cannot find package "golang.org/x/sys/unix" in any of:
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/gitlab.com/gitlab-org/gitlab-pages/vendor/golang.org/x/sys/unix (vendor tree)
/usr/local/go/src/golang.org/x/sys/unix (from $GOROOT)
/usr/local/poudriere/ports/gitlab/www/gitlab-pages/work/gitlab-pages-b77d61283dfbadf3f50933a48b214d3607cacc47-b77d61283dfbadf3f50933a48b214d3607cacc47/.GOPATH/src/golang.org/x/sys/unix (from $GOPATH)
gmake: *** [Makefile.build.mk:13: build] Error 1
Do you maybe have an idea what the problem could be?
Thanks a lot for an answer.
Edited by Matthias Fechner