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

hsdis cannot be built with MinGW64

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b14
    • OS:
      windows

      Description

      I attempt to build hsdis for Windows on WSL Ubuntu 18.04 with gcc-mingw-w64-x86-64, but I saw error messages as below:

      --------------
      x86_64-w64-mingw32-gcc -o build/windows-amd64/hsdis-amd64.dll -Ibuild/windows-amd64/include -I/home/yasuenag/gnu/binutils-2.32/include -I/home/yasuenag/gnu/binutils-2.32/bfd -Ibuild/windows-amd64/bfd -DLIBARCH_amd64 -DLIBARCH=\"amd64\" -DLIB_EXT=\".dll\" -O hsdis.c -shared build/windows-amd64/bfd/libbfd.a build/windows-amd64/opcodes/libopcodes.a build/windows-amd64/libiberty/libiberty.a
      build/windows-amd64/bfd/libbfd.a(compress.o):compress.c:(.text+0x5b): undefined reference to `inflateInit_'
      build/windows-amd64/bfd/libbfd.a(compress.o):compress.c:(.text+0x95): undefined reference to `inflate'
      build/windows-amd64/bfd/libbfd.a(compress.o):compress.c:(.text+0xa4): undefined reference to `inflateReset'
      build/windows-amd64/bfd/libbfd.a(compress.o):compress.c:(.text+0xc3): undefined reference to `inflateEnd'
      build/windows-amd64/bfd/libbfd.a(compress.o):compress.c:(.text+0x662): undefined reference to `compressBound'
      build/windows-amd64/bfd/libbfd.a(compress.o):compress.c:(.text+0x695): undefined reference to `compress'
      collect2: error: ld returned 1 exit status
      Makefile:225: recipe for target 'build/windows-amd64/hsdis-amd64.dll' failed
      make: *** [build/windows-amd64/hsdis-amd64.dll] Error 1
      --------------

      These functions are provided by zlib.
      We need to link to zlib.

        Attachments

          Activity

            People

            • Assignee:
              ysuenaga Yasumasa Suenaga
              Reporter:
              ysuenaga Yasumasa Suenaga
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: