I think the error is hiding in there:
vendor/github.com/docker/docker/client/client.go:120:35: undefined:
DefaultDockerHost

(You can probably just do: go build ./cmd/prometheus to get that,
rather than needing to use the full build system.)

It looks like 
https://github.com/prometheus/prometheus/blob/v2.23.0/vendor/github.com/docker/docker/client/client_unix.go
was missing illumos -- although a dependency update for 2.24 seems to
have added it, so try 2.24?

On Sat, 9 Jan 2021 at 09:11, Jasper Siepkes <[email protected]> wrote:
>
> Hi!
>
> I'm trying to build Prometheus on Illumos (Solaris) I won't bore you with my 
> platform specific porting issues ;-) but I would appreciate any help you 
> folks can offer with promu. I can't seem to get the actual build error 
> message.
>
> When building with "make build" the build eventually fails on "building 
> binaries". I suspect due to some platform specific things I need to fix. 
> However I can't seem to get a decent error message out of the build. It fails 
> with:
>
> ----8<--------------------------
> >> building binaries
> GO111MODULE=on CGO_LDFLAGS="-lsocket -lsendfile" /root/go/bin/promu build 
> --prefix /root/go/src/github.com/prometheus/prometheus
>  >   prometheus
> # github.com/docker/docker/client
> vendor/github.com/docker/docker/client/client.go:120:35: undefined: 
> DefaultDockerHost
> vendor/github.com/docker/docker/client/client.go:125:12: undefined: 
> DefaultDockerHost
> vendor/github.com/docker/docker/client/client.go:128:12: undefined: 
> defaultProto
> vendor/github.com/docker/docker/client/client.go:129:12: undefined: 
> defaultAddr
> !! command failed: build -o 
> /root/go/src/github.com/prometheus/prometheus/prometheus -ldflags -X 
> github.com/prometheus/common/version.Version=2.23.0 -X 
> github.com/prometheus/common/version.Revision=26d89b4b0776fe4cd5a3656dfa520f119a375273
>  -X github.com/prometheus/common/version.Branch=joyent/2.23 -X 
> github.com/prometheus/common/version.BuildUser=root@build-2 -X 
> github.com/prometheus/common/version.BuildDate=20210109-09:05:46  -mod=vendor 
> -a -tags netgo,builtinassets github.com/prometheus/prometheus/cmd/prometheus: 
> exit status 2
> make: *** [Makefile.common:229: common-build] Error 1
> ----8<--------------------------
>
> I managed to get a bit more information by attempting this build step 
> manually with the "promu -v build" command. However that only yields a 
> backtrace which (I think) just shows a part of the promu execution and not 
> the actual build failure:
>
> ----8<--------------------------
> !! exit status 2
> command failed: build -o prometheus -ldflags -X 
> github.com/prometheus/common/version.Version=2.23.0 -X 
> github.com/prometheus/common/version.Revision=26d89b4b0776fe4cd5a3656dfa520f119a375273
>  -X github.com/prometheus/common/version.Branch=joyent/2.23 -X 
> github.com/prometheus/common/version.BuildUser=root@build-2 -X 
> github.com/prometheus/common/version.BuildDate=20210108-21:58:18  -mod=vendor 
> -a -tags netgo,builtinassets github.com/prometheus/prometheus/cmd/prometheus
> github.com/prometheus/promu/cmd.buildBinary
>         /root/go/src/github.com/prometheus/promu/cmd/build.go:86
> github.com/prometheus/promu/cmd.buildAll
>         /root/go/src/github.com/prometheus/promu/cmd/build.go:92
> github.com/prometheus/promu/cmd.runBuild
>         /root/go/src/github.com/prometheus/promu/cmd/build.go:130
> github.com/prometheus/promu/cmd.Execute
>         /root/go/src/github.com/prometheus/promu/cmd/promu.go:125
> main.main
>         /root/go/src/github.com/prometheus/promu/main.go:20
> runtime.main
>         /opt/local/go115/src/runtime/proc.go:204
> runtime.goexit
>         /opt/local/go115/src/runtime/asm_amd64.s:1374
> ----8<--------------------------
>
> Am I missing something obvious here?
>
> Kind regards,
>
> Jasper
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-developers/59464ddc-2861-40d3-b16c-9c1844be7790n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAP9KPhCu%3Dc-duL3HH1cRSsU9MGr5wEcw9chNOmmQ%2BT%3DejVhN_w%40mail.gmail.com.

Reply via email to