Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-14472

Cannot build grip for M1 Macs

    XMLWordPrintable

Details

    Description

      Tested on my MacOS 11.2.3 laptop:

      /Users/johnchen/go/src/github.com/mongodb/curator/build/curator revendor --revision v3.21.3 --package github.com/shirou/gopsutil && make vendor-clean
      ...
      ...
      [INFO]	Setting version for github.com/shirou/gopsutil to v3.21.3.
      ...
      ...
      GOOS=darwin GOARCH=arm64 make build
      go build ./recovery ./logging ./message ./send ./slogger ./
      # github.com/mongodb/grip/vendor/github.com/shirou/gopsutil/process
      ../../go/src/github.com/mongodb/grip/vendor/github.com/shirou/gopsutil/process/process_darwin.go:590:34: undefined: KinfoProc
      ../../go/src/github.com/mongodb/grip/vendor/github.com/shirou/gopsutil/process/process_darwin.go:591:8: undefined: KinfoProc
      ../../go/src/github.com/mongodb/grip/vendor/github.com/shirou/gopsutil/process/process_darwin.go:604:32: undefined: KinfoProc
      ../../go/src/github.com/mongodb/grip/vendor/github.com/shirou/gopsutil/process/process_darwin.go:608:62: undefined: KinfoProc
      make: *** [build] Error 2
      

      Grip for M1 Macs is needed so that Curator can be build for M1 Macs.
      Maybe related issue on the repo: https://github.com/shirou/gopsutil/pull/999

      Attachments

        Issue Links

          Activity

            People

              kimberly.tao@mongodb.com Kim Tao
              john.chen@mongodb.com John Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: