<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55593>55593</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang crashing when building llvm on 32 bit ARM (raspberry pi)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rtpax
</td>
</tr>
</table>
<pre>
I got a segfault when attempting to build llvm. I don't believe it is relevant, but it was a submodule of http://github.com/ponylang/ponyc. The crash happened at around 95% built.
```
Stack dump:
0. Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple armv6k-unknown-linux-gnueabihf -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name AArch64ISelLowering.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu mpcore -target-feature +strict-align -target-abi aapcs-linux -mfloat-abi hard -fallow-half-arguments-and-returns -dwarf-column-info -debugger-tuning=gdb -ffunction-sections -fdata-sections -coverage-notes-file /home/pi/docs/ponyc/build/build_libs/llvm/src/llvm/lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ISelLowering.cpp.gcno -resource-dir /usr/lib/llvm-7/lib/clang/7.0.1 -D GTEST_HAS_RTTI=0 -D _FILE_OFFSET_BITS=64 -D _GNU_SOURCE -D _LARGEFILE_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /home/pi/docs/ponyc/build/build_libs/llvm/src/llvm/lib/Target/AArch64 -I /home/pi/docs/ponyc/lib/llvm/src/llvm/lib/Target/AArch64 -I /home/pi/docs/ponyc/build/build_libs/llvm/src/llvm/include -I /home/pi/docs/ponyc/lib/llvm/src/llvm/include -D NDEBUG -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../include/c++/8 -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../include/arm-linux-gnueabihf/c++/8 -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../include/arm-linux-gnueabihf/c++/8 -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../include/c++/8/backward -internal-isystem /usr/include/clang/7.0.1/include/ -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-7/lib/clang/7.0.1/include -internal-externc-isystem /usr/include/arm-linux-gnueabihf -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Werror=date-time -Werror=unguarded-availability-new -w -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /home/pi/docs/ponyc/build/build_libs/llvm/src/llvm/lib/Target/AArch64 -ferror-limit 19 -fmessage-length 211 -fvisibility hidden -fvisibility-inlines-hidden -fno-rtti -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ISelLowering.cpp.o -x c++ /home/pi/docs/ponyc/lib/llvm/src/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp -faddrsig
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/home/pi/docs/ponyc/lib/llvm/src/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp'.
4. Running pass 'ARM Instruction Selection' on function '@_ZN4llvm21AArch64TargetLowering24addTypeForFixedLengthSVEENS_3MVTE'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 7.0.1-8+rpi3+deb10u2 (tags/RELEASE_701/final)
Target: armv6k-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/AArch64ISelLowering-018f96.cpp
clang: note: diagnostic msg: /tmp/AArch64ISelLowering-018f96.sh
clang: note: diagnostic msg:
```
I've attached the specified files here.
[AArch64ISelLowering-018f96.zip](https://github.com/llvm/llvm-project/files/8732226/AArch64ISelLowering-018f96.zip)
This was built with the llvm version of commit hash 1f9140064dfbfb0bbda8e51306ea51080b2f7aac (last release), I am working to see if this reproduces with the most recent code on main.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWNtv4jgX_2voixUUwq089IG20EGiFxVmVvpekHGcxNvEjmyHtvvX7--YlNJR29nRzO7ThyISH9vn7nPx1qTPZwuWG884czLPeFN69lhIzbj3sqq90jnzhm0bVaasLHdVly1YanQnGXu2laWSO8mUZ8oxK0u549p3kgus9wR95I4QN9vKpE0pmclY4X3d6U87yRxPrnzRbLvCVBjURj-XXOftp-iydSGZsNwVrOB1LbVMwRbj1jQ6ZZNhJxkGxny3E1924mn7P4rbJwxXnosHljZVoBpAcZeF3501ueUVEOZNJbV3WMFAvXEW_6Xa0j9Ejsb42CrIPBfEIIuE6LHIW1VDJm6r3eghavSDNo86KpVunqJcN5JvVZGxSFbKR2b7J4tS5fi2lFFmpXwdBQo7aVWmpA1gwW0a7XjZyEjzSjoWVVzpKFPlHsCmUyuK0WCxkuXSPGKrzruirrEONjCCe2V0BJXLkjmPkcCML6zkaQutjVNPAB44qiOYsmJRVnFfRNJabYiqC5xtjQO_lTDaedsIb2zES8UdcZY1TkZKQ0RuLX-GVqBN6SNRN6yqhbHyAMok9w3GneQceJTwhCXXh3noi3FeC7fXIShmpeF7eAGVgBgvS_MYFbzMooPRIq7TyEqg1uAnfeQ2i4Qpm0qDrwxipHLb5Lm0kW80NNXpX-bpFsiyRougKSfDm6RJuedHY2EgPs-hduOlCxYgBylMJclLFf5SI9yLx5Kb0EF5eW_gQ651IrycFa-DvXutg-j4aE2Kr4tr_iDnoEQ7l8tv1-3UBSx3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