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

Using clang together with devkit on linux doesn't work for building

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • infrastructure
    • None
    • b03
    • linux

      Using `--with-devkit=` to point to a typical linux devkit along with `--with-toolchain-path=` and `--with-toolchain-type=clang` to point the configure script at a clang-based toolchain results in:
      ```
      configure:75064: checking whether the C compiler works
      configure:75086: /dl/tools/clang -m64 -isysroot /dl/x86_64-linux-gnu-to-x86_64-linux-gnu/x86_64-linux-gnu/sysroot -isysroot /dl/x86_64-linux-gnu-to-x86_64-linux-gnu/x86_64-linux-gnu/sysroot -m64 -isysroot /dl/x86_64-linux-gnu-to-x86_64-linux-gnu/x86_64-linux-gnu/sysroot conftest.c >&5
      d.lld: error: cannot open crt1.o: No such file or directory
      ld.lld: error: cannot open crti.o: No such file or directory
      ld.lld: error: cannot open crtbegin.o: No such file or directory
      ld.lld: error: unable to find library -lgcc
      ld.lld: error: unable to find library -lgcc_s
      ld.lld: error: unable to find library -lc
      ld.lld: error: unable to find library -lgcc
      ld.lld: error: unable to find library -lgcc_s
      ld.lld: error: cannot open crtend.o: No such file or directory
      ld.lld: error: cannot open crtn.o: No such file or directory
      clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
      ```

            gdub Gilles Duboscq
            gdub Gilles Duboscq
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: