Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2814

Building 100.3.0 version mongo-tools on Windows is failing

    • Type: Icon: Question Question
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Hi,

      I am trying to build the 100.3.0 version on windows machine. I have a requirement to compile the source on windows as per my company policy.

      1.Installed go 1.15 under C:/Go

      2. after successful installation, opened the cygwin terminal, go env

      go env
      set GO111MODULE=
      set GOARCH=amd64
      set GOBIN=
      set GOCACHE=C:\Users\annapoorna_radhakris\AppData\Local\go-build
      set GOENV=C:\Users\annapoorna_radhakris\AppData\Roaming\go\env
      set GOEXE=.exe
      set GOFLAGS=
      set GOHOSTARCH=amd64
      set GOHOSTOS=windows
      set GOINSECURE=
      set GOMODCACHE=C:\Program Files\Go\pkg\mod
      set GONOPROXY=
      set GONOSUMDB=
      set GOOS=windows
      set GOPATH=C:\Program Files\Go
      set GOPRIVATE=
      set GOPROXY=https://proxy.golang.org,direct
      set GOROOT=c:\go
      set GOSUMDB=sum.golang.org
      set GOTMPDIR=
      set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
      set GCCGO=gccgo
      set AR=ar
      set CC=gcc
      set CXX=g++
      set CGO_ENABLED=1
      set GOMOD=
      set CGO_CFLAGS=-g -O2
      set CGO_CPPFLAGS=
      set CGO_CXXFLAGS=-g -O2
      set CGO_FFLAGS=-g -O2
      set CGO_LDFLAGS=-g -O2
      set PKG_CONFIG=pkg-config
      set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\cygwin64\tmp\go-build524448258=/tmp/go-build -gno-record-gcc-switches

       

      Cloned the mongo-tools (100.3.0) tag to GOPATH location under c:/program Files/src/github.com/mongodb/

      4. navigate to  c:/program Files/src/github.com/mongodb/mongo-tools

      5. ./make

      Getting this error:

      $ ./make
      build.go:8:2: cannot find package "." in:
      C:\Program Files\Go\src\vendor\github.com\craiggwilson\goke\task
      build.go:9:2: cannot find package "." in:
      C:\Program Files\Go\src\vendor\github.com\mongodb\mongo-tools\buildscript

      Please help me what's the issue here and how to address that?

       

            Assignee:
            patrick.meredith@mongodb.com Patrick Meredith
            Reporter:
            annapoornar0604@gmail.com Annapoorna R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: