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

Go 1.15.8 breaks Windows builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.0.0
    • Cheshire-Cat
    • query
    • Untriaged
    • Windows 64-bit
    • 1
    • Unknown

    Description

      After upgrading to Go 1.15.8, the Windows builds are broken with errors like

      C:\Users\Administrator\cbdepscache\exploded\amd64\go-1.15.8\go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1 

      C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: Error: export ordinal too large: 77640

      This appears to be caused by https://github.com/golang/go/issues/43591 which is scheduled to be fixed in Go 1.15.9 or Go 1.15.10, and should not affect earlier or later 1.x versions.

      A workaround for the moment is to add -buildmode=exe to the go build command. We may wish to remove this later when we can upgrade to a Go version without this problem.

      Attachments

        Issue Links

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

          Activity

            People

              ceej Chris Hillery
              ceej Chris Hillery
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty