Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to pass build on FreeBSD #415

Closed
chrislusf opened this issue Feb 14, 2022 · 3 comments
Closed

need to pass build on FreeBSD #415

chrislusf opened this issue Feb 14, 2022 · 3 comments

Comments

@chrislusf
Copy link

chrislusf commented Feb 14, 2022

My code supports multiple OS, including windows, linux, darwin, freebsd, etc.

I added this go-fuse library for using FUSE on linux and darwin. However, the build for freebsd is not passing due to the new library. Adding github.com/hanwen/go-fuse caused the build to fail altogether on freebsd.

I can skip fuse feature for freebsd. But I still need to compile on freebsd for other features.

weed$ GOOS=freebsd go build
# github.com/hanwen/go-fuse/v2/fuse
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:224:41: undefined: GetAttrIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:225:41: undefined: SetAttrIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:228:39: undefined: MknodIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:252:42: undefined: SetXAttrIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:258:40: undefined: CreateIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:260:38: undefined: ReadIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:269:39: undefined: WriteIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:278:41: undefined: ReadIn
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/types.go:550:2: undefined: Attr
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/types.go:578:2: undefined: Attr
../../../../../pkg/mod/github.com/hanwen/go-fuse/v2@v2.1.0/fuse/api.go:278:41: too many errors
@probonopd
Copy link

I am running into the exact same errors on FreeBSD. What is the solution?

@chrislusf
Copy link
Author

ensure all code for specific GOOS is not reference go-fuse

@probonopd
Copy link

With GOOS=Linux it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants