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

Cannot resolve user specified tool properly after JDK-8338304

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 24
    • 24
    • infrastructure
    • None
    • master

      After JDK-8338304, we are seeing tool from Clang GCC installation is being picked up unexpectedly (JDK build configured with `--with-toolchain-type=clang`). In the specific case, user supplied compiler toolchain is used by setting `CXX=<user_specified_path_to_tools_script>` during configuration, for example. Apparently, `UTIL_REQUIRE_PROGS(LLD, lld)` is not able to resolve `lld` properly in this case.

      ```
      Found candidate GCC installation: <snip>
      Selected GCC installation: <snip>
      ...
      clang: error: unsupported option '-V -static-libgcc'
      configure:85215: $? = 1
      configure:85204: <snip> -qversion >&5
      clang: error: unknown argument '-qversion'; did you mean '--version'?
      ...
      ```

      I've tested with a change to not do `UTIL_REQUIRE_PROGS(LLD, lld)` in the case where user specified toolchain should be used with more complex compilation environment. That reverts back to the previous behavior and works without issue for user specified toolchain usages.

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: