Skip to content

Can't build github.com/docker/docker/pkg/system on freebsd #42849

@fsouza

Description

@fsouza

Description

This is an issue that was reported in fsouza/go-dockerclient#878: when trying to build go-dockerclient on freebsd, users see an error where github.com/docker/docker/pkg/system fails to build (it's a transient dependency of go-dockerclient).

Not sure if yall care about it or not, but I figured I could open an issue asking whether you'd take a PR before sending one or simply vendoring & fixing on my side.

Thank you very much!

Steps to reproduce the issue:

Clone go-dockerclient and try to build it with GOOS=freebsd:

% git clone --depth=1 https://github.com/fsouza/go-dockerclient.git
% cd go-dockerclient
% GOOS=freebsd go build 

Describe the results you received:

Compilation fails with the following error message:

# github.com/docker/docker/pkg/system
../../go/pkg/mod/github.com/docker/[email protected]+incompatible/pkg/system/mknod.go:12:19: cannot use dev (type int) as type uint64 in argument to unix.Mknod

Describe the results you expected:

Successful build.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

(paste your output here)

Output of docker info:

(paste your output here)

Additional environment details (AWS, VirtualBox, physical, etc.):

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementEnhancements are not bugs or new features but can improve usability or performance.platform/freebsd

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions