Skip to content

Could not build for RHEL 7.2 on s390x #679

@djc2k

Description

@djc2k

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

node_exporter version: output of node_exporter --version

node_exporter command line flags

Are you running node_exporter in Docker?

What did you do that produced an error?

What did you expect to see?

What did you see instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions