Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8194645

Build should work with VS 2013 express for 64bit builds

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10, 11
    • Fix Version/s: 11
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • OS:
      windows

      Description

      Visual Studio 2013 express edition does not come with the native 64bit compilers which we assume in configure. Instead it comes with a 32bit cross compilation setup. The only real difference seems to be the location of files, most notably the vcvars*.bat. Nir Lisker on build-dev has demonstrated that by changing which vcvars*.bat we look for, he was able to successfully build using express edition: http://mail.openjdk.java.net/pipermail/build-dev/2018-January/020584.html

      ---
      This is what I did in toolchain_windows.m4:

          if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
             VCVARSFILE="vc/bin/vcvars32.bat"
          else
      # VCVARSFILE="vc/bin/amd64/vcvars64.bat"
             VCVARSFILE="vc/bin/x86_amd64/vcvarsx86_amd64.bat"
          fi
      ---

      We should update configure to at least accept this alternate path to vcvars*.bat.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                erikj Erik Joelsson
                Reporter:
                erikj Erik Joelsson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: