Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-31436

cbq-engine fails to build on Mojave

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 6.5.0
    • 6.5.0
    • build, query, secondary-index
    • Darwin ok.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
    • Untriaged
    • 3
    • Unknown
    • Build Team 2018 Sprint 23

    Description

      [100%] Building Go target cbq-engine using Go 1.8.5
      -- Executing: /Users/trond/.cbdepscache/exploded/x86_64/go-1.8.5/go/bin/go install -pkgdir /Users/trond/compile/bufferevent/build/gopkg/go-1.8.5 -tags="community" -buildmode="default" -gcflags="-trimpath=/Users/trond/compile/bufferevent" -asmflags="-trimpath=/Users/trond/compile/bufferevent" -ldflags=""   github.com/couchbase/query/server/cbq-engine
      # github.com/couchbase/query/server/cbq-engine
      /Users/trond/.cbdepscache/exploded/x86_64/go-1.8.5/go/pkg/tool/darwin_amd64/link: /Users/trond/.cbdepscache/exploded/x86_64/go-1.8.5/go/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)
       
       
      -- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      -- @ 'go install' failed! Re-running as 'go build' to help debug...
      -- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      WORK=/var/folders/2_/c86qynbx08q9cm7vhypbpjxh0000gn/T/go-build311224383
      mkdir -p $WORK/github.com/couchbase/query/server/cbq-engine/_obj/
      mkdir -p $WORK/github.com/couchbase/query/server/cbq-engine/_obj/exe/
      cd /Users/trond/compile/bufferevent/goproj/src/github.com/couchbase/query/server/cbq-engine
      /Users/trond/.cbdepscache/exploded/x86_64/go-1.8.5/go/pkg/tool/darwin_amd64/compile -o $WORK/github.com/couchbase/query/server/cbq-engine.a -trimpath $WORK -trimpath=/Users/trond/compile/bufferevent -p main -complete -buildid b692c41b347d5e800bdd2589effc3fdf5b67643c -D _/Users/trond/compile/bufferevent/goproj/src/github.com/couchbase/query/server/cbq-engine -I $WORK -I /Users/trond/compile/bufferevent/build/gopkg/go-1.8.5 -pack ./main.go ./monitoring_ce.go ./platform.go
      cd .
      /Users/trond/.cbdepscache/exploded/x86_64/go-1.8.5/go/pkg/tool/darwin_amd64/link -o $WORK/github.com/couchbase/query/server/cbq-engine/_obj/exe/a.out -L $WORK -L /Users/trond/compile/bufferevent/build/gopkg/go-1.8.5 -extld=clang -buildmode=exe -buildid=b692c41b347d5e800bdd2589effc3fdf5b67643c $WORK/github.com/couchbase/query/server/cbq-engine.a
      # github.com/couchbase/query/server/cbq-engine
      /Users/trond/.cbdepscache/exploded/x86_64/go-1.8.5/go/pkg/tool/darwin_amd64/link: /Users/trond/.cbdepscache/exploded/x86_64/go-1.8.5/go/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)
       
       
      CMake Error at /Users/trond/compile/bufferevent/tlm/cmake/Modules/go-install.cmake:89 (MESSAGE):
        Failed running go install 

       

      All of the other go programs builds fine.

       

      From looking at it this seems to be a similar issue as https://github.com/golang/go/issues/25908

       

      Setting GO_MAC_MINIMUM_VERSION to 1.10.4 in tlm/cmake/Modules/FindCouchbaseGo.cmake cause other things to fail:

       

      [100%] Build Go yacc target n1ql-yacc using Go 1.10.4
      -- Executing: /Users/trond/.cbdepscache/exploded/x86_64/go-1.10.4/go/bin/go tool yacc n1ql.y
      go tool: no such tool "yacc"
      CMake Error at /Users/trond/compile/bufferevent/tlm/cmake/Modules/go-yacc.cmake:10 (MESSAGE):
        Failed running go yacc 

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hemant.rajput Hemant Rajput
              trond Trond Norbye
              Votes:
              1 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty