Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1660

Cannot Cross Compiling from Windows to Linux Using Tags CSE

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: Internal
    • Labels:
      None
    • Environment:
      Windows amd64, go version go1.14.4 windows/amd64, mongo-go-driver version v1.4.0+prerelease

      Currently, I have successfully built an API server with MongoDB CSFLE on Windows Machine for "Windows OS" using this command:

      set GOOS = windows, GOARCH = amd64

      go build -tags cse github.com\user\example_app

      output: example_app.exe

       

      And then, I try to cross compiling the application for linux with same command,

      set GOOS=linux, GOARCH = amd64

      go build -tags cse github.com\user\example_app

      output: build failed (screenshot attached)

      Please help me to solve this issue,

      Thanks in advance

       

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            app.apartemenku@gmail.com Apartemenku Ap
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: