Giter VIP home page Giter VIP logo

Comments (11)

bsinou avatar bsinou commented on August 19, 2024 1

Hello,

I have quickly tested the different versions for linux/amd64 on CentOS 7.
We definitively have the issue reported by @max-k as from version 1.11.

But build and tests pass with all go version of the 1.10 branch, including 1.10.5 released last Friday.
Thanks to the good work of @Yamilquery , we know that the problem (that is not related to the first one) comes from the notify TP library from rjeczalik and his specific to the latest version of MacOS.
We will have a closer look and give feedback.

from cells.

cdujeu avatar cdujeu commented on August 19, 2024

Hello @max-k thanks for this! we're on it, probably a lib to update in vendor

from cells.

Yamilquery avatar Yamilquery commented on August 19, 2024

Yes. It also can not be built using version 1.11.2 and even also with go version go1.10.5 darwin/amd64 in Mac OS X

go build\
         -tags dev\
         -ldflags "-X github.com/pydio/cells/common.version=0.2.0\
         -X github.com/pydio/cells/common.BuildStamp=2018-01-01T00:00:00\
         -X github.com/pydio/cells/common.BuildRevision=dev"\
         -o cells\
         .
# github.com/pydio/cells/vendor/github.com/rjeczalik/notify
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:51:216: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:165:47: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFStringCreateWithCStringNoCopy
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:166:225: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
make: *** [dev] Error 2

from cells.

Yamilquery avatar Yamilquery commented on August 19, 2024

In this Issue they suggest me to execute the following command to convert nil to 0:

go tool fix -r cftype ./

However it doesn't work for me.

After execute the above code I'm still getting the same error:

➜  cells git:(master) go tool fix -r cftype ./
warning: no cgo types: exit status 1
warning: no cgo types: exit status 1
warning: no cgo types: exit status 1
warning: no cgo types: exit status 1
➜  cells git:(master) go test
# github.com/pydio/cells/vendor/github.com/rjeczalik/notify
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:51:216: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:165:47: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFStringCreateWithCStringNoCopy
vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:166:225: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
➜  cells git:(master)

from cells.

cdujeu avatar cdujeu commented on August 19, 2024

@bsinou can you check this ticket please?

from cells.

mersinvald avatar mersinvald commented on August 19, 2024

@max-k @bsinou are there any updates about how to fix this issue on Mac OS X Mojave?
We've encountered the same issue in etheriumproject/go-etherium and go tool fix -r cftype does not work either.

from cells.

cdujeu avatar cdujeu commented on August 19, 2024

hi guys
1/ notify issue is fixed in the master branch => build for 1.10.5
2/ The 1.11 issue is different (github.com/pydio/cells/vendor/golang.org/x/crypto/blake2b.supportsAVX2: relocation target runtime.support_avx2 not defined)
I did not check where it comes from yet
charles

from cells.

cdujeu avatar cdujeu commented on August 19, 2024

and for notify => we had to update the notify lib in the vendor folder.

from cells.

max-k avatar max-k commented on August 19, 2024

Hi,
I think you only have to update these dependencies:

  • x/sys/cpu
  • x/crypto/blake2b
    They seem unused in your code, so perhaps you could simply remove them.

from cells.

cdujeu avatar cdujeu commented on August 19, 2024

Actually I just retested : the master branch does build on 1.11 since we updated the minio-srv inside vendor! See https://travis-ci.org/pydio/cells/jobs/457886544

These dependencies are used by underlying libs (minio)

Can you try to pull the last version from master?

from cells.

cdujeu avatar cdujeu commented on August 19, 2024

Building for Travis with go 1.11.2

from cells.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.