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

Build fails by clang17 after JDK-8313396

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Withdrawn
    • Icon: P3 P3
    • tbd
    • 25
    • hotspot
    • None
    • 25
    • generic
    • linux

      Configure command:
      bash configure --with-toolchain-type=clang --with-debug-level=fastdebug --with-toolchain-path=~/software/acc/x86_64/bin

      Make command:
      time make images test-image &> build/make.log

      Make output:
      === Output from failing command(s) repeated here ===
      * For target hotspot_variant-server_libjvm_objs_precompiled_precompiled.hpp.pch:
      In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/precompiled/precompiled.hpp:34:
      In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/classfile/classLoaderData.hpp:28:
      In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/memory/allocation.hpp:29:
      In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/nmt/memTag.hpp:28:
      In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/globalDefinitions.hpp:30:
      In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/forbiddenFunctions.hpp:38:
      /home/yansendao/git/jdk-asan-clang/src/hotspot/os/posix/forbiddenFunctions_posix.hpp:43:1: error: attribute declaration must precede definition [-Werror,-Wignored-attributes]
         43 | FORBID_C_FUNCTION(char* realpath(const char*, char*), "use os::realpath");
            | ^
      /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/compilerWarnings.hpp:109:18: note: expanded from macro 'FORBID_C_FUNCTION'
        109 | extern "C" { [[deprecated(Alternative)]] Signature; }
            | ^
      /usr/include/bits/stdlib.h:37:8: note: previous definition is here
         37 | __NTH (realpath (const char *__restrict __name, char *__restrict __resolved))
            | ^
         ... (rest of output omitted)

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: