<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am trying to build python tot (<a href="https://github.com/python/cpython">https://github.com/python/cpython</a>) using clang tot (<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>) but ran into the following issue. The same happens for 12.x release branch. Does not happen for 11.x.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Let me know if you need more information</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Platform:</div><div class="gmail_default" style="font-family:tahoma,sans-serif">





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">clang version 13.0.0 (<a href="https://github.com/adityaatluri/llvm-project.git">https://github.com/adityaatluri/llvm-project.git</a> ecdae5df7da03c56d72796c0b1629edd0995548e)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Target: x86_64-apple-darwin20.3.0</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Thread model: posix</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">InstalledDir: /Users/aditya/.local/llvm13_x86_64/bin</span></p></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am getting the following error:</div><div class="gmail_default" style="font-family:tahoma,sans-serif">





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">clang -dynamiclib -Wl,-single_module <span class="gmail-Apple-converted-space">  </span>-flto -Wl,-export_dynamic -g -fprofile-instr-generate -undefined dynamic_lookup -Wl,-install_name,/Users/aditya/.local/Python3.10.0a6/lib/libpython3.10.dylib -Wl,-compatibility_version,3.10 -Wl,-current_version,3.10 -o libpython3.10.dylib Modules/getbuildinfo.o Parser/token.o<span class="gmail-Apple-converted-space">  </span>Parser/pegen.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpreteridobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/codecs.o Python/compile.o Python/context.o Python/dynamic_annotations.o Python/errors.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/initconfig.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/dynload_shlib.o<span class="gmail-Apple-converted-space">    </span>Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/posixmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/errnomodule.o<span class="gmail-Apple-converted-space">  </span>Modules/pwdmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_sre.o<span class="gmail-Apple-converted-space">  </span>Modules/_codecsmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_weakref.o<span class="gmail-Apple-converted-space">  </span>Modules/_functoolsmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_operator.o<span class="gmail-Apple-converted-space">  </span>Modules/_collectionsmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_abc.o<span class="gmail-Apple-converted-space">  </span>Modules/itertoolsmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/atexitmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/signalmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_stat.o<span class="gmail-Apple-converted-space">  </span>Modules/timemodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_threadmodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_localemodule.o<span class="gmail-Apple-converted-space">  </span>Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o<span class="gmail-Apple-converted-space">  </span>Modules/faulthandler.o<span class="gmail-Apple-converted-space">  </span>Modules/_tracemalloc.o<span class="gmail-Apple-converted-space">  </span>Modules/symtablemodule.o<span class="gmail-Apple-converted-space">  </span>Modules/xxsubtype.o Python/frozen.o<span class="gmail-Apple-converted-space">  </span>-ldl <span class="gmail-Apple-converted-space">  </span>-framework CoreFoundation -v</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">clang version 13.0.0 (<a href="https://github.com/adityaatluri/llvm-project.git">https://github.com/adityaatluri/llvm-project.git</a> ecdae5df7da03c56d72796c0b1629edd0995548e)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Target: x86_64-apple-darwin20.3.0</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Thread model: posix</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">InstalledDir: /Users/aditya/.local/llvm13_x86_64/bin</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>"/usr/bin/ld" /Users/aditya/.local/llvm13_x86_64/lib/clang/13.0.0/lib/darwin/libclang_rt.profile_osx.a -demangle -lto_library /Users/aditya/.local/llvm13_x86_64/lib/libLTO.dylib -dynamic -dylib -arch x86_64 -platform_version macos 11.0.0 11.1 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -undefined dynamic_lookup -undefined dynamic_lookup -o libpython3.10.dylib -single_module -export_dynamic -install_name /Users/aditya/.local/Python3.10.0a6/lib/libpython3.10.dylib -compatibility_version 3.10 -current_version 3.10 Modules/getbuildinfo.o Parser/token.o Parser/pegen.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpreteridobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/codecs.o Python/compile.o Python/context.o Python/dynamic_annotations.o Python/errors.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/initconfig.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/dynload_shlib.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/_functoolsmodule.o Modules/_operator.o Modules/_collectionsmodule.o Modules/_abc.o Modules/itertoolsmodule.o Modules/atexitmodule.o Modules/signalmodule.o Modules/_stat.o Modules/timemodule.o Modules/_threadmodule.o Modules/_localemodule.o Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o Modules/faulthandler.o Modules/_tracemalloc.o Modules/symtablemodule.o Modules/xxsubtype.o Python/frozen.o -ldl -framework CoreFoundation -sectalign __DATA __llvm_prf_cnts 0x4000 -sectalign __DATA __llvm_prf_data 0x4000 -lSystem /Users/aditya/.local/llvm13_x86_64/lib/clang/13.0.0/lib/darwin/libclang_rt.osx.a</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41);min-height:15px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(30,31,41)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Assertion failed: (It->second == &Insn && "Cached first special instruction is wrong!"), function validate, file /Users/aditya/Code/github/src/llvm-project/llvm/lib/Analysis/InstructionPrecedenceTracking.cpp, line 87.</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(107,117,255);background-color:rgb(30,31,41)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(255,255,255)">clang-13: </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(252,121,114)"><b>error: </b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>unable to execute command: Abort trap: 6</b></span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(107,117,255);background-color:rgb(30,31,41)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(255,255,255)">clang-13: </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(252,121,114)"><b>error: </b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>linker command failed due to signal (use -v to see invocation)</b></span></p></div></div>