Skip to content

Compilation error when building for certain platforms #69

@a-robinson

Description

@a-robinson

I'm experimenting with using this library to instrument the core components of Kubernetes, and have found that it breaks compilation for a couple of the platforms that we target: linux/arm and linux/386 (although to be honest I'm not sure why we build for 386). I may be able to work around the issue within Kubernetes by fixing some unneeded dependencies, but wanted to separately report the issue in case it's not just due to my ineptitude.

This is the exact error I see:
Godeps/_workspace/src/github.com/prometheus/client_golang/prometheus/process_collector_procfs.go:40: p.NewStat undefined (type procfs.Proc has no field or method NewStat)

For context, we've vendored in client_golang and its dependencies using go dep with the most recent versions from github as of last Friday. For more context, here's a PR in which I attempt to add a couple metrics to the Kubernetes API server. You can reproduce the test of whether it builds on all platforms by running build/release.sh without the change I have that removes linux/arm and linux/386 from the list of target platforms.

I can help look into this if it's of interest to you, but without looking into it much I have no immediate guess at what the problem is.

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