Skip to content

Can't build 0.18.0 on OpenBSD #2772

@catap

Description

@catap

Contributing guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Good day,

Seems that I had discovered a regression at v0.18.0: it doesn't build anymore on OpenBSD. v0.17.1 builds fine.

It fails as:

buildx $ go build github.com/docker/buildx/cmd/buildx                
# github.com/tonistiigi/fsutil/copy
vendor/github.com/tonistiigi/fsutil/copy/copy.go:394:20: undefined: copyFile
vendor/github.com/tonistiigi/fsutil/copy/copy.go:414:15: c.copyFileInfo undefined (type *copier has no field or method copyFileInfo)
vendor/github.com/tonistiigi/fsutil/copy/copy.go:422:15: c.copyFileTimestamp undefined (type *copier has no field or method copyFileTimestamp)
vendor/github.com/tonistiigi/fsutil/copy/copy.go:503:16: c.copyFileInfo undefined (type *copier has no field or method copyFileInfo)
vendor/github.com/tonistiigi/fsutil/copy/copy_nowindows.go:45:9: undefined: mknod
vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go:11:12: st.Atimespec undefined (type *syscall.Stat_t has no field or method Atimespec)
vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go:16:12: st.Mtimespec undefined (type *syscall.Stat_t has no field or method Mtimespec)
buildx $

I've used git bisect to locate the first commit which had introduced regression, here it is: f89f861

BTW tonistiigi/fsutil@397af53 builds fine on the same machine.

Expected behaviour

It should build

Actual behaviour

It doesn't build

Buildx version

v0.18.0

Docker info

No response

Builders list

irrelevant

Configuration

I use go version go1.23.1 openbsd/amd64 to build both: v0.17.1 and v0.18.0

Build logs

No response

Additional info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions