<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/85075>85075</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Attempt to install postgresql14 on Arch Linux with clang15 and LLVM15 fails with a reference to "kind" from LLVM17?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          TheRealTomDavidson
      </td>
    </tr>
</table>

<pre>
    LLVM ERROR: ThinLTO cannot create input file: Unknown attribute kind (86) (Producer: 'LLVM17.0.6' Reader: 'LLVM 15.0.7')
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /usr/lib/llvm15/bin/llvm-lto -thinlto -thinlto-action=thinlink -o postgres.index.bc postgres/access/brin/brin>
 #0 0x00007fa89dba655a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/src/debug/llvm15/llvm-15.0.7.src/lib/Support/Unix/Signal>
 #1 0x00007fa89dba655a PrintStackTraceSignalHandler /usr/src/debug/llvm15/llvm-15.0.7.src/lib/Support/Unix/Signals.inc:631:23
 #2 0x00007fa89dba362f llvm::sys::RunSignalHandlers() /usr/src/debug/llvm15/llvm-15.0.7.src/lib/Support/Signals.cpp:103:20
 #3 0x00007fa89dba377d SignalHandler /usr/src/debug/llvm15/llvm-15.0.7.src/lib/Support/Unix/Signals.inc:397:31
 #4 0x00007fa89c85a770 (/usr/lib/libc.so.6+0x3c770)
 #5 0x00007fa89c8ab32c (/usr/lib/libc.so.6+0x8d32c)
 #6 0x00007fa89c85a6c8 raise (/usr/lib/libc.so.6+0x3c6c8)
 #7 0x00007fa89c8424b8 abort (/usr/lib/libc.so.6+0x244b8)
 #8 0x00007fa89d8e3281 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_replace(unsigned long, unsigne>
 #9 0x00007fa89d8e3281 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::assign(char const*) /usr/include/>
#10 0x00007fa89d8e3281 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::operator=(char const*) /usr/inclu>
#11 0x00007fa89d8e3281 CompareNumbers /usr/src/debug/llvm15/llvm-15.0.7.src/lib/Support/FileUtilities.cpp:133:19
#12 0x00007fa89f7cf193 llvm::ThinLTOCodeGenerator::addModule(llvm::StringRef, llvm::StringRef) /usr/src/debug/llvm15/llvm-15.0.7.src/lib>
#13 0x000055c788b9ac27 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>>::~ErrorOr() /usr/src/>
#14 0x000055c788b9ac27 thinlto::ThinLTOProcessing::thinLink() /usr/src/debug/llvm15/llvm-15.0.7.src/tools/llvm-lto/llvm-lto.cpp:654:5
#15 0x000055c788b8e441 thinlto::ThinLTOProcessing::~ThinLTOProcessing() /usr/src/debug/llvm15/llvm-15.0.7.src/tools/llvm-lto/llvm-lto.cp>
#16 0x000055c788b8e441 main /usr/src/debug/llvm15/llvm-15.0.7.src/tools/llvm-lto/llvm-lto.cpp:996:3
#17 0x00007fa89c843cd0 (/usr/lib/libc.so.6+0x25cd0)
#18 0x00007fa89c843d8a __libc_start_main (/usr/lib/libc.so.6+0x25d8a)
#19 0x000055c788b908d5 (/usr/lib/llvm15/bin/llvm-lto+0xc8d5)
make[3]: *** [Makefile:219: install-postgres-bitcode] Aborted (core dumped)

As far as I know, LLVM17 is not installed on this machine. Any ideas?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMV11v27gS_TX0yyCCREqW9OAH5cP3XiC5DZJ0Xw2KHNlcS6RLUk3y0t--oGTHVtaLFEW7aGDYypA6c-aQnOFw59RaIy5Idkmy6xnv_cbYxdMGH5C3T6a75l-VdEbPaiNfF7e3f9zBzcPDpwfCKnjaKH379AkE19p4EBa5R1B613toVIth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