<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/131614>131614</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang][MacOS] llvm-tblgen crash, When build clang project
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jiangxinhaha
</td>
</tr>
</table>
<pre>
-DCMAKE_BUILD_TYPE=Debug, on branch llvmorg-16.0.0
Stack dump:
0. Program arguments: /Users/tom/project/stdc++/llvm-project/build/Debug/bin/llvm-tblgen -gen-instr-info -instr-info-expand-mi-operand-info=0 -I /Users/tom/project/stdc++/llvm-project/llvm/lib/Target/X86 -I/Users/tom/project/stdc++/llvm-project/build/include -I/Users/tom/project/stdc++/llvm-project/llvm/include -I /Users/tom/project/stdc++/llvm-project/llvm/lib/Target /Users/tom/project/stdc++/llvm-project/llvm/lib/Target/X86/X86.td --write-if-changed -o /Users/tom/project/stdc++/llvm-project/build/lib/Target/X86/X86GenInstrInfo.inc
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 llvm-tblgen 0x0000000100f73e30 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 80
1 llvm-tblgen 0x0000000100f743cc PrintStackTraceSignalHandler(void*) + 28
2 llvm-tblgen 0x0000000100f72138 llvm::sys::RunSignalHandlers() + 152
3 llvm-tblgen 0x0000000100f74e74 SignalHandler(int) + 276
4 libsystem_platform.dylib 0x00000001808dede4 _sigtramp + 56
5 libsystem_pthread.dylib 0x00000001808a7f70 pthread_kill + 288
6 libsystem_c.dylib 0x00000001807b4908 abort + 128
7 llvm-tblgen 0x0000000100b3390c void std::__1::__check_strict_weak_ordering_sorted[abi:dn180100]<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0>(std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*, std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0&) + 648
8 llvm-tblgen 0x0000000100b335d4 void std::__1::__sort_impl[abi:dn180100]<std::__1::_ClassicAlgPolicy, std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0>(std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0&) + 156
9 llvm-tblgen 0x0000000100b3352c void std::__1::sort[abi:dn180100]<std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0>(std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0) + 64
10 llvm-tblgen 0x0000000100b33488 void llvm::sort<std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0>(std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, std::__1::__wrap_iter<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>*>, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0) + 72
11 llvm-tblgen 0x0000000100b2f820 void llvm::sort<std::__1::vector<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>, std::__1::allocator<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>>>&, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0>(std::__1::vector<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>, std::__1::allocator<std::__1::pair<llvm::Record const*, llvm::OpcodeInfo>>>&, processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&)::$_0) + 76
12 llvm-tblgen 0x0000000100b243dc processSTIPredicate(llvm::STIPredicateFunction&, llvm::DenseMap<llvm::Record const*, unsigned int, llvm::DenseMapInfo<llvm::Record const*, void>, llvm::detail::DenseMapPair<llvm::Record const*, unsigned int>> const&) + 1980
13 llvm-tblgen 0x0000000100b22ca8 llvm::CodeGenSchedModels::collectSTIPredicates() + 520
14 llvm-tblgen 0x0000000100b1ea14 llvm::CodeGenSchedModels::CodeGenSchedModels(llvm::RecordKeeper&, llvm::CodeGenTarget const&) + 584
15 llvm-tblgen 0x0000000100b231f4 llvm::CodeGenSchedModels::CodeGenSchedModels(llvm::RecordKeeper&, llvm::CodeGenTarget const&) + 44
16 llvm-tblgen 0x0000000100b65e18 std::__1::__unique_if<llvm::CodeGenSchedModels>::__unique_single std::__1::make_unique[abi:dn180100]<llvm::CodeGenSchedModels, llvm::RecordKeeper&, llvm::CodeGenTarget const&>(llvm::RecordKeeper&, llvm::CodeGenTarget const&) + 52
17 llvm-tblgen 0x0000000100b65d7c llvm::CodeGenTarget::getSchedModels() const + 60
18 llvm-tblgen 0x0000000100d76efc (anonymous namespace)::InstrInfoEmitter::InstrInfoEmitter(llvm::RecordKeeper&) + 120
19 llvm-tblgen 0x0000000100d75ad8 (anonymous namespace)::InstrInfoEmitter::InstrInfoEmitter(llvm::RecordKeeper&) + 36
20 llvm-tblgen 0x0000000100d75a38 EmitInstrInfo(llvm::RecordKeeper&, llvm::raw_ostream&) + 96
21 llvm-tblgen 0x000000010101373c llvm::TableGenMain(char const*, std::__1::function<bool (llvm::raw_ostream&, llvm::RecordKeeper&)>) + 836
22 llvm-tblgen 0x0000000100e47dd8 main + 196
23 dyld 0x0000000180528274 start + 2840
/Users/tom/project/stdc++/llvm-project/build/build/LLVM.build/Debug/X86CommonTableGen.build/Script-A26243439BDAA0F9B56754A6.sh: line 6: 20309 Abort trap: 6 /Users/tom/project/stdc++/llvm-project/build/Debug/bin/llvm-tblgen -gen-instr-info -instr-info-expand-mi-operand-info=0 -I /Users/tom/project/stdc++/llvm-project/llvm/lib/Target/X86 -I/Users/tom/project/stdc++/llvm-project/build/include -I/Users/tom/project/stdc++/llvm-project/llvm/include -I /Users/tom/project/stdc++/llvm-project/llvm/lib/Target /Users/tom/project/stdc++/llvm-project/llvm/lib/Target/X86/X86.td --write-if-changed -o /Users/tom/project/stdc++/llvm-project/build/lib/Target/X86/X86GenInstrInfo.inc
Command PhaseScriptExecution failed with a nonzero exit code
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWl9v4zYS_zT0C2FDIvXPD35Q7LgNmmCDTdpr70WgyJHERiJ9FJU__fQHSvLGzsZZ32a3XeBsGLEikTPDmd_8SGrI2laWCmCBwjMUriass5U2iz8lU-WjVBWr2CTX4mkxXS2v0l_Os7NfLy5X2e0f1-eIrlaQdyUiS6wVzg1TvMJ1fd9oU079aObNPOSlN5bxOyy6ZoNoirzUmyFvfm10aViDmSm7BpRtEU0xIutfWzAtImurG0TWG6P_BG4RWbdWcETO-u_aqZg-P8s7WQtE1qMx61yqbSOb1yUoPC1BTaVqrZlKVWi8cz2Fxw1TYtrIqd6AcZfuNqIrD08vvtYk96_7kTki61tmSnB3f08iPL145yil4nUn4OsFjbY9y_mGg_zm_hr-zqzA0-mDkRamspjyiqkSBJ7q90LmkMKfQF04iFyoQs-k4nswxg_SVrqzuH1qcl1jxRpoMSIJqLYzgJ90hyt2D30qTIdG8i8wWCr3zODr9PZnrA1uwWJbAQZ1L41WLg_wPTMYRd7l5W9X2c0fV2cfLi_-ff4xc11Q5GGr8UZLZd2FtIjMx5zCu3Df-3iP3vDxPa-IKdChretH0_apHS6ujVS2H-KtYRwQSZ4bGfaQ6dYaYA0ikct2qZxqjMgZTlyK-3hP_77KgHKOX8i_kaVi9c9MiRoMIsm9lgKRdCuUJMhLybFjIj5NXhvTx07t6WkRSbYa_JAgL6X4WB0BxAF-afWOG0gcIS8NMK5l3j61FppsUzNbaNPMxFMt8x15iZcIEBDgrJWlNazZ9CJCJyHcFWArA0yM_fcFsLiIPTy2yO5kXY-Oc56LdoTwbfeXo0q8OA_mXoJZro0dnNL7PT4czJzSucexixZurRjcnGX-9oJXwO-y1hrJbfYA7C7TRoCRqsxabSwIFJ6xXCKaCu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