-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Host operating system: output of uname -a
Linux rhel-7.2.novalocal 3.10.0-693.1.1.el7.s390x #1 SMP Thu Aug 3 08:17:56 EDT 2017 s390x s390x s390x GNU/Linux
ERROR from make
[root@rhel-7 node_exporter]# go version
go version go1.8.3 linux/s390x
[root@rhel-7 node_exporter]# lsb_release
LSB Version: :core-4.1-noarch:core-4.1-s390x:cxx-4.1-noarch:cxx-4.1-s390x:desktop-4.1-noarch:desktop-4.1-s390x:languages-4.1-noarch:languages-4.1-s390x:printing-4.1-noarch:printing-4.1-s390x
[root@rhel-7 node_exporter]# make
formatting code
vetting code
running staticcheck
building binaries
node_exporter
github.com/prometheus/node_exporter
/usr/lib/golang/pkg/tool/linux_s390x/link: running gcc failed: exit status 1
/bin/ld: cannot find -lpthread
/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
!! command failed: build -o /data/src/github.com/prometheus/node_exporter/node_exporter -ldflags -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.Version=0.14.0 -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.Revision=3762191e66e309106e930ab11f9c080fb4428001 -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.Branch=master -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.BuildUser=root@rhel-7.2.novalocal -X github.com/prometheus/node_exporter/vendor/github.com/prometheus/common/version.BuildDate=20170928-01:02:09 -extldflags '-static' -a -tags 'netgo static_build' github.com/prometheus/node_exporter: exit status 2
make: *** [build] Error 1