[llvm] [AIX] Fix dwarf testcases on AIX (PR #163822)

Aditya Chaudhary via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 06:14:26 PST 2025


aditya-chaudhary1 wrote:

Hi @Michael137 
We are seeing the same error for all three of the mentioned test cases.
```
llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll
llvm/test/DebugInfo/Generic/compileunit-source-language.ll
llvm/test/DebugInfo/dwarf-complex-int.ll
```
The following is the llvm-lit crash error:
```
[~/llvm/upst/llvm-project] (main)$ $LLVM_BUILD/bin/llvm-lit -v llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll
-- Testing: 1 tests, 1 workers --
FAIL: LLVM :: DebugInfo/Generic/compileunit-source-language-name.ll (1 of 1)
******************** TEST 'LLVM :: DebugInfo/Generic/compileunit-source-language-name.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
/home/adityac2/llvm/upst/build/bin/llc -filetype=obj -O0 < /home/adityac2/llvm/upst/llvm-project/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll | /home/adityac2/llvm/upst/build/bin/llvm-dwarfdump -debug-info -v - | /home/adityac2/llvm/upst/build/bin/FileCheck /home/adityac2/llvm/upst/llvm-project/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll --implicit-check-not "DW_AT_language"
# executed command: /home/adityac2/llvm/upst/build/bin/llc -filetype=obj -O0
# .---command stderr------------
# | Assertion failed: Section && "Cannot switch to a null section!", file  /home/adityac2/llvm/upst/llvm-project/llvm/lib/MC/MCStreamer.cpp, line 1364, virtual void llvm::MCStreamer::switchSection(MCSection *, uint32_t)()
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.  Program arguments: /home/adityac2/llvm/upst/build/bin/llc -filetype=obj -O0
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/adityac2/llvm/upst/build/bin/llvm-dwarfdump -debug-info -v -
# .---command stderr------------
# | error: -: The file was not recognized as a valid object file
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/adityac2/llvm/upst/build/bin/FileCheck /home/adityac2/llvm/upst/llvm-project/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll --implicit-check-not DW_AT_language
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/adityac2/llvm/upst/build/bin/FileCheck /home/adityac2/llvm/upst/llvm-project/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll --implicit-check-not DW_AT_language
# `-----------------------------
# error: command failed with exit status: 2

--

********************
********************
Failed Tests (1):
  LLVM :: DebugInfo/Generic/compileunit-source-language-name.ll


Testing Time: 0.23s

Total Discovered Tests: 1
  Failed: 1 (100.00%)
  ```

https://github.com/llvm/llvm-project/pull/163822


More information about the llvm-commits mailing list